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());
}
}));
}
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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.QueueActionMethod to implement action functionality.- Specified by:
launchin classQueueTool.QueueAction- Returns:
- an Object - action result
- Throws:
Exception
-
map
-