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

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


   * @param column the column for which to get the index of.
   * @return the index of the specified item and of the specified column in the table.
   * @since 1.3
   */
  public int indexOf(final String item, final int column) {
    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(column).equals(item))
View Full Code Here


   * 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 Integer run() {
        return widget.getTextLimit();
      }
    });
  }
View Full Code Here

   *
   * @param text The text to use.
   */
  private void _setSelection(final String text) {
    waitForEnabled();
    final int indexOf = syncExec(new IntResult() {
      public Integer run() {
        String[] items = widget.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 Integer run() {
        return widget.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 Integer run() {
        return widget.getItemCount();
      }
    });
  }
View Full Code Here

   * Sets the selection to the given text.
   *
   * @param text The text to select.
   */
  private void _setSelection(final String text) {
    final int indexOf = syncExec(new IntResult() {
      public Integer run() {
        String[] items = widget.getItems();
        return Arrays.asList(items).indexOf(text);
      }
    });
View Full Code Here

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

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

   * Return the current value of the scale.
   *
   * @return the current selection in the scale.
   */
  public int getValue() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getSelection();
      }
    });
  }
View Full Code Here

   * Return the maximum value the scale will accept.
   *
   * @return the maximum of the scale.
   */
  public int getMaximum() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getMaximum();
      }
    });
  }
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.