public class PluginPause extends AbstractPlugin
| Modifier and Type | Field and Description |
|---|---|
static Boolean |
DEFAULT_MODAL
Modal default value.
|
protected Boolean |
enter
Pause using a keyboard request.
|
static String |
FEATURE_ENTER
Enter feature.
|
static String |
FEATURE_MODAL
Modal feature.
|
static String |
FEATURE_PAUSE_CONDITION
Condition.
|
static String |
FEATURE_PAUSE_CONDITION_MODEL
Model condition.
|
static String |
FEATURE_TIME
Time feature.
|
protected static int |
FONT_SIZE
Screen font size.
|
protected Boolean |
modal
Modal flag.
|
protected String |
msg
Pause message.
|
protected static int |
RATIO
Message frame screen ratio.
|
protected Long |
time
Pause time.
|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
PluginPause() |
| Modifier and Type | Method and Description |
|---|---|
ENext |
doStart(IContext context,
IResultSet result)
Performs the start action.
|
ActionType |
getActionType()
Get the plugin type.
|
Boolean |
getEnter()
Flag to indicate if pause is on dialog or 'Enter' key.
|
Boolean |
getModal()
Get modal information.
|
String |
getMsg()
Get pause message.
|
String |
getPause()
Get pause message.
|
Long |
getTime()
If set, specify the time to wait.
|
void |
initialize(IContext context)
Initialize the plugin.
|
protected void |
releaseWindow(JFrame frame,
JDialog dialog)
Release message frame and dialog.
|
void |
setEnter(Boolean enter)
Set enter flag.
|
void |
setModal(Boolean modal)
Set modal flag.
|
void |
setMsg(String msg)
Set pause message.
|
void |
setPause(String msg)
Set pause message.
|
void |
setTime(Long time)
Sets the wait time.
|
protected void |
showMessage(String message)
Show a message on a dialog.
|
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toStringgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParameterspublic static final String FEATURE_PAUSE_CONDITION
public static final String FEATURE_PAUSE_CONDITION_MODEL
public static final String FEATURE_ENTER
public static final String FEATURE_TIME
public static final String FEATURE_MODAL
public static final Boolean DEFAULT_MODAL
protected static final int RATIO
protected static final int FONT_SIZE
protected String msg
protected Boolean enter
protected Long time
protected Boolean modal
public String getMsg()
public void setMsg(String msg)
msg - Set pause message.public String getPause()
public void setPause(String msg)
msg - Set pause message.public Boolean getEnter()
public void setEnter(Boolean enter)
enter - true to request for 'Enter', false, otherwise (default is a
dialog request).public Long getTime()
public void setTime(Long time)
time - The time.public Boolean getModal()
public void setModal(Boolean modal)
modal - Modal mode.public ActionType getActionType()
IActionTypepublic void initialize(IContext context) throws PluginException
IPlugininitialize in interface IPlugininitialize in class AbstractPlugincontext - The test context.PluginException - On initialization errors.public ENext doStart(IContext context, IResultSet result) throws PluginException
IPlugindoStart in interface IPlugindoStart in class AbstractPlugincontext - The context.result - The result set.PluginException - On execution errors.protected void showMessage(String message)
message - A message.Copyright © 2016. All rights reserved.