Package org.netbeans.jemmy.util
Class WindowManager.ModalDialogChoosingJob
- java.lang.Object
-
- org.netbeans.jemmy.util.WindowManager.ModalDialogChoosingJob
-
- All Implemented Interfaces:
Action,ComponentChooser,WindowJob
- Enclosing class:
- WindowManager
public static class WindowManager.ModalDialogChoosingJob extends Object implements WindowJob
-
-
Constructor Summary
Constructors Constructor Description ModalDialogChoosingJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckComponent(Component comp)Checks if window is what we want to do something with.StringgetDescription()Job description.Objectlaunch(Object obj)Perform necessary actions.
-
-
-
Method Detail
-
checkComponent
public boolean checkComponent(Component comp)
Description copied from interface:WindowJobChecks if window is what we want to do something with.- Specified by:
checkComponentin interfaceComponentChooser- Specified by:
checkComponentin interfaceWindowJob- Parameters:
comp- Component to check.- Returns:
truewhen the component conforms to the search criteria;falseotherwise.
-
launch
public Object launch(Object obj)
Description copied from interface:WindowJobPerform necessary actions.- Specified by:
launchin interfaceAction- Specified by:
launchin interfaceWindowJob- 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.
-
getDescription
public String getDescription()
Description copied from interface:WindowJobJob description.- Specified by:
getDescriptionin interfaceAction- Specified by:
getDescriptionin interfaceComponentChooser- Specified by:
getDescriptionin interfaceWindowJob- Returns:
- a String representing the description value
-
-