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

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


    clickXY(cellBounds.x + (cellBounds.width / 2), cellBounds.y + (cellBounds.height / 2));
    return this;
  }

  public String getText() {
    return syncExec(new StringResult() {
      public String run() {
        return widget.getText();
      }
    });
  }
View Full Code Here


   *
   * @param index the zero based index.
   * @return the item at the specified index.
   */
  public String itemAt(final int index) {
    return syncExec(new StringResult() {
      public String run() {
        return widget.getItem(index);
      }
    });
  }
View Full Code Here

    if (column == 0) {
      return getText();
    }
    int columnCount = new SWTBotTree(tree).columnCount();
    Assert.isLegal(column < columnCount, java.text.MessageFormat.format("The column index ({0}) is more than the number of column({1}) in the tree.", column, columnCount)); //$NON-NLS-1$
    return syncExec(new StringResult() {
      public String run() {
        return widget.getText(column);
      }
    });
  }
View Full Code Here

    Assert.isLegal(row < rowCount, "The row number (" + row + ") is more than the number of rows(" + rowCount + ") in the tree."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    Assert.isLegal(column < columnCount, "The column number (" + column + ") is more than the number of column(" + columnCount //$NON-NLS-1$ //$NON-NLS-2$
        + ") in the tree."); //$NON-NLS-1$

    return syncExec(new StringResult() {
      public String run() {
        TreeItem item = widget.getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

   * Attempts to select the current item.
   *
   * @return the current selection in the combo box.
   */
  public String selection() {
    return syncExec(new StringResult() {
      public String run() {
        return widget.getItem(widget.getSelectionIndex());
      }
    });
  }
View Full Code Here

   * @return the cell at the location specified by the row and column
   */
  public String cell(final int row, final int column) {
    assertIsLegalCell(row, column);

    return syncExec(new StringResult() {
      public String run() {
        TableItem item = widget.getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

   * Gets the current selection in the combo.
   *
   * @return the current selection in the combo box or null if no item is selected.
   */
  public String selection() {
    return syncExec(new StringResult() {
      public String run() {
        int selectionIndex = widget.getSelectionIndex();
        if (selectionIndex == -1)
          return null;
        return widget.getItem(selectionIndex);
View Full Code Here

    if (column == 0) {
      return getText();
    }
    int columnCount = new SWTBotTree(tree).columnCount();
    Assert.isLegal(column < columnCount, java.text.MessageFormat.format("The column index ({0}) is more than the number of column({1}) in the tree.", column, columnCount)); //$NON-NLS-1$
    return syncExec(new StringResult() {
      public String run() {
        return widget.getText(column);
      }
    });
  }
View Full Code Here

    Assert.isLegal(row < rowCount, "The row number (" + row + ") is more than the number of rows(" + rowCount + ") in the tree."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    Assert.isLegal(column < columnCount, "The column number (" + column + ") is more than the number of column(" + columnCount //$NON-NLS-1$ //$NON-NLS-2$
        + ") in the tree."); //$NON-NLS-1$

    return syncExec(new StringResult() {
      public String run() {
        TreeItem item = widget.getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

   * @return the cell at the location specified by the row and column
   */
  public String cell(final int row, final int column) {
    assertIsLegalCell(row, column);

    return syncExec(new StringResult() {
      public String run() {
        TableItem item = widget.getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.results.StringResult

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.