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 java.lang.Object implements WindowJob
-
-
Constructor Summary
Constructors Constructor Description ModalDialogChoosingJob()
-
Method Summary
All Methods Instance Methods Concrete 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
-
checkComponent
public boolean checkComponent(java.awt.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 java.lang.Object launch(java.lang.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 java.lang.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
-
-