Package net.sf.swtbot.finder.UIThreadRunnable

Examples of net.sf.swtbot.finder.UIThreadRunnable.IntResult


   * been changed by <code>setTextLimit()</code>, it will be the constant <code>Combo.LIMIT</code>.
   *
   * @return the text limit
   */
  public int textLimit() {
    return syncExec(new IntResult() {
      public int run() {
        return getCCombo().getTextLimit();
      }
    });
  }
View Full Code Here


   *
   * @param text The text to use.
   */
  private void _setSelection(final String text) {
    checkEnabled();
    final int indexOf = syncExec(new IntResult() {
      public int run() {
        String[] items = getCCombo().getItems();
        return Arrays.asList(items).indexOf(text);
      }
    });
View Full Code Here

   * Gets the current selection index.
   *
   * @return the zero based index of the current selection.
   */
  public int selectionIndex() {
    return syncExec(new IntResult() {
      public int run() {
        return getCCombo().getSelectionIndex();
      }
    });
  }
View Full Code Here

   * Gets the number of items in the combo box.
   *
   * @return the number of items in the combo box.
   */
  public int itemCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getCCombo().getItemCount();
      }
    });
  }
View Full Code Here

   * Gets the number of rows in the tree.
   *
   * @return the number of rows in the tree
   */
  public int rowCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getControl().getItems().length;
      }
    });
  }
View Full Code Here

   * Gets the column count of this tree.
   *
   * @return the number of columns in the tree
   */
  public int columnCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getControl().getColumnCount();
      }
    });
  }
View Full Code Here

   * Gets the current selection count.
   *
   * @return the number of selected items.
   */
  public int selectionCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getControl().getSelectionCount();
      }
    });
  }
View Full Code Here

   * Gets the visible row count.
   *
   * @return the number of visible rows
   */
  public int visibleRowCount() {
    return syncExec(new IntResult() {
      public int run() {
        TreeItem[] items = getControl().getItems();
        return getVisibleChildrenCount(items);
      }

View Full Code Here

   * Gets the row count.
   *
   * @return the number of rows in the table
   */
  public int rowCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getControl().getItemCount();
      }
    });
  }
View Full Code Here

   * Gets the column count.
   *
   * @return the number of columns in the table
   */
  public int columnCount() {
    return syncExec(new IntResult() {
      public int run() {
        return getControl().getColumnCount();
      }
    });
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.finder.UIThreadRunnable.IntResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.