JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicALWAYSGrow

vgrow/hgrow: Component will always try to grow, sharing space equally with other components that have a grow of ALWAYS.

publicBASELINEVPos

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.

 
publicBOTHFill

fill: Vertically fill the container with the cell contents

publicBOTTOMVPos

vpos: Vertically aligns to the bottom of the cell

publicCENTERHPos

hpos: Horizontally aligns to the center of the cell

publicHORIZONTALFill

fill: Vertically fill the container with the cell contents

publicLEADINGHPos

hpos: Horizontally aligns to the leading edge of the cell

publicLEFTHPos

hpos: Horizontally aligns to the left of the cell

publicMIDDLEVPos

vpos: Vertically aligns to the middle of the cell (equivalent to VPos.CENTER)

publicNEVERGrow

vgrow/hgrow: Disables grow behavior for this component.

publicNONEFill

fill: Vertically fill the container with the cell contents

publicPAGE_ENDVPos

vpos: Vertically aligns to the bottom of the container

publicPAGE_STARTVPos

hpos: Vertically aligns to the top of the container

publicRIGHTHPos

hpos: Horizontally aligns to the right of the cell

publicSOMETIMESGrow

vgrow/hgrow: If there are no other components with Grow set to ALWAYS will get an equal share of the extra space.

publicTOPVPos

vpos: Vertically aligns to the top of the cell

publicTRAILINGHPos

hpos: Horizontally aligns to the trailing edge of the cell

publicVERTICALFill

fill: Vertically fill the container with the cell contents

Inherited Variables

Script Function Summary

public row(cells: javafx.scene.Node[]) : Row

Convenience method to create a new Row object with the cells set to the parameter passed in to cells.

Convenience method to create a new Row object with the cells set to the parameter passed in to cells.

Parameters
cells
Returns
Row
 

Inherited Functions