Examples of IntResult


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

   * 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

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

   * 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

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

   * Returns the alignment. The alignment style (LEFT, CENTER or RIGHT) is returned.
   *
   * @return SWT.LEFT, SWT.RIGHT or SWT.CENTER
   */
  public int alignment() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getAlignment();
      }
    });
  }
View Full Code Here

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

   * Returns the alignment. The alignment style (LEFT, CENTER or RIGHT) is returned.
   *
   * @return SWT.LEFT, SWT.RIGHT or SWT.CENTER
   */
  public int alignment() {
    return syncExec(new IntResult() {
      public Integer run() {
        return widget.getAlignment();
      }
    });
  }
View Full Code Here

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

   * 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

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

   * 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

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

   * 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

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

   * 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

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

   * 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

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

   * 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
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.