Interface ListItem


public interface ListItem
A single list item belonging to a .NET Windows Forms list.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the list item's height (in pixels).
    Returns the text value of the list item, or "" if the list item does not contain any text.
    boolean
    Indicates whether this list item is an anchor item (the item from which a multiple selection span starts).
    boolean
    Indicates whether the list item is checked.
    boolean
    Indicates whether this list item has the focus in a multiple selection list box.
    boolean
    Indicates whether the list item is selected.
  • Method Details

    • getText

      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 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 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 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 error occurs during execution
    • isSelected

      boolean isSelected() throws GeneralLeanFtException
      Indicates whether the list item is selected.
      Returns:
      true if selected
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isChecked

      boolean isChecked() throws GeneralLeanFtException
      Indicates whether the list item is checked.
      Returns:
      true if checked
      Throws:
      GeneralLeanFtException - if error occurs during execution