Class JFrameOperator

All Implemented Interfaces:
Outputable, Timeoutable

public class JFrameOperator extends FrameOperator


Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been dispayed
.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Constructor Details

    • JFrameOperator

      public JFrameOperator(JFrame w)
      Constructor.
      Parameters:
      w - window
    • JFrameOperator

      public JFrameOperator(ComponentChooser chooser, int index, Operator env)
      Constructs a JFrameOperator object.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
      env - an operator to copy environment from.
    • JFrameOperator

      public JFrameOperator(ComponentChooser chooser, int index)
      Constructs a JFrameOperator object.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
    • JFrameOperator

      public JFrameOperator(ComponentChooser chooser)
      Constructs a JFrameOperator object.
      Parameters:
      chooser - a component chooser specifying searching criteria.
    • JFrameOperator

      public JFrameOperator(String title, int index, Operator env)
      Constructor. Waits for the frame with "title" subtitle. Constructor can be used in complicated cases when output or timeouts should differ from default.
      Parameters:
      title - a window title
      index - Ordinal component index.
      env - an operator to copy environment from.
      See Also:
    • JFrameOperator

      public JFrameOperator(String title, int index)
      Constructor. Waits for the frame with "title" subtitle. Uses current timeouts and output values.
      Parameters:
      title - a window title
      index - Ordinal component index.
      See Also:
    • JFrameOperator

      public JFrameOperator(String title)
      Constructor. Waits for the frame with "title" subtitle. Uses current timeouts and output values.
      Parameters:
      title - a window title
      See Also:
    • JFrameOperator

      public JFrameOperator(int index)
      Constructor. Waits for the index'th frame. Uses current timeout and output for waiting and to init operator.
      Parameters:
      index - Ordinal component index.
    • JFrameOperator

      public JFrameOperator()
      Constructor. Waits for the first frame. Uses current timeout and output for waiting and to init operator.
  • Method Details

    • findJFrame

      public static JFrame findJFrame(ComponentChooser chooser, int index)
      Searches an index'th frame.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
      Returns:
      JFrame instance or null if component was not found.
    • findJFrame

      public static JFrame findJFrame(ComponentChooser chooser)
      Searches a frame.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      Returns:
      JFrame instance or null if component was not found.
    • findJFrame

      public static JFrame findJFrame(String title, boolean ce, boolean cc, int index)
      Searches an index'th frame by title.
      Parameters:
      title - Frame title
      ce - Compare exactly. If true, text can be a substring of caption.
      cc - Compare case sensitively. If true, both text and caption are
      index - an index between appropriate ones.
      Returns:
      JFrame instance or null if component was not found.
    • findJFrame

      public static JFrame findJFrame(String title, boolean ce, boolean cc)
      Searches a frame by title.
      Parameters:
      title - Frame title
      ce - Compare exactly. If true, text can be a substring of caption.
      cc - Compare case sensitively. If true, both text and caption are
      Returns:
      JFrame instance or null if component was not found.
    • waitJFrame

      public static JFrame waitJFrame(ComponentChooser chooser, int index)
      Waits an index'th frame.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
      Returns:
      JFrame instance or null if component was not found.
    • waitJFrame

      public static JFrame waitJFrame(ComponentChooser chooser)
      Waits a frame.
      Parameters:
      chooser - a component chooser specifying searching criteria.
      Returns:
      JFrame instance or null if component was not found.
    • waitJFrame

      public static JFrame waitJFrame(String title, boolean ce, boolean cc, int index)
      Waits an index'th frame by title.
      Parameters:
      title - Frame title
      ce - Compare exactly. If true, text can be a substring of caption.
      cc - Compare case sensitively. If true, both text and caption are
      index - an index between appropriate ones.
      Returns:
      JFrame instance or null if component was not found.
    • waitJFrame

      public static JFrame waitJFrame(String title, boolean ce, boolean cc)
      Waits a frame by title.
      Parameters:
      title - Frame title
      ce - Compare exactly. If true, text can be a substring of caption.
      cc - Compare case sensitively. If true, both text and caption are
      Returns:
      JFrame instance or null if component was not found.
    • getAccessibleContext

      public AccessibleContext getAccessibleContext()
      Maps JFrame.getAccessibleContext() through queue
    • getContentPane

      public Container getContentPane()
      Maps JFrame.getContentPane() through queue
    • getDefaultCloseOperation

      public int getDefaultCloseOperation()
      Maps JFrame.getDefaultCloseOperation() through queue
    • getGlassPane

      public Component getGlassPane()
      Maps JFrame.getGlassPane() through queue
    • getJMenuBar

      public JMenuBar getJMenuBar()
      Maps JFrame.getJMenuBar() through queue
    • getLayeredPane

      public JLayeredPane getLayeredPane()
      Maps JFrame.getLayeredPane() through queue
    • getRootPane

      public JRootPane getRootPane()
      Maps JFrame.getRootPane() through queue
    • setContentPane

      public void setContentPane(Container container)
      Maps JFrame.setContentPane(Container) through queue
    • setDefaultCloseOperation

      public void setDefaultCloseOperation(int i)
      Maps JFrame.setDefaultCloseOperation(int) through queue
    • setGlassPane

      public void setGlassPane(Component component)
      Maps JFrame.setGlassPane(Component) through queue
    • setJMenuBar

      public void setJMenuBar(JMenuBar jMenuBar)
      Maps JFrame.setJMenuBar(JMenuBar) through queue
    • setLayeredPane

      public void setLayeredPane(JLayeredPane jLayeredPane)
      Maps JFrame.setLayeredPane(JLayeredPane) through queue