Open topic with navigation

com.hp.lft.sdk.oracle

# Interface TableCell

Note: Supported in LeanFT versions 14.52 and later.

-     public interface TableCell

  A single cell in an Oracle Table.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends UiObjectBase> T` | `asTestObject(Class<T> type)` Returns the test object representing a specified cell.
    `Object` | `getValue()` Returns the content of the cell.
    `boolean` | `isEditable()` Indicates whether the field is editable.
    `void` | `openDialog()` Opens a specified cell's associated dialog box.
    `void` | `setFocus()` Transfers focus to a specified cell.
    `void` | `setValue(Object value)` Enters a value in a specific cell.
    `void` | `setValueAndValidate(Object value)` Enters a value in a specific cell with validation.

- - ### Method Detail

    - #### getValue

          Object getValue()
                   throws GeneralLeanFtException

      Returns the content of the cell.
      Returns:
        the content of the cell.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### setValue

          void setValue(Object value)
                 throws GeneralLeanFtException

      Enters a value in a specific cell.
      Parameters:
        `value` - the new value.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### setValueAndValidate

          void setValueAndValidate(Object value)
                            throws GeneralLeanFtException

      Enters a value in a specific cell with validation.
      Parameters:
        `value` - the new value.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### setFocus

          void setFocus()
                 throws GeneralLeanFtException

      Transfers focus to a specified cell.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### openDialog

          void openDialog()
                   throws GeneralLeanFtException

      Opens a specified cell's associated dialog box.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### asTestObject

          <T extends UiObjectBase> T asTestObject(Class<T> type)
                                           throws GeneralLeanFtException

      Returns the test object representing a specified cell.
      Type Parameters:
        `T` - the generic type of the oracle test object.
      Parameters:
        `type` - the oracle test object type to find.
      Returns:
        a test objects.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isEditable

          boolean isEditable()
                      throws GeneralLeanFtException

      Indicates whether the field is editable.
      Returns:
        true if editable.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution