Пример #1
0
 /**
  * Constructor. Waits component in container first. Uses cont's timeout and output for waiting and
  * to init operator.
  *
  * @param cont a container
  * @param text Text of item which is currently selected.
  * @param index Ordinal component index.
  * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean)
  * @throws TimeoutExpiredException
  */
 public JComboBoxOperator(ContainerOperator<?> cont, String text, int index) {
   this(
       (JComboBox)
           waitComponent(cont, new JComboBoxByItemFinder(text, -1, cont.getComparator()), index));
   copyEnvironment(cont);
 }
Пример #2
0
 /**
  * Constructor. Waits component in container first. Uses cont's timeout and output for waiting and
  * to init operator.
  *
  * @param cont a container
  * @param index Ordinal component index.
  * @throws TimeoutExpiredException
  */
 public JComboBoxOperator(ContainerOperator<?> cont, int index) {
   this((JComboBox) waitComponent(cont, new JComboBoxFinder(), index));
   copyEnvironment(cont);
 }
Пример #3
0
 /**
  * Constructs a JComboBoxOperator object.
  *
  * @param cont a container
  * @param chooser a component chooser specifying searching criteria.
  * @param index an index between appropriate ones.
  */
 public JComboBoxOperator(ContainerOperator<?> cont, ComponentChooser chooser, int index) {
   this((JComboBox) cont.waitSubComponent(new JComboBoxFinder(chooser), index));
   copyEnvironment(cont);
 }