Examples of IntResult


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

   * @param item the index of the item in the table, or -1 if the item does not exist in the table.
   * @return the index of the specified item 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

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

Examples of org.eclipse.swtbot.swt.finder.results.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 Integer run() {
        return widget.getTextLimit();
      }
    });
  }
View Full Code Here

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

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

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

   * 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

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

   * 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

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

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

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

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

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

   *
   * @param item the search item.
   * @return the index of the item, or -1 if the item does not exist.
   */
  public int indexOf(final String item) {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.indexOf(item);
      }
    });
  }
View Full Code Here

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

   * Returns the number of items contained in the receiver that are direct item children of the receiver.
   *
   * @return the number of items
   */
  public int rowCount() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getItemCount();
      }
    });
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.