Class DockingLayoutNode.Tabs

java.lang.Object
com.dlsc.gemsfx.docking.DockingLayoutNode.Tabs
All Implemented Interfaces:
DockingLayoutNode
Enclosing interface:
DockingLayoutNode

public static final class DockingLayoutNode.Tabs extends Object implements DockingLayoutNode
Represents a tabbed container with multiple dockable items.
  • Constructor Details

    • Tabs

      public Tabs(List<String> dockableIds, String selectedId)
      Constructs a Tabs layout node.
      Parameters:
      dockableIds - list of dockable IDs in this tab container, must not be null or empty, and all elements must be non-null and non-blank
      selectedId - the ID of the currently selected tab, must not be null or blank, and must exist in dockableIds
      Throws:
      IllegalArgumentException - if dockableIds is null/empty, contains null/blank elements, or selectedId is not in dockableIds
      NullPointerException - if selectedId is null
  • Method Details

    • getDockableIds

      public List<String> getDockableIds()
      Returns an immutable copy of the dockable IDs.
      Returns:
      the list of dockable IDs
    • getSelectedId

      public String getSelectedId()
      Returns the ID of the currently selected tab.
      Returns:
      the selected ID