Interface TethysUITreeManager.TethysUITreeItem<T>
- Type Parameters:
T- the data type
- All Known Implementing Classes:
TethysUICoreTreeManager.TethysUICoreTreeItem
- Enclosing interface:
TethysUITreeManager<T>
public static interface TethysUITreeManager.TethysUITreeItem<T>
TreeItem class.
-
Method Summary
Modifier and TypeMethodDescriptionintCount previous visible items.Obtain the iconId.getItem()Obtain the item.getName()Obtain the unique name.Obtain the parent.getTree()Obtain the tree.booleanDo we have children?booleanisRoot()Is the item root?booleanIs the item visible?voidRemove all children.voidsetFocus()Set focus to this item.voidsetIcon(TethysUIIconId pIconId) Set the iconId.voidSet the item.voidsetVisible(boolean pVisible) Set the visibility of the item.
-
Method Details
-
getItem
T getItem()Obtain the item.- Returns:
- the item
-
getIconId
TethysUIIconId getIconId()Obtain the iconId.- Returns:
- the iconId
-
getName
String getName()Obtain the unique name.- Returns:
- the name
-
getParent
TethysUITreeManager.TethysUITreeItem<T> getParent()Obtain the parent.- Returns:
- the parent
-
getTree
TethysUITreeManager<T> getTree()Obtain the tree.- Returns:
- the tree
-
isVisible
boolean isVisible()Is the item visible?- Returns:
- true/false
-
isRoot
boolean isRoot()Is the item root?- Returns:
- true/false
-
setItem
Set the item.- Parameters:
pItem- the item
-
setIcon
Set the iconId.- Parameters:
pIconId- the iconId
-
setVisible
void setVisible(boolean pVisible) Set the visibility of the item.- Parameters:
pVisible- true/false
-
hasChildren
boolean hasChildren()Do we have children?- Returns:
- true/false
-
countPreviousVisibleSiblings
int countPreviousVisibleSiblings()Count previous visible items.- Returns:
- the count
-
removeChildren
void removeChildren()Remove all children. -
setFocus
void setFocus()Set focus to this item.
-