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 boolean
checkComponent(Component comp)
Checks if window is what we want to do something with.String
getDescription()
Job description.Object
launch(Object obj)
Perform necessary actions.
-
-
-
Method Detail
-
checkComponent
public boolean checkComponent(Component comp)
Description copied from interface:WindowJob
Checks if window is what we want to do something with.- Specified by:
checkComponent
in interfaceComponentChooser
- Specified by:
checkComponent
in interfaceWindowJob
- Parameters:
comp
- Component to check.- Returns:
true
when the component conforms to the search criteria;false
otherwise.
-
launch
public Object launch(Object obj)
Description copied from interface:WindowJob
Perform necessary actions.- Specified by:
launch
in interfaceAction
- Specified by:
launch
in 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:WindowJob
Job description.- Specified by:
getDescription
in interfaceAction
- Specified by:
getDescription
in interfaceComponentChooser
- Specified by:
getDescription
in interfaceWindowJob
- Returns:
- a String representing the description value
-
-