public abstract class AbstractHierarchyListItem extends java.lang.Object implements HierarchyListItem
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHierarchyListItem() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconColor()
Returns the color to be applied to the icon.
|
java.lang.String |
getIconUri()
Returns the URI for the icon for the node.
|
java.lang.Object |
getLocalData(java.lang.String s)
Returns the local data associated with the node for the specified key.
|
<T> T |
getLocalData(java.lang.String s,
java.lang.Class<T> clazz)
Returns the local data associated with the node for the specified key.
|
int |
getPreferredListIndex()
Returns the preferred index in the list for the item to be displayed at.
|
java.lang.String |
getUID()
Returns the unique ID of the list item
|
boolean |
isChildSupported()
Check if list item can contain children
|
java.lang.Object |
setLocalData(java.lang.String s,
java.lang.Object o)
Sets the specified local data on the object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAction, getChildAt, getChildCount, getDescendantCount, getExtraView, getTitle, getUserObject, refreshpublic java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItempublic int getPreferredListIndex()
HierarchyListItemgetPreferredListIndex in interface HierarchyListItem-1 to indicate no preference
(FIFO).public boolean isChildSupported()
HierarchyListItemisChildSupported in interface HierarchyListItempublic int getIconColor()
HierarchyListItemgetIconColor in interface HierarchyListItem0xFFFFFFFF (-1)
to use the original color.public java.lang.String getIconUri()
HierarchyListItemgetIconUri in interface HierarchyListItemnull if the node
has no icon, or "gone" to remove the icon space entirely.public final java.lang.Object setLocalData(java.lang.String s,
java.lang.Object o)
HierarchyListItemsetLocalData in interface HierarchyListItems - The key for the datao - The value for the datapublic final java.lang.Object getLocalData(java.lang.String s)
HierarchyListItemgetLocalData in interface HierarchyListItems - The key for the local datapublic final <T> T getLocalData(java.lang.String s,
java.lang.Class<T> clazz)
HierarchyListItemgetLocalData in interface HierarchyListItems - The key for the local dataclazz - The return type for the dataT.