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, wait
getAction, getChildAt, getChildCount, getDescendantCount, getExtraView, getTitle, getUserObject, refresh
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
public int getPreferredListIndex()
HierarchyListItem
getPreferredListIndex
in interface HierarchyListItem
-1
to indicate no preference
(FIFO).public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
public int getIconColor()
HierarchyListItem
getIconColor
in interface HierarchyListItem
0xFFFFFFFF
(-1
)
to use the original color.public java.lang.String getIconUri()
HierarchyListItem
getIconUri
in interface HierarchyListItem
null
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)
HierarchyListItem
setLocalData
in interface HierarchyListItem
s
- The key for the datao
- The value for the datapublic final java.lang.Object getLocalData(java.lang.String s)
HierarchyListItem
getLocalData
in interface HierarchyListItem
s
- The key for the local datapublic final <T> T getLocalData(java.lang.String s, java.lang.Class<T> clazz)
HierarchyListItem
getLocalData
in interface HierarchyListItem
s
- The key for the local dataclazz
- The return type for the dataT
.