Package com.hp.lft.sdk.winforms
Interface ListViewItem
- All Superinterfaces:
- SupportDragAndDrop
A single list item belonging to a .NET Windows Forms list-view.
- 
Method SummaryModifier and TypeMethodDescriptionvoidClicks the state image icon.voidDouble-clicks state image icon.voidActivates the edit mode for the lists item label to enable renaming.intgetState()Returns this list-view control item's state image index.Returns the text value of this report-style (LVS_REPORT) list-view subitem.getSubItemText(int columnIndex) Returns the text value of this report-style (LVS_REPORT) list-view subitem.getSubItemText(String columnName) Returns the text value of this report-style (LVS_REPORT) list-view subitem.getText()The text of this list item.booleanIndicates whether this list item has the focus in a multiple-selection list box.booleanIndicates whether this list item is selected.voidsetItemState(int index) Sets the state of the check box icon of the specified item in this list.Methods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOn
- 
Method Details- 
getTextThe text of this list item. Returns an empty string if this list item does not contain any text.- Returns:
- the text
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isFocusedIndicates whether this list item has the focus in a multiple-selection list box.- Returns:
- true if in focus
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isSelectedIndicates whether this list item is selected.- Returns:
- true if selected
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getStateReturns this list-view control item's state image index.- Returns:
- the image index
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSubItemTextReturns 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 error occurs during execution
 
- 
getSubItemTextReturns 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 error occurs during execution
 
- 
getSubItemTextReturns 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 error occurs during execution
 
- 
setItemStateSets 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 error occurs during execution
 
- 
clickStateClicks the state image icon.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
doubleClickStateDouble-clicks state image icon.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
enableLabelEditingActivates the edit mode for the lists item label to enable renaming. After enabling with this method, to rename the item, use theEditFieldorEditortest object, together with an applicable method.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-