Package org.netbeans.jemmy.operators
Class Operator.NoBlockingAction
- java.lang.Object
-
- org.netbeans.jemmy.operators.Operator.NoBlockingAction
-
- All Implemented Interfaces:
Action
- Enclosing class:
- Operator
protected abstract class Operator.NoBlockingAction extends java.lang.Object implements Action
Can be used to make nonblocking operation implementation. Typical scenario is:
produceNoBlocking(new NoBlockingAction("Button pushing") {
public Object doAction(Object param) {
push();
return(null);
}
});
-
-
Constructor Summary
Constructors Constructor Description NoBlockingAction(java.lang.String description)Constructs a NoBlockingAction object.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.ObjectdoAction(java.lang.Object param)Performs a mapping action.java.lang.StringgetDescription()Returns the description value.java.lang.ExceptiongetException()Returns an exception occured diring the action execution.java.lang.Objectlaunch(java.lang.Object param)Executes this action.protected voidsetException(java.lang.Exception e)Specifies the exception.
-
-
-
Method Detail
-
launch
public final java.lang.Object launch(java.lang.Object param)
Description copied from interface:ActionExecutes this action.- Specified by:
launchin interfaceAction- Parameters:
param- action argument. This argument might be the method parameter in an invocation ofActionProducer.produceAction(Object). This argument might be ajava.lang.String[]that lists the command line arguments used to execute a test (or not).- Returns:
- action result.
-
doAction
public abstract java.lang.Object doAction(java.lang.Object param)
Performs a mapping action.- Parameters:
param- an action parameter.- Returns:
- an action result.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ActionReturns the description value.- Specified by:
getDescriptionin interfaceAction- Returns:
- Action description.
-
setException
protected void setException(java.lang.Exception e)
Specifies the exception.- Parameters:
e- an exception.- See Also:
getException()
-
getException
public java.lang.Exception getException()
Returns an exception occured diring the action execution.- Returns:
- an exception.
- See Also:
setException(java.lang.Exception)
-
-