- All Superinterfaces:
DockElement
- All Known Implementing Classes:
DockSplitPane,DockTabPane
Interface for container elements in the DockGraph.
Containers can hold multiple DockElement instances.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(DockElement element) Adds a child element.default voidAuto-cleanup: removes this container from its parent when it becomes empty.javafx.collections.ObservableList<DockElement> Returns the list of child elements.default booleanisEmpty()Returns whether the container is empty.voidremoveChild(DockElement element) Removes a child element.Methods inherited from interface org.snapfx.model.DockElement
getId, getParent, removeFromParent, setParent
-
Method Details
-
getChildren
javafx.collections.ObservableList<DockElement> getChildren()Returns the list of child elements.- Returns:
- mutable observable child list
-
addChild
Adds a child element.- Parameters:
element- child element to add
-
removeChild
Removes a child element.- Parameters:
element- child element to remove
-
isEmpty
default boolean isEmpty()Returns whether the container is empty.- Returns:
truewhengetChildren()is empty
-
cleanupIfEmpty
default void cleanupIfEmpty()Auto-cleanup: removes this container from its parent when it becomes empty.
-