DervaFX Wiki
DervaDock
Layout
DervaDock is a Pane-based layout wrapper that positions children using Derma-style docking such as top, left, right, bottom, and fill.
Current Methods
add(DervaElement<?> child) : DervaDockremove(DervaElement<?> child) : DervaDockclear() : DervaDockpadding(Insets padding) : DervaDockpadding(double value) : DervaDockdockPadding(double value) : DervaDockdockPadding(double left, double top, double right, double bottom) : DervaDock
Inherited DervaElement Helpers
position(double x, double y)size(double width, double height)minSize(double width, double height)maxSize(double width, double height)padding(Insets insets)padding(double value)spacing(double value)align(Pos pos)fillWidth()fillHeight()text(String value)visible(boolean value)enabled(boolean value)cssClass(String className)style(String inlineStyle)anchorFill()
Notes
- Use child methods like dockTop(), dockFill(), and dockMargin(...) before adding elements to the dock.
- This is the main wrapper surface for a more VGUI-like layout style.