com.hp.lft.sdk.winforms

Interface ListViewItem

    • Method Summary

      Modifier and TypeMethod and Description
      voidclickState()
      Clicks the state image icon.
      voiddoubleClickState()
      Double-clicks state image icon.
      voidenableLabelEditing()
      Activates the edit mode for the lists item label to enable renaming.
      intgetState()
      Returns this list-view control item's state image index.
      java.lang.StringgetSubItemText()
      Returns the text value of this report-style (LVS_REPORT) list-view subitem.
      java.lang.StringgetSubItemText(int columnIndex)
      Returns the text value of this report-style (LVS_REPORT) list-view subitem.
      java.lang.StringgetSubItemText(java.lang.String columnName)
      Returns the text value of this report-style (LVS_REPORT) list-view subitem.
      java.lang.StringgetText()
      The text of this list item.
      booleanisFocused()
      Indicates whether this list item has the focus in a multiple-selection list box.
      booleanisSelected()
      Indicates whether this list item is selected.
      voidsetItemState(int index)
      Sets the state of the check box icon of the specified item in this list.
    • Method Detail

      • getText

        java.lang.String getText()
                          throws GeneralLeanFtException
        The text of this list item. Returns an empty string if this list item does not contain any text.
        Returns:
        the text
        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 in focus
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getSubItemText

        java.lang.String getSubItemText(int columnIndex)
                                 throws GeneralLeanFtException
        Returns the text value of this report-style (LVS_REPORT) list-view subitem.
        Parameters:
        columnIndex - The 0-based index of the sub-item
        Returns:
        the text value of this report-style (LVS_REPORT) list-view subitem
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getSubItemText

        java.lang.String getSubItemText()
                                 throws GeneralLeanFtException
        Returns the text value of this report-style (LVS_REPORT) list-view subitem.
        Returns:
        the text value of this specified report-style (LVS_REPORT) list-view subitem
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getSubItemText

        java.lang.String getSubItemText(java.lang.String columnName)
                                 throws GeneralLeanFtException
        Returns the text value of this report-style (LVS_REPORT) list-view subitem.
        Parameters:
        columnName - The name of the sub-item
        Returns:
        the text value of the report-style (LVS_REPORT) list-view subitem.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setItemState

        void setItemState(int index)
                   throws GeneralLeanFtException
        Sets the state of the check box icon of the specified item in this list.
        Parameters:
        index - the 0-based state image index
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • enableLabelEditing

        void enableLabelEditing()
                         throws GeneralLeanFtException
        Activates the edit mode for the lists item label to enable renaming. After enabling with this method, to rename the item, use the EditField or Editor test object, together with an applicable method.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.