public class ListItem
Manages items in a listview.
Methods
Name | Description |
---|---|
equals(Object obj) | Returns whether two list items are equal. |
getData() | Returns data handle associated with this list item. |
getImageIndex() | Returns the ListItem's currently set image index. |
getIndex() | Returns ListItem's current index in the listview. |
getListView() | Returns the ListView associated with this ListItem. |
getRect() | Returns the ListItems bounding rectangle. |
getSubItem(int index) | Returns a specific subitem for this ListItem. |
getSubItemCount() | Returns the number of subitems in this ListItem. |
getSubItems() | Returns SubItem array. |
getText() | Returns text associated with this ListItem. |
hashCode() | Topic under construction. |
setData(int data) | Sets a new data handle for this ListItem. |
setImageIndex(int image) | Sets the image index for this item. |
setSubItem(int index, String text) | Sets SubItem text string to this ListItem at the given index. |
setSubItems(String[] subItems) | Sets the internal SubItems array to the new array and sets the ListView to match accordingly. |
setText(String text) | Sets the text for this ListItem. |
toString() | Topic under construction. |
Returns whether two list items are equal.
Returns a previously set data handle.
Returns data handle associated with this list item.
Returns an image index.
Returns the ListItem's currently set image index.
Returns the ListItem's index in ListView.
Returns ListItem's current index in the listview.
Returns ListView associated with this item.
Returns the ListView associated with this ListItem.
Returns the rectangle associated with the ListItem.
Returns the ListItems bounding rectangle.
Returns the text of selected subitem
Returns a specific subitem for this ListItem.
IllegalArgumentException hrown if SubItem index is out of bounds.
Returns the count of SubItems.
Returns the number of subitems in this ListItem.
Returns SubItem array.
Returns SubItem array.
Returns ListItem's text.
Returns text associated with this ListItem.
Topic under construction.
Sets a new data handle for this ListItem.
Sets the image index for this item.
Sets SubItem text string to this ListItem at the given index. If index greater than or equal to SubItemCount, then the SubItem array is grown to match the index. Anything in between the old array bounds and the new is declared as null.
IllegalArgumentException thrown if Index is less than 0 or if Index is greater than the number of current columns in the ListView.
Sets the internal SubItems array to the new array and sets the ListView to match accordingly.
IllegalArgumentException thrown if the number of subitems in new array greater than the number of current columns in the ListView.
Sets the text for this ListItem.
Topic under construction.