Package org.eclipse.swtbot.swt.finder.results

Examples of org.eclipse.swtbot.swt.finder.results.IntResult


   * Return the page increment of the spinner.
   *
   * @return the increment of the spinner.
   */
  public int getPageIncrement() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getPageIncrement();
      }
    });
  }
View Full Code Here


   * Return the number of decimal places of the spinner.
   *
   * @return the number of decimal places of the spinner.
   */
  public int getDigits() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getDigits();
      }
    });
  }
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 Integer run() {
        return widget.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 Integer run() {
        return widget.getColumnCount();
      }
    });
  }
View Full Code Here

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

   * Gets the visible row count.
   *
   * @return the number of visible rows
   */
  public int visibleRowCount() {
    return syncExec(new IntResult() {
      public Integer run() {
        TreeItem[] items = widget.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 Integer run() {
        return widget.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 Integer run() {
        return widget.getColumnCount();
      }
    });
  }
View Full Code Here

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

   * @param item the item in the table.
   * @return the index of the specified item in the table, or -1 if the item does not exist in the table.
   * @since 1.0
   */
  public int indexOf(final String item) {
    return syncExec(new IntResult() {
      public Integer run() {
        TableItem[] items = widget.getItems();
        for (int i = 0; i < items.length; i++) {
          TableItem tableItem = items[i];
          if (tableItem.getText().equals(item))
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.results.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.