Share this page

com.hp.lft.sdk.mobile

## Interface Table

- All Superinterfaces:
    EnabledProvider, Scrollable, TestObject, TestObjectDescriber, UiObjectBase, WaitUntilEnabledProvider

      public interface Table
      extends UiObjectBase, TestObject, Scrollable

  A table object in a mobile application.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int item)` Deletes the specified item from the table.
    `void` | `delete(int section, int item)` Deletes the specified item or section (iOS only).
    `void` | `insert(int item)` Inserts an item or section at the specified location in the table.
    `void` | `insert(int section, int item)` Inserts an item or section at the specified location in the table (iOS only).
    `void` | `moveItem(int srcItem, int destItem)` Moves an item or section in the list (iOS only).
    `void` | `moveItem(int srcSection, int srcItem, int destSection, int destItem)` Moves an item or section in the list (iOS only).
    `void` | `scroll(int index)` Scrolls to the specified item in the table.
    `void` | `scroll(int section, int item)` Scrolls to the specified item in the specified section of the table.
    `void` | `select(int index)` Selects a row in the table.
    `void` | `select(int section, int item)` Selects an item in a section in the table.

    - ### Methods inherited from interface com.hp.lft.sdk.mobile.UiObjectBase

      `getAccessibilityId, getClassName, getContainer, getHint, getLocation, getMobileCenterIndex, getNativeClass, getResourceId, getSize, getText, isCheckable, isChecked, isClickable, isFocusable, isFocused, longPress, longPress, pan, pan, pan, pinch, pinch, swipe, swipe, tap, tap`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.mobile.Scrollable

      `scrollOnePage, scrollToOffset`

- - ### Method Detail

    - #### scroll

          void scroll(int index)
                      throws GeneralLeanFtException

      Scrolls to the specified item in the table.
      Parameters:
        `index` - the numeric index of the item to scroll to.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### scroll

          void scroll(int section,
                    int item)
                      throws GeneralLeanFtException

      Scrolls to the specified item in the specified section of the table.
      Parameters:
        `section` - the numeric index of the section containing the item to scroll to.
        `item` - the numeric index of the item to scroll to.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int index)
                      throws GeneralLeanFtException

      Selects a row in the table.
      Parameters:
        `index` - the numeric index of the item to select.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int section,
                    int item)
                      throws GeneralLeanFtException

      Selects an item in a section in the table.
      Parameters:
        `section` - the numeric index of the section in which to select the specified item.
        `item` - the numeric index of the item to select.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### insert

          void insert(int item)
                      throws GeneralLeanFtException

      Inserts an item or section at the specified location in the table. (iOS Only)
      Parameters:
        `item` - the numeric index of the location for the new item.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### insert

          void insert(int section,
                    int item)
                      throws GeneralLeanFtException

      Inserts an item or section at the specified location in the table (iOS only).
      Parameters:
        `section` - the numeric index of the section in which to insert the specified item.
        `item` - the numeric index of the location for the new item.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### delete

          void delete(int item)
                      throws GeneralLeanFtException

      Deletes the specified item from the table. (iOS Only)
      Parameters:
        `item` - the numeric index of the item to delete.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### delete

          void delete(int section,
                    int item)
                      throws GeneralLeanFtException

      Deletes the specified item or section (iOS only).
      Parameters:
        `section` - the numeric index of the section from which to delete the specified item.
        `item` - the numeric index of the item to delete.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### moveItem

          void moveItem(int srcItem,
                      int destItem)
                        throws GeneralLeanFtException

      Moves an item or section in the list (iOS only).
      Parameters:
        `srcItem` - the numeric index of the item to move.
        `destItem` - the numeric index of the new location for the item.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### moveItem

          void moveItem(int srcSection,
                      int srcItem,
                      int destSection,
                      int destItem)
                        throws GeneralLeanFtException

      Moves an item or section in the list (iOS only).
      Parameters:
        `srcSection` - the numeric index of the section from which to move the specified srcItem.
        `srcItem` - the numeric index of the item to move.
        `destSection` - the numeric index of the section in which to place the specified destItem.
        `destItem` - the numeric index of the new location for the item.
      Throws:
        `GeneralLeanFtException` - if 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: