DervaFX Wiki

DervaDock

Layout

Back to Components

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) : DervaDock
  • remove(DervaElement<?> child) : DervaDock
  • clear() : DervaDock
  • padding(Insets padding) : DervaDock
  • padding(double value) : DervaDock
  • dockPadding(double value) : DervaDock
  • dockPadding(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.