Open topic with navigation

com.hp.lft.sdk.winforms

## Interface ListItem

-     public interface ListItem

  A single list item belonging to a .NET Windows Forms 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 "" if the list item does not contain any text.
    `boolean` | `isAnchor()` Indicates whether this list item is an anchor item (the item from which a multiple selection span starts).
    `boolean` | `isChecked()` Indicates whether the list item is checked.
    `boolean` | `isFocused()` Indicates whether this list item has the 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 "" if the list item does not contain any text.
      Returns:
        the text value of the list item
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isFocused

          boolean isFocused()
                     throws GeneralLeanFtException

      Indicates whether this list item has the focus in a multiple selection list box.
      Returns:
        true if has the focus
      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.

    - #### isAnchor

          boolean isAnchor()
                    throws GeneralLeanFtException

      Indicates whether this list item is an anchor item (the item from which a multiple selection span starts).
      Returns:
        true if an anchor item
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isSelected

          boolean isSelected()
                      throws GeneralLeanFtException

      Indicates whether the list item is selected.
      Returns:
        true if selected
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isChecked

          boolean isChecked()
                     throws GeneralLeanFtException

      Indicates whether the list item is checked.
      Returns:
        true if checked
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.