DervaFX Wiki

DervaElement<T>

Base Type

Back to Components

DervaElement<T> is the shared base wrapper used by most of the public surface. It exposes common layout, sizing, visibility, and styling helpers.

Current Methods

  • getNode() : Node
  • position(double x, double y) : T
  • setPos(double x, double y) : T
  • size(double width, double height) : T
  • setSize(double width, double height) : T
  • minSize(double width, double height) : T
  • maxSize(double width, double height) : T
  • padding(Insets insets) : T
  • padding(double value) : T
  • spacing(double value) : T
  • align(Pos pos) : T
  • fillWidth() : T
  • fillHeight() : T
  • text(String value) : T
  • visible(boolean value) : T
  • setVisible(boolean value) : T
  • enabled(boolean value) : T
  • setEnabled(boolean value) : T
  • dock(DervaDockMode mode) : T
  • dockNone() : T
  • dockTop() : T
  • dockBottom() : T
  • dockLeft() : T
  • dockRight() : T
  • dockFill() : T
  • dockMargin(double left, double top, double right, double bottom) : T
  • cssClass(String className) : T
  • style(String inlineStyle) : T
  • anchorFill() : T

Notes

  • Each element wraps a normal JavaFX node rather than replacing JavaFX with a custom rendering engine.
  • getNode() returns the wrapper/root node used for layout and attachment.