public class PauseOnFailureNodeListener extends AbstractNodeListener implements ErrorFrameListener
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
condition
Pause perform condition.
|
static Boolean |
DEFAULT_MODAL
Modal default value.
|
static String |
FEATURE_CONDITION
Default conditional feature.
|
static String |
FEATURE_MODAL
Modal feature.
|
static String |
FEATURE_PAUSE_ON_FAILURE
Enable pause on errors.
|
static String |
FEATURE_SHOW_DIALOG
Enable error dialog on failures.
|
protected ErrorFrame |
frame
Auxiliary frame.
|
protected Boolean |
modal
Modal flag.
|
protected Boolean |
okToAll
Flag to skip all dialog messages.
|
protected Boolean |
pauseOnFailure
Set true, to pause on errors.
|
protected Boolean |
showDialog
Set true, to show a dialog.
|
protected int |
start
Count to check if errors have been added.
|
| Constructor and Description |
|---|
PauseOnFailureNodeListener() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getCondition()
Condition to enable pause on failure behavior.
|
Boolean |
getModal()
Get modal information.
|
String |
getName()
The listener name.
|
Boolean |
getPauseOnFailure()
The pause status.
|
Boolean |
getShowDialog()
The dialog enabled status.
|
void |
ok()
On 'ok' button pressed.
|
void |
okToAll()
On 'ok to all' button pressed.
|
void |
onAfter(nu.xom.Node node,
IContext context,
IResultSet result)
Perform some action after plugin execution for a given node.
|
ENext |
onBefore(nu.xom.Node node,
IContext context,
IResultSet result)
Perform some action before building plugin for a given node.
|
void |
reset()
Reset listener state.
|
void |
setCondition(Boolean condition)
Set pause condition.
|
void |
setModal(Boolean modal)
Set modal flag.
|
void |
setPauseOnFailure(Boolean pauseOnFailure)
Set pause on errors.
|
void |
setShowDialog(Boolean showDialog)
Set the dialog status.
|
protected void |
showDialog(StringBuilder sb)
Show message dialog.
|
public static final String FEATURE_CONDITION
protected Boolean condition
public static final String FEATURE_PAUSE_ON_FAILURE
protected Boolean pauseOnFailure
public static final String FEATURE_SHOW_DIALOG
protected Boolean showDialog
public static final String FEATURE_MODAL
public static final Boolean DEFAULT_MODAL
protected Boolean modal
protected ErrorFrame frame
protected Boolean okToAll
protected int start
public String getName()
ISpecRunnerListenergetName in interface ISpecRunnerListenerpublic Boolean getCondition()
public void setCondition(Boolean condition)
condition - true, if pause listener can pause, false, otherwise.public Boolean getPauseOnFailure()
public void setPauseOnFailure(Boolean pauseOnFailure)
pauseOnFailure - true, for pause, false, otherwise.public Boolean getShowDialog()
public void setShowDialog(Boolean showDialog)
showDialog - true, to show dialog, false, otherwise.public Boolean getModal()
public void setModal(Boolean modal)
modal - Modal mode.public void reset()
ISpecRunnerListenerreset in interface ISpecRunnerListenerpublic ENext onBefore(nu.xom.Node node, IContext context, IResultSet result)
INodeListeneronBefore in interface INodeListeneronBefore in class AbstractNodeListenernode - The node.context - The context.result - The result.ENext.DEEP,
the execution should go deeper.public void onAfter(nu.xom.Node node,
IContext context,
IResultSet result)
INodeListeneronAfter in interface INodeListeneronAfter in class AbstractNodeListenernode - The node.context - The context.result - The result.protected void showDialog(StringBuilder sb)
sb - The message.public void ok()
ErrorFrameListenerok in interface ErrorFrameListenerpublic void okToAll()
ErrorFrameListenerokToAll in interface ErrorFrameListenerCopyright © 2016. All rights reserved.