Package org.netbeans.jemmy.util
Class WindowManager
- java.lang.Object
-
- org.netbeans.jemmy.util.WindowManager
-
- All Implemented Interfaces:
Outputable,Timeoutable
public class WindowManager extends java.lang.Object implements Timeoutable, Outputable
Class allows to make periodical window jobs like error window closing.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
WindowJob
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowManager.ModalDialogChoosingJob
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(WindowJob job)Adds job to list.static voidaddJob(WindowJob job)Adds job to list.TestOutgetOutput()Returns print output streams or writers.TimeoutsgetTimeouts()Return current timeouts.static voidperformJob(WindowJob job)voidremove(WindowJob job)Removes job from list.static voidremoveJob(WindowJob job)Removes job from list.voidsetOutput(TestOut output)Defines print output streams or writers.voidsetTimeouts(Timeouts timeouts)Defines current timeouts.
-
-
-
Method Detail
-
addJob
public static void addJob(WindowJob job)
Adds job to list.- Parameters:
job- a job to perform.
-
removeJob
public static void removeJob(WindowJob job)
Removes job from list.- Parameters:
job- a job to remove.
-
performJob
public static void performJob(WindowJob job)
-
setTimeouts
public void setTimeouts(Timeouts timeouts)
Description copied from interface:TimeoutableDefines current timeouts.- Specified by:
setTimeoutsin interfaceTimeoutable- Parameters:
timeouts- A collection of timeout assignments.- See Also:
Timeoutable.getTimeouts()
-
getTimeouts
public Timeouts getTimeouts()
Description copied from interface:TimeoutableReturn current timeouts.- Specified by:
getTimeoutsin interfaceTimeoutable- Returns:
- the collection of current timeout assignments.
- See Also:
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
-
setOutput
public void setOutput(TestOut output)
Description copied from interface:OutputableDefines print output streams or writers.- Specified by:
setOutputin interfaceOutputable- Parameters:
output- Identify the streams or writers used for print output.- See Also:
Outputable.getOutput()
-
getOutput
public TestOut getOutput()
Description copied from interface:OutputableReturns print output streams or writers.- Specified by:
getOutputin interfaceOutputable- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
Outputable.setOutput(org.netbeans.jemmy.TestOut)
-
add
public void add(WindowJob job)
Adds job to list.- Parameters:
job- a job to perform.
-
remove
public void remove(WindowJob job)
Removes job from list.- Parameters:
job- a job to remove.
-
-