Package org.netbeans.jemmy.operators
Class Operator.MapAction
java.lang.Object
org.netbeans.jemmy.QueueTool.QueueAction
org.netbeans.jemmy.operators.Operator.MapAction
- All Implemented Interfaces:
Runnable
- Enclosing class:
- Operator
Can be used to simplify nonprimitive type component's methods mapping.
Like this:
public Color getBackground() {
return((Color)runMapping(new MapAction("getBackground") {
public Object map() {
return(((Component)getSource()).getBackground());
}
}));
}
public Color getBackground() {
return((Color)runMapping(new MapAction("getBackground") {
public Object map() {
return(((Component)getSource()).getBackground());
}
}));
}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.netbeans.jemmy.QueueTool.QueueAction
getDescription, getException, getFinished, getResult, run
-
Constructor Details
-
MapAction
Constructs a MapAction object.- Parameters:
description
- an action description.
-
-
Method Details
-
launch
Description copied from class:QueueTool.QueueAction
Method to implement action functionality.- Specified by:
launch
in classQueueTool.QueueAction
- Returns:
- an Object - action result
- Throws:
Exception
-
map
Executes a map action.- Returns:
- an action result.
- Throws:
Exception
-