Interface TethysUITreeManager<T>
- Type Parameters:
T- the item type
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>,TethysUIComponent
- All Known Implementing Classes:
TethysUICoreTreeManager
public interface TethysUITreeManager<T>
extends OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>, TethysUIComponent
Tree Manager.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTreeItem class. -
Method Summary
Modifier and TypeMethodDescriptionaddChildItem(TethysUITreeManager.TethysUITreeItem<T> pParent, String pName, T pItem) Add item to parent.addRootItem(String pName, T pItem) Add item to root.getIcon(TethysUIIconId pIconId) Obtain the icon for the iconId.getRoot()Obtain the root.Obtain the selected item.booleanIs the tree visible?booleanlookUpAndSelectItem(String pName) Select and display item.lookUpItem(String pName) LookUp item by name.voidsetRootName(String pName) Set the root name.voidSet the root as visible.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrarMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Method Details
-
getSelectedItem
T getSelectedItem()Obtain the selected item.- Returns:
- the item.
-
setRootVisible
void setRootVisible()Set the root as visible. -
getRoot
TethysUITreeManager.TethysUITreeItem<T> getRoot()Obtain the root.- Returns:
- the root
-
setRootName
Set the root name.- Parameters:
pName- the root name
-
isVisible
boolean isVisible()Is the tree visible?- Returns:
- true/false
-
lookUpAndSelectItem
Select and display item.- Parameters:
pName- the name of the item- Returns:
- was an item selected? true/false
-
lookUpItem
LookUp item by name.- Parameters:
pName- the name of the item- Returns:
- the item (or null)
-
addRootItem
Add item to root.- Parameters:
pName- the namepItem- the item- Returns:
- the new tree item
-
addChildItem
TethysUITreeManager.TethysUITreeItem<T> addChildItem(TethysUITreeManager.TethysUITreeItem<T> pParent, String pName, T pItem) Add item to parent.- Parameters:
pParent- the parentpName- the namepItem- the item- Returns:
- the new tree item
-
getIcon
Obtain the icon for the iconId.- Parameters:
pIconId- the iconId- Returns:
- the icon
-