- 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 TypeMethodDescriptiongetId()Returns the element's ID.Returns the parent container, ornullif this is the root.default voidRemoves this element from its parent container.voidsetParent(DockContainer parent) 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, ornullif this is the root.- Returns:
- parent container or
null
-
setParent
Sets the parent container.- Parameters:
parent- parent container, ornullfor detached/root state
-
removeFromParent
default void removeFromParent()Removes this element from its parent container.
-