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.
  • Method Details

    • getSelectedItem

      T getSelectedItem()
      Obtain the selected item.
      Returns:
      the item.
    • setRootVisible

      void setRootVisible()
      Set the root as visible.
    • getRoot

      Obtain the root.
      Returns:
      the root
    • setRootName

      void setRootName(String pName)
      Set the root name.
      Parameters:
      pName - the root name
    • isVisible

      boolean isVisible()
      Is the tree visible?
      Returns:
      true/false
    • lookUpAndSelectItem

      boolean lookUpAndSelectItem(String pName)
      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

      TethysUITreeManager.TethysUITreeItem<T> addRootItem(String pName, T pItem)
      Add item to root.
      Parameters:
      pName - the name
      pItem - the item
      Returns:
      the new tree item
    • addChildItem

      Add item to parent.
      Parameters:
      pParent - the parent
      pName - the name
      pItem - the item
      Returns:
      the new tree item
    • getIcon

      TethysUIIcon getIcon(TethysUIIconId pIconId)
      Obtain the icon for the iconId.
      Parameters:
      pIconId - the iconId
      Returns:
      the icon