Interface TableBase<T extends TableCellBase>

All Superinterfaces:
Element, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, WaitUntilEnabledProvider
All Known Subinterfaces:
APOGrid, Grid, Table

public interface TableBase<T extends TableCellBase> extends Element, WaitUntilEnabledProvider
The base interface for table, grid and APO grid controls in a SAP GUI for Windows application.
  • Method Details

    • getTitle

      String getTitle() throws GeneralLeanFtException
      Returns the title of the object.
      Returns:
      the title.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getRows

      Returns the list of rows in the test object.
      Returns:
      the list of rows.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateCell

      void activateCell(int row, String column) throws GeneralLeanFtException
      Double-clicks the specified cell.
      Parameters:
      row - the 1-based row index.
      column - the column name.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateCell

      void activateCell(int row, int columnIndex) throws GeneralLeanFtException
      Double-clicks the specified cell.
      Parameters:
      row - the 1-based row index.
      columnIndex - the 1-based column index.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectCell

      void selectCell(int row, String column) throws GeneralLeanFtException
      Selects the specified cell.
      Parameters:
      row - the 1-based row index.
      column - the name of the column.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectCell

      void selectCell(int row, int columnIndex) throws GeneralLeanFtException
      Selects the specified cell.
      Parameters:
      row - the 1-based row index.
      columnIndex - the 1-based column index.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectRow

      void selectRow(int... rowIndices) throws GeneralLeanFtException
      Selects the specified rows.
      Parameters:
      rowIndices - the 1-based row indexes.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectRowRange

      void selectRowRange(int indexFrom, int indexTo) throws GeneralLeanFtException
      Selects the specified row range.
      Parameters:
      indexTo - the 1-based index of the start row.
      indexFrom - the 1-based index of the end row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectColumn

      void selectColumn(String... columns) throws GeneralLeanFtException
      Selects the specified columns.
      Parameters:
      columns - the names of the columns.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectColumn

      void selectColumn(int... columnIndices) throws GeneralLeanFtException
      Selects the specified columns.
      Parameters:
      columnIndices - the 1-based column indexes.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselectRow

      void deselectRow(int... rowIndices) throws GeneralLeanFtException
      Unselects the specified rows.
      Parameters:
      rowIndices - the 1-based row indexes.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselectRowRange

      void deselectRowRange(int indexFrom, int indexTo) throws GeneralLeanFtException
      Unselects the specified rows.
      Parameters:
      indexTo - the 1-based index of the start row.
      indexFrom - the 1-based index of the end row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselectColumn

      void deselectColumn(String... columns) throws GeneralLeanFtException
      Unselects the specified columns.
      Parameters:
      columns - the names of the columns.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • deselectColumn

      void deselectColumn(int... columnIndices) throws GeneralLeanFtException
      Unselects the specified columns.
      Parameters:
      columnIndices - the 1-based column indexes.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findRowWithCellTextInColumn

      TableRow<T> findRowWithCellTextInColumn(String text, String column) throws GeneralLeanFtException
      Finds the first row with this text.
      Parameters:
      text - the text to find.
      column - the name of the column to search.
      Returns:
      the row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findRowWithCellTextInColumn

      TableRow<T> findRowWithCellTextInColumn(String text, int columnIndex) throws GeneralLeanFtException
      Finds the first row with this text.
      Parameters:
      text - the text to find.
      columnIndex - the 1-based column index.
      Returns:
      the row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findRowWithCellTextInColumn

      TableRow<T> findRowWithCellTextInColumn(String text, String column, int startFromRow) throws GeneralLeanFtException
      Finds the first row with this text.
      Parameters:
      text - the text to find.
      column - the name of the column to search.
      startFromRow - the 1-based index of the row from which to search.
      Returns:
      the row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findRowWithCellTextInColumn

      TableRow<T> findRowWithCellTextInColumn(String text, int columnIndex, int startFromRow) throws GeneralLeanFtException
      Finds the first row with this text.
      Parameters:
      text - the text to find.
      columnIndex - the 1-based index of the column to search.
      startFromRow - the 1-based index of the row from which to search.
      Returns:
      the row.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findAllRowsWithCellTextInColumn

      List<TableRow<T>> findAllRowsWithCellTextInColumn(String text, int columnIndex) throws GeneralLeanFtException
      Finds all rows with this text in the specified column.
      Parameters:
      text - the text to find.
      columnIndex - the 1-based index of the column to search.
      Returns:
      the rows.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • findAllRowsWithCellTextInColumn

      List<TableRow<T>> findAllRowsWithCellTextInColumn(String text, String column) throws GeneralLeanFtException
      Finds all rows with the specified text in the specified column.
      Parameters:
      text - the text to find.
      column - the name of the column to search.
      Returns:
      the rows.
      Throws:
      GeneralLeanFtException - if error occurs during execution