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
public abstract static class QueueTool.QueueAction extends Object implements Runnable
Action to be excuted through event queue. Even if it was executed without waiting byinvoke(QueueAction)execution process can be monitored bygetResult(),getException(),getFinished()methods.
-
-
Constructor Summary
Constructors Constructor Description QueueAction(String description)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Action description.ExceptiongetException()Returns exception occured during action execution (if any).booleangetFinished()Informs whether action has been finished or not.ObjectgetResult()Returns action result if action has already been finished, null otherwise.abstract Objectlaunch()Method to implement action functionality.voidrun()
-
-
-
Constructor Detail
-
QueueAction
public QueueAction(String description)
Constructor.- Parameters:
description- a description.
-
-
Method Detail
-
launch
public abstract Object launch() throws Exception
Method to implement action functionality.- Returns:
- an Object - action result
- Throws:
Exception
-
getDescription
public String getDescription()
Action description.- Returns:
- the description.
-
getResult
public Object getResult()
Returns action result if action has already been finished, null otherwise.- Returns:
- an action result.
-
getException
public Exception 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
-
-