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
 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

launch

Object launch(Object obj)
Perform necessary actions.

Specified by:
launch in interface Action
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.

checkComponent

boolean checkComponent(Component comp)
Checks if window is what we want to do something with.

Specified by:
checkComponent in interface ComponentChooser
Parameters:
comp - Component to check.
Returns:
true when the component conforms to the search criteria; false otherwise.

getDescription

String getDescription()
Job description.

Specified by:
getDescription in interface Action
Specified by:
getDescription in interface ComponentChooser
Returns:
a String representing the description value