Overview
Convenience class that aggregates common layout constants from both the core JavaFX libraries and JFXtras. This is meant to be used as a static import in your layout code as follows:
import org.jfxtras.scene.layout.LayoutConstants.*;
Script Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | ALWAYS | Grow | ![]() |
vgrow/hgrow: Component will always try to grow, sharing space equally with other components that have a grow of ALWAYS. |
|||
| public | BASELINE | VPos | ![]() |
vpos: Vertically aligns the portion above the baseline of the component to the center of the container.
vpos: Vertically aligns the portion above the baseline of the component to the center of the container. The typical use case for this is to center text inside of a container excluding the descenders. To use the alignment in this way, the Text origin must also be set to BASELINE. |
|||
| public | BOTH | Fill | ![]() |
fill: Vertically fill the container with the cell contents |
|||
| public | BOTTOM | VPos | ![]() |
vpos: Vertically aligns to the bottom of the cell |
|||
| public | CENTER | HPos | ![]() |
hpos: Horizontally aligns to the center of the cell |
|||
| public | HORIZONTAL | Fill | ![]() |
fill: Vertically fill the container with the cell contents |
|||
| public | LEADING | HPos | ![]() |
hpos: Horizontally aligns to the leading edge of the cell |
|||
| public | LEFT | HPos | ![]() |
hpos: Horizontally aligns to the left of the cell |
|||
| public | MIDDLE | VPos | ![]() |
vpos: Vertically aligns to the middle of the cell (equivalent to VPos.CENTER) |
|||
| public | NEVER | Grow | ![]() |
vgrow/hgrow: Disables grow behavior for this component. |
|||
| public | NONE | Fill | ![]() |
fill: Vertically fill the container with the cell contents |
|||
| public | PAGE_END | VPos | ![]() |
vpos: Vertically aligns to the bottom of the container |
|||
| public | PAGE_START | VPos | ![]() |
hpos: Vertically aligns to the top of the container |
|||
| public | RIGHT | HPos | ![]() |
hpos: Horizontally aligns to the right of the cell |
|||
| public | SOMETIMES | Grow | ![]() |
vgrow/hgrow: If there are no other components with Grow set to ALWAYS will get an equal share of the extra space. |
|||
| public | TOP | VPos | ![]() |
vpos: Vertically aligns to the top of the cell |
|||
| public | TRAILING | HPos | ![]() |
hpos: Horizontally aligns to the trailing edge of the cell |
|||
| public | VERTICAL | Fill | ![]() |
fill: Vertically fill the container with the cell contents |
Inherited Variables
Script Function Summary
- public row(cells: javafx.scene.Node[]) : Row

