|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.listeners.core.AbstractNodeListener
org.specrunner.listeners.core.PauseOnFailureNodeListener
public class PauseOnFailureNodeListener
Listener to pause execution on errors.
| Field Summary | |
|---|---|
static String |
FEATURE_CONDITION
Default conditional feature. |
static String |
FEATURE_PAUSE_ON_FAILURE
Enable pause on errors. |
static String |
FEATURE_SHOW_DIALOG
Enable error dialog on failures. |
| Constructor Summary | |
|---|---|
PauseOnFailureNodeListener()
|
|
| Method Summary | |
|---|---|
Boolean |
getCondition()
Condition to enable pause on failure behavior. |
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 |
setPauseOnFailure(Boolean pauseOnFailure)
Set pause on errors. |
void |
setShowDialog(Boolean showDialog)
Set the dialog status. |
protected void |
showDialog(StringBuilder sb)
Show message dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FEATURE_CONDITION
public static final String FEATURE_PAUSE_ON_FAILURE
public static final String FEATURE_SHOW_DIALOG
| Constructor Detail |
|---|
public PauseOnFailureNodeListener()
| Method Detail |
|---|
public String getName()
ISpecRunnerListener
getName 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 void reset()
ISpecRunnerListener
reset in interface ISpecRunnerListener
public ENext onBefore(nu.xom.Node node,
IContext context,
IResultSet result)
INodeListener
onBefore 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)
INodeListener
onAfter 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()
ErrorFrameListener
ok in interface ErrorFrameListenerpublic void okToAll()
ErrorFrameListener
okToAll in interface ErrorFrameListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||