org.netbeans.jemmy.util
Class WindowManager.ModalDialogChoosingJob

java.lang.Object
  extended by 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
WindowManager.ModalDialogChoosingJob()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowManager.ModalDialogChoosingJob

public WindowManager.ModalDialogChoosingJob()
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 interface ComponentChooser
Specified by:
checkComponent in interface WindowJob
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 interface Action
Specified by:
launch in interface WindowJob
Parameters:
obj - action argument. This argument might be the method parameter in an invocation of ActionProducer.produceAction(Object). This argument might be a java.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 interface Action
Specified by:
getDescription in interface ComponentChooser
Specified by:
getDescription in interface WindowJob
Returns:
a String representing the description value