Package org.netbeans.jemmy.util
Interface WindowJob
-
- All Superinterfaces:
Action,ComponentChooser
- All Known Implementing Classes:
WindowManager.ModalDialogChoosingJob
public interface WindowJob extends ComponentChooser, Action
Supposed to be used to perform some periodical job.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
WindowManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckComponent(java.awt.Component comp)Checks if window is what we want to do something with.java.lang.StringgetDescription()Job description.java.lang.Objectlaunch(java.lang.Object obj)Perform necessary actions.
-
-
-
Method Detail
-
launch
java.lang.Object launch(java.lang.Object obj)
Perform necessary actions.- Specified by:
launchin interfaceAction- Parameters:
obj- 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.
-
checkComponent
boolean checkComponent(java.awt.Component comp)
Checks if window is what we want to do something with.- Specified by:
checkComponentin interfaceComponentChooser- Parameters:
comp- Component to check.- Returns:
truewhen the component conforms to the search criteria;falseotherwise.
-
getDescription
java.lang.String getDescription()
Job description.- Specified by:
getDescriptionin interfaceAction- Specified by:
getDescriptionin interfaceComponentChooser- Returns:
- a String representing the description value
-
-