Top Description Fields Constructors Methods
com.dlsc.preferencesfx.formsfx.view.renderer

public Class PreferencesFxGroupRenderer

extends Object
Class Inheritance
Imports
com.dlsc.formsfx.model.structure.Element, .Field, .NodeElement, com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl, com.dlsc.preferencesfx.util.PreferencesFxUtils, .VisibilityProperty, java.util.List, java.util.stream.Collectors, javafx.geometry.Insets, .VPos, javafx.scene.control.Label, javafx.scene.layout.GridPane, .Priority

This class renders a group for a PreferencesFx form.
Authors
Sacha Schmid, Rinesch Murugathas, François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private static final int
COLUMN_COUNT

Add the controls in the GridPane in a 12-column layout.

private GridPane
public static final int
private PreferencesFxGroup
private Label

Constructor Summary

AccessConstructor and Description
protected
PreferencesFxGroupRenderer(PreferencesFxGroup
The PreferencesGroup which gets rendered.
preferencesGroup
,
GridPane grid)

This is the constructor to pass over data.

Method Summary

Modifier and TypeMethod and Description
public void
addStyleClass(String
of the style class to be added to the group
name
)

Adds a style class to the group.

public Label
public void
init()

Calls all the other methods for easier initialization.

public void
initializeParts()

Initializes all parts of the rendered group.

public void
layoutParts()

Defines the layout of the rendered group.

public void
removeStyleClass(String
of the class to be removed from the group
name
)

Removes a style class from the group.

public void
setupBindings()

Sets up bindings of the rendered group.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COLUMN_COUNTback to summary
private static final int COLUMN_COUNT

Add the controls in the GridPane in a 12-column layout. If a control takes up too much horizontal space, wrap it to the next row.

gridback to summary
private GridPane grid
GRID_MARGINback to summary
public static final int GRID_MARGIN
preferencesGroupback to summary
private PreferencesFxGroup preferencesGroup
titleLabelback to summary
private Label titleLabel

Constructor Detail

PreferencesFxGroupRendererback to summary
protected PreferencesFxGroupRenderer(PreferencesFxGroup preferencesGroup, GridPane grid)

This is the constructor to pass over data.

Parameters
preferencesGroup:PreferencesFxGroup

The PreferencesGroup which gets rendered.

Method Detail

addStyleClassback to summary
public void addStyleClass(String name)

Adds a style class to the group.

Parameters
name:String

of the style class to be added to the group

getTitleLabelback to summary
public Label getTitleLabel()
initback to summary
public void init()

Calls all the other methods for easier initialization.

initializePartsback to summary
public void initializeParts()

Initializes all parts of the rendered group.

layoutPartsback to summary
public void layoutParts()

Defines the layout of the rendered group.

removeStyleClassback to summary
public void removeStyleClass(String name)

Removes a style class from the group.

Parameters
name:String

of the class to be removed from the group

setupBindingsback to summary
public void setupBindings()

Sets up bindings of the rendered group.