Class DockingLayout

java.lang.Object
com.dlsc.gemsfx.docking.DockingLayout

public final class DockingLayout extends Object
Immutable data transfer object representing a complete docking layout snapshot. A DockingLayout captures the current structure of all docking panes and floating windows in the application.
  • Constructor Details

    • DockingLayout

      public DockingLayout(String primaryPaneId, List<DockingLayout.PaneLayout> panes)
      Constructs a DockingLayout.
      Parameters:
      primaryPaneId - the ID of the primary (non-floating) pane, must not be null or blank
      panes - list of pane layouts, must not be null (may be empty), and must not contain null elements
      Throws:
      IllegalArgumentException - if primaryPaneId is null/blank or panes contains null elements
      NullPointerException - if panes is null
  • Method Details

    • getPrimaryPaneId

      public String getPrimaryPaneId()
      Returns the ID of the primary pane.
      Returns:
      the primary pane ID
    • getPanes

      public List<DockingLayout.PaneLayout> getPanes()
      Returns an immutable copy of the pane layouts.
      Returns:
      the list of pane layouts