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 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(String description)
Constructs a NoBlockingAction object.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
doAction(Object param)
Performs a mapping action.String
getDescription()
Returns the description value.Exception
getException()
Returns an exception occured diring the action execution.Object
launch(Object param)
Executes this action.protected void
setException(Exception e)
Specifies the exception.
-
-
-
Constructor Detail
-
NoBlockingAction
public NoBlockingAction(String description)
Constructs a NoBlockingAction object.- Parameters:
description
- an action description.
-
-
Method Detail
-
launch
public final Object launch(Object param)
Description copied from interface:Action
Executes this action.- Specified by:
launch
in 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 Object doAction(Object param)
Performs a mapping action.- Parameters:
param
- an action parameter.- Returns:
- an action result.
-
getDescription
public String getDescription()
Description copied from interface:Action
Returns the description value.- Specified by:
getDescription
in interfaceAction
- Returns:
- Action description.
-
setException
protected void setException(Exception e)
Specifies the exception.- Parameters:
e
- an exception.- See Also:
getException()
-
getException
public Exception getException()
Returns an exception occured diring the action execution.- Returns:
- an exception.
- See Also:
setException(java.lang.Exception)
-
-