Package org.netbeans.jemmy
Class QueueTool.QueueAction
java.lang.Object
org.netbeans.jemmy.QueueTool.QueueAction
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
EventDriver.Dispatcher
,Operator.MapAction
,Operator.MapBooleanAction
,Operator.MapByteAction
,Operator.MapCharacterAction
,Operator.MapDoubleAction
,Operator.MapFloatAction
,Operator.MapIntegerAction
,Operator.MapLongAction
,Operator.MapVoidAction
- Enclosing class:
- QueueTool
Action to be excuted through event queue.
Even if it was executed without waiting by
invoke(QueueAction)
execution process can be monitored by getResult()
,
getException()
, getFinished()
methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAction description.Returns exception occured during action execution (if any).boolean
Informs whether action has been finished or not.Returns action result if action has already been finished, null otherwise.abstract Object
launch()
Method to implement action functionality.final void
run()
-
Constructor Details
-
QueueAction
Constructor.- Parameters:
description
- a description.
-
-
Method Details
-
launch
Method to implement action functionality.- Returns:
- an Object - action result
- Throws:
Exception
-
run
public final void run() -
getDescription
Action description.- Returns:
- the description.
-
getResult
Returns action result if action has already been finished, null otherwise.- Returns:
- an action result.
-
getException
Returns exception occured during action execution (if any).- Returns:
- the Exception happened inside
launch()
method.
-
getFinished
public boolean getFinished()Informs whether action has been finished or not.- Returns:
- true if this action have been finished
-