Interface Grid

All Superinterfaces:
Element, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TableBase<GridCell>, TestObject, TestObjectDescriber, WaitUntilEnabledProvider

public interface Grid extends TableBase<GridCell>
A grid control in a SAP GUI for Windows application.
  • Method Details

    • getFirstVisibleRow

      TableRow<GridCell> getFirstVisibleRow() throws GeneralLeanFtException
      Returns the first row visible in a scrolled area.
      Returns:
      the first row visible in a scrolled area.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getSelectionMode

      GridSelectionMode getSelectionMode() throws GeneralLeanFtException
      Returns the possible selections in the grid.
      Returns:
      the possible selections.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateColumn

      void activateColumn(String column) throws GeneralLeanFtException
      Double-clicks the specified column in the grid. Double-clicking the column selects the entire column, displays another window, or performs another application-specific action.
      Parameters:
      column - the name of the column.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateColumn

      void activateColumn(int columnIndex) throws GeneralLeanFtException
      Double-clicks the specified column in the grid. Double-clicking the column selects the entire column, displays another window, or performs another application-specific action.
      Parameters:
      columnIndex - 1-based.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • activateRow

      void activateRow(int rowIndex) throws GeneralLeanFtException
      Double-clicks the specified row in a grid.
      Parameters:
      rowIndex - 1-based.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • clearSelection

      void clearSelection() throws GeneralLeanFtException
      Clears any selected rows or columns in the grid.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • pressEnter

      void pressEnter() throws GeneralLeanFtException
      Presses the ENTER key when the grid is in focus.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • selectMenuItemById

      void selectMenuItemById(String menuItemId) throws GeneralLeanFtException
      Selects the specified menu item from a context menu. A context menu is opened by right-clicking the grid. Use selectColumn, selectRow, or selectCell to open the context menu before invoking this method.
      Parameters:
      menuItemId - The SAP ID for the menu item.
      Throws:
      GeneralLeanFtException - if error occurs during execution