Share this page

com.hp.lft.sdk.sap.ui5

## Interface DesktopTableBehavior

-     public interface DesktopTableBehavior

  Desktop functionality provided for tables. See `Table.getDesktop()`.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `clickColumnHeader(int columnNumber)` Clicks the header of the specified column according to its index.
    `void` | `clickColumnHeader(java.lang.String columnName)` Clicks the header of the specified column according to its name.
    `void` | `firstPage()` Scrolls the table to the first page.
    `int` | `getCurrentPage()` Returns the current page number in this table.
    `void` | `lastPage()` Scrolls the table to the last page.
    `void` | `moveColumn(int columnNumber, int toColumnNumber)` Moves the specified column (by index) to the specified column position (by index).
    `void` | `moveColumn(int toColumnNumber, java.lang.String column)` Moves the specified column (by name) to the specified column position (by index).
    `void` | `moveColumn(java.lang.String toColumn, int columnNumber)` Moves the specified column (by index) to the specified new position (by name).
    `void` | `moveColumn(java.lang.String column, java.lang.String toColumn)` Moves the specified column (by name) to the specified position (by name).
    `void` | `navigateToPage(int pageNumber)` Scrolls the table to the specified page.
    `void` | `nextPage()` Scrolls the table to the next page.
    `void` | `openMenu(int columnNumber)` Clicks the column header (according to its index) to open the associated menu.
    `void` | `openMenu(java.lang.String columnName)` Clicks the column header (by name) to open the associated menu.
    `void` | `previousPage()` Scrolls the table to the previous page.
    `void` | `resizeColumn(int width, int columnNmber)` Resizes the specified column (by index) to the specified width.
    `void` | `resizeColumn(java.lang.String column, int width)` Resizes the specified column (according to its name) to the specified width.

- - ### Method Detail

    - #### getCurrentPage

          int getCurrentPage()
                      throws GeneralLeanFtException

      Returns the current page number in this table.
      Returns:
        The current page number in this table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### moveColumn

          void moveColumn(int columnNumber,
                          int toColumnNumber)
                   throws GeneralLeanFtException

      Moves the specified column (by index) to the specified column position (by index).
      Parameters:
        `columnNumber` - the index of the column to move (1-based).
        `toColumnNumber` - the index of the column to move to (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### moveColumn

          void moveColumn(java.lang.String column,
                          java.lang.String toColumn)
                   throws GeneralLeanFtException

      Moves the specified column (by name) to the specified position (by name).
      Parameters:
        `column` - the name of the column to move.
        `toColumn` - the name of the column to move to.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### moveColumn

          void moveColumn(java.lang.String toColumn,
                          int columnNumber)
                   throws GeneralLeanFtException

      Moves the specified column (by index) to the specified new position (by name).
      Parameters:
        `toColumn` - the name of column to move to.
        `columnNumber` - the number of the column to move (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### moveColumn

          void moveColumn(int toColumnNumber,
                          java.lang.String column)
                   throws GeneralLeanFtException

      Moves the specified column (by name) to the specified column position (by index).
      Parameters:
        `toColumnNumber` - the number of the column to move (1-based).
        `column` - the name of the column to move.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### resizeColumn

          void resizeColumn(int width,
                            int columnNmber)
                     throws GeneralLeanFtException

      Resizes the specified column (by index) to the specified width.
      Parameters:
        `width` - the width to resize to.
        `columnNmber` - the index of the column to resize.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### resizeColumn

          void resizeColumn(java.lang.String column,
                            int width)
                     throws GeneralLeanFtException

      Resizes the specified column (according to its name) to the specified width.
      Parameters:
        `column` - the name of the column to resize.
        `width` - the width to resize to.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### navigateToPage

          void navigateToPage(int pageNumber)
                       throws GeneralLeanFtException

      Scrolls the table to the specified page.
      Parameters:
        `pageNumber` - the page number to scroll to.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openMenu

          void openMenu(int columnNumber)
                 throws GeneralLeanFtException

      Clicks the column header (according to its index) to open the associated menu.
      Parameters:
        `columnNumber` - the column number to click (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openMenu

          void openMenu(java.lang.String columnName)
                 throws GeneralLeanFtException

      Clicks the column header (by name) to open the associated menu.
      Parameters:
        `columnName` - the column name to click.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### nextPage

          void nextPage()
                 throws GeneralLeanFtException

      Scrolls the table to the next page.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### previousPage

          void previousPage()
                     throws GeneralLeanFtException

      Scrolls the table to the previous page.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### firstPage

          void firstPage()
                  throws GeneralLeanFtException

      Scrolls the table to the first page.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### lastPage

          void lastPage()
                 throws GeneralLeanFtException

      Scrolls the table to the last page.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### clickColumnHeader

          void clickColumnHeader(int columnNumber)
                          throws GeneralLeanFtException

      Clicks the header of the specified column according to its index.
      Parameters:
        `columnNumber` - the index of the column to click (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### clickColumnHeader

          void clickColumnHeader(java.lang.String columnName)
                          throws GeneralLeanFtException

      Clicks the header of the specified column according to its name.
      Parameters:
        `columnName` - the name of the column to click.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: