Share this page

com.hp.lft.sdk.sap.ui5

## Interface MobileListBehavior

-     public interface MobileListBehavior

  Mobile functionality provided for SAPUI5 lists. See `ListBox.getMobile()`.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int itemIndex)` Deletes the specified item (by index) from the list.
    `void` | `delete(ListItem item)` Deletes the specified item from the list.
    `void` | `delete(java.lang.String item)` Deletes the specified item (by name) from the list.
    `MobileListItem` | `getItem(java.lang.String text)` Returns an item with the specified text.
    `java.util.List<MobileListItem>` | `getItems()` Returns all items in the list
    `java.util.List<MobileListItem>` | `getSelectedItems()` Returns a collection of all selected items in the list.
    `void` | `more()` Clicks the More button to expand the list and show additional list items.
    `void` | `singleSelect(int itemIndex)` Selects the specified radio button (by index) adjacent to the list item.
    `void` | `singleSelect(ListItem item)` Selects the specified `ListItem` item in the list item.
    `void` | `singleSelect(java.lang.String item)` Selects the specified radio button (by name) adjacent to the list item.

- - ### Method Detail

    - #### getItems

          java.util.List<MobileListItem> getItems()
                                           throws GeneralLeanFtException

      Returns all items in the list
      Returns:
        all items in the list.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedItems

          java.util.List<MobileListItem> getSelectedItems()
                                                   throws GeneralLeanFtException

      Returns a collection of all selected items in the list.
      Returns:
        a collection of all selected items in the list.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getItem

                                                      MobileListItem getItem(java.lang.String text)
                          throws GeneralLeanFtException

      Returns an item with the specified text.
      Parameters:
        `text` - the text of the item to return.
      Returns:
        an item with the specified text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### singleSelect

          void singleSelect(java.lang.String item)
                     throws GeneralLeanFtException

      Selects the specified radio button (by name) adjacent to the list item.
      Parameters:
        `item` - the name of the radio button to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### singleSelect

          void singleSelect(int itemIndex)
                     throws GeneralLeanFtException

      Selects the specified radio button (by index) adjacent to the list item.
      Parameters:
        `itemIndex` - the index of the radio button to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### singleSelect

          void singleSelect(ListItem item)
                     throws GeneralLeanFtException

      Selects the specified `ListItem` item in the list item.
      Parameters:
        `item` - the `ListItem` item to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### delete

          void delete(int itemIndex)
               throws GeneralLeanFtException

      Deletes the specified item (by index) from the list.
      Parameters:
        `itemIndex` - index of item to delete.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### delete

          void delete(java.lang.String item)
               throws GeneralLeanFtException

      Deletes the specified item (by name) from the list.
      Parameters:
        `item` - the name of the item to delete.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### delete

          void delete(ListItem item)
               throws GeneralLeanFtException

      Deletes the specified item from the list.
      Parameters:
        `item` - the `ListItem` item to delete.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### more

          void more()
             throws GeneralLeanFtException

      Clicks the More button to expand the list and show additional list items.
      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: