Class WindowManager

java.lang.Object
org.netbeans.jemmy.util.WindowManager
All Implemented Interfaces:
Outputable, Timeoutable

public class WindowManager extends Object implements Timeoutable, Outputable
Class allows to make periodical window jobs like error window closing.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Method Details

    • 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: Timeoutable
      Defines current timeouts.
      Specified by:
      setTimeouts in interface Timeoutable
      Parameters:
      timeouts - A collection of timeout assignments.
      See Also:
    • getTimeouts

      public Timeouts getTimeouts()
      Description copied from interface: Timeoutable
      Return current timeouts.
      Specified by:
      getTimeouts in interface Timeoutable
      Returns:
      the collection of current timeout assignments.
      See Also:
    • setOutput

      public void setOutput(TestOut output)
      Description copied from interface: Outputable
      Defines print output streams or writers.
      Specified by:
      setOutput in interface Outputable
      Parameters:
      output - Identify the streams or writers used for print output.
      See Also:
    • getOutput

      public TestOut getOutput()
      Description copied from interface: Outputable
      Returns print output streams or writers.
      Specified by:
      getOutput in interface Outputable
      Returns:
      an object that contains references to objects for printing to output and err streams.
      See Also:
    • 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.