Share this page

com.hp.lft.sdk.stdwin

## Interface ListItem

-     public interface ListItem

  A single list item in a standard Windows list.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getHeight()` Returns the list item's height (in pixels).
    `java.lang.String` | `getText()` Returns the text value of the list item, or "" when empty.
    `boolean` | `isFocused()` Indicates whether the list item has focus in a multiple selection list box.
    `boolean` | `isSelected()` Indicates whether the list item is selected.

- - ### Method Detail

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the text value of the list item, or "" when empty.
      Returns:
        the text value of the list item
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isFocused

          boolean isFocused()
                     throws GeneralLeanFtException

      Indicates whether the list item has focus in a multiple selection list box.
      Returns:
        true if the list item has focus in a multiple selection list box.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getHeight

          int getHeight()
                 throws GeneralLeanFtException

      Returns the list item's height (in pixels).
      Returns:
        the list item's height (in pixels).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isSelected

          boolean isSelected()
                      throws GeneralLeanFtException

      Indicates whether the list item is selected.
      Returns:
        true, if the list item is selected.
      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: