< prev index next >

src/org/netbeans/jemmy/operators/JFrameOperator.java

Print this page




  86      * Constructs a JFrameOperator object.
  87      *
  88      * @param chooser a component chooser specifying searching criteria.
  89      */
  90     public JFrameOperator(ComponentChooser chooser) {
  91         this(chooser, 0);
  92     }
  93 
  94     /**
  95      * Constructor. Waits for the frame with "title" subtitle. Constructor can
  96      * be used in complicated cases when output or timeouts should differ from
  97      * default.
  98      *
  99      * @param title a window title
 100      * @param index Ordinal component index.
 101      * @param env an operator to copy environment from.
 102      * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean)
 103      *
 104      */
 105     public JFrameOperator(String title, int index, Operator env) {
 106         this(new FrameByTitleFinder(title, env.getComparator()), index, env);


 107     }
 108 
 109     /**
 110      * Constructor. Waits for the frame with "title" subtitle. Uses current
 111      * timeouts and output values.
 112      *
 113      * @param title a window title
 114      * @param index Ordinal component index.
 115      * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean)
 116      * @see JemmyProperties#getCurrentTimeouts()
 117      * @see JemmyProperties#getCurrentOutput()
 118      *
 119      */
 120     public JFrameOperator(String title, int index) {
 121         this(title, index,
 122                 ComponentOperator.getEnvironmentOperator());
 123     }
 124 
 125     /**
 126      * Constructor. Waits for the frame with "title" subtitle. Uses current




  86      * Constructs a JFrameOperator object.
  87      *
  88      * @param chooser a component chooser specifying searching criteria.
  89      */
  90     public JFrameOperator(ComponentChooser chooser) {
  91         this(chooser, 0);
  92     }
  93 
  94     /**
  95      * Constructor. Waits for the frame with "title" subtitle. Constructor can
  96      * be used in complicated cases when output or timeouts should differ from
  97      * default.
  98      *
  99      * @param title a window title
 100      * @param index Ordinal component index.
 101      * @param env an operator to copy environment from.
 102      * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean)
 103      *
 104      */
 105     public JFrameOperator(String title, int index, Operator env) {
 106         this(new JFrameFinder(new FrameByTitleFinder(title,
 107                 env.getComparator())),
 108                 index, env);
 109     }
 110 
 111     /**
 112      * Constructor. Waits for the frame with "title" subtitle. Uses current
 113      * timeouts and output values.
 114      *
 115      * @param title a window title
 116      * @param index Ordinal component index.
 117      * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean)
 118      * @see JemmyProperties#getCurrentTimeouts()
 119      * @see JemmyProperties#getCurrentOutput()
 120      *
 121      */
 122     public JFrameOperator(String title, int index) {
 123         this(title, index,
 124                 ComponentOperator.getEnvironmentOperator());
 125     }
 126 
 127     /**
 128      * Constructor. Waits for the frame with "title" subtitle. Uses current


< prev index next >