public interface HierarchyListItem
Modifier and Type | Interface and Description |
---|---|
static class |
HierarchyListItem.ComparatorSort |
static class |
HierarchyListItem.Sort |
static class |
HierarchyListItem.SortAlphabet |
static class |
HierarchyListItem.SortAlphabetDesc |
static class |
HierarchyListItem.SortDistanceFrom |
Modifier and Type | Method and Description |
---|---|
<T extends Action> |
getAction(java.lang.Class<T> clazz)
Returns an instance of the specified action that can be used to interact with the node's
underlying content.
|
HierarchyListItem |
getChildAt(int index)
Returns the child node at the specified index.
|
int |
getChildCount()
Returns the number of children that this node has.
|
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.view.View |
getExtraView()
Returns the extra view, if any, associated with the node.
|
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 |
getTitle()
Returns the title to be displayed for the item.
|
java.lang.String |
getUID()
Returns the unique ID of the list item
|
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
isChildSupported()
Check if list item can contain children
|
HierarchyListItem.Sort |
refresh(HierarchyListItem.Sort sortHint)
Refreshes this node's descendants on the specified sort.
|
java.lang.Object |
setLocalData(java.lang.String s,
java.lang.Object o)
Sets the specified local data on the object.
|
java.lang.String getUID()
java.lang.String getTitle()
int getPreferredListIndex()
-1
to indicate no preference
(FIFO).int getChildCount()
int getDescendantCount()
HierarchyListItem getChildAt(int index)
index
- The indexboolean isChildSupported()
java.lang.String getIconUri()
null
if the node
has no icon, or "gone" to remove the icon space entirely.int getIconColor()
0xFFFFFFFF
(-1
)
to use the original color.java.lang.Object setLocalData(java.lang.String s, java.lang.Object o)
s
- The key for the datao
- The value for the datajava.lang.Object getLocalData(java.lang.String s)
s
- The key for the local data<T> T getLocalData(java.lang.String s, java.lang.Class<T> clazz)
s
- The key for the local dataclazz
- The return type for the dataT
.<T extends Action> T getAction(java.lang.Class<T> clazz)
clazz
- The action classnull
if the specified
action is not supported for the node.java.lang.Object getUserObject()
null
.android.view.View getExtraView()
null
if there is no view.HierarchyListItem.Sort refresh(HierarchyListItem.Sort sortHint)
sortHint
- The new sort