Module org.snapfx

Interface DockElement

All Known Subinterfaces:
DockContainer
All Known Implementing Classes:
DockNode, DockSplitPane, DockTabPane

public interface DockElement
Base interface for all elements in the DockGraph. Enables uniform handling of containers and leaf nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the element's ID.
    Returns the parent container, or null if this is the root.
    default void
    Removes this element from its parent container.
    void
    Sets the parent container.
  • Method Details

    • getId

      String getId()
      Returns the element's ID.
      Returns:
      unique layout element ID
    • getParent

      DockContainer getParent()
      Returns the parent container, or null if this is the root.
      Returns:
      parent container or null
    • setParent

      void setParent(DockContainer parent)
      Sets the parent container.
      Parameters:
      parent - parent container, or null for detached/root state
    • removeFromParent

      default void removeFromParent()
      Removes this element from its parent container.