DervaFX Wiki

DervaGrid

Layout

Back to Components

DervaGrid is the thin GridPane-based layout wrapper for two-column settings panels, form-like rows, and other structured layouts.

Current Methods

  • add(DervaElement<?> child, int column, int row) : DervaGrid
  • add(DervaElement<?> child, int column, int row, int columnSpan, int rowSpan) : DervaGrid
  • remove(DervaElement<?> child) : DervaGrid
  • clear() : DervaGrid
  • hgap(double value) : DervaGrid
  • vgap(double value) : DervaGrid
  • debugGrid(boolean value) : DervaGrid
  • spacing(double value) : DervaGrid
  • padding(Insets padding) : DervaGrid
  • padding(double value) : DervaGrid
  • alignment(Pos alignment) : DervaGrid

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 DervaFX.grid() for practical row and column placement without leaving the wrapper API.
  • DervaGrid is meant to stay small and JavaFX-native rather than becoming a custom layout framework.