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

public Class SimpleCheckBoxControl<V>

extends SimpleControl<MultiSelectionField<V>, VBox>
Class Inheritance
Imports
java.util.ArrayList, .List, javafx.scene.control.CheckBox, javafx.scene.layout.VBox, com.dlsc.formsfx.model.structure.MultiSelectionField, com.dlsc.preferencesfx.util.VisibilityProperty

This class provides the base implementation for a simple control to edit checkbox values.
Authors
Rinesch Murugathas, Sacha Schmid, François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
protected final List<CheckBox>
checkboxes

- The checkboxes list contains all the checkboxes to display.

Inherited from com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl:
CHANGED_CLASSDISABLED_CLASSfieldfieldLabelINVALID_CLASSnodeREQUIRED_CLASStooltipvisibilityProperty

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
createCheckboxes()

This method creates node and adds them to checkboxes and is used when the itemsProperty on the field changes.

public void
public void
layoutParts()

Implements abstract com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.layoutParts.

Implements com.dlsc.formsfx.view.util.ViewMixin.layoutParts.

This method is used to align the parts of a class.

public static <V> SimpleCheckBoxControl<V>

Returns:

the constructed SimpleCheckBoxControl
of
(VisibilityProperty
- property for control visibility of this element
visibilityProperty
)

Constructs a SimpleCheckBoxControl of SimpleCheckBoxControl type, with visibility condition.

public void
setupBindings()

Overrides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.setupBindings.

Overrides default com.dlsc.formsfx.view.util.ViewMixin.setupBindings.

This method is used to configure the bindings of the properties.

protected void
setupCheckboxBindings()

Sets up bindings for all checkboxes.

protected void
setupCheckboxEventHandlers()

Sets up event handlers for all checkboxes.

public void
public void
Inherited from com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl:
addStyleClassgetFieldgetFieldLabelgetNodegetVisibilityPropertyinitremoveStyleClasssetFieldsetVisibilityPropertytoggleTooltiptoggleTooltipupdateStyle

Field Detail

checkboxesback to summary
protected final List<CheckBox> checkboxes

- The checkboxes list contains all the checkboxes to display. - The node is a VBox holding all node.

Constructor Detail

SimpleCheckBoxControlback to summary
public SimpleCheckBoxControl()

Method Detail

createCheckboxesback to summary
protected void createCheckboxes()

This method creates node and adds them to checkboxes and is used when the itemsProperty on the field changes.

initializePartsback to summary
public void initializeParts()

Overrides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.initializeParts.

Implements com.dlsc.formsfx.view.util.ViewMixin.initializeParts.

Doc from com.dlsc.formsfx.view.controls.SimpleControl.initializeParts.

This method is used to initializes all the properties of a class.

Annotations
@Override
layoutPartsback to summary
public void layoutParts()

Implements abstract com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.layoutParts.

Implements com.dlsc.formsfx.view.util.ViewMixin.layoutParts.

Doc from com.dlsc.formsfx.view.controls.SimpleControl.layoutParts.

This method is used to align the parts of a class.

Annotations
@Override
ofback to summary
public static <V> SimpleCheckBoxControl<V> of(VisibilityProperty visibilityProperty)

Constructs a SimpleCheckBoxControl of SimpleCheckBoxControl type, with visibility condition.

Parameters
visibilityProperty:VisibilityProperty

- property for control visibility of this element

Returns:SimpleCheckBoxControl<V>

the constructed SimpleCheckBoxControl

setupBindingsback to summary
public void setupBindings()

Overrides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.setupBindings.

Overrides default com.dlsc.formsfx.view.util.ViewMixin.setupBindings.

Doc from com.dlsc.formsfx.view.controls.SimpleControl.setupBindings.

This method is used to configure the bindings of the properties.

Annotations
@Override
setupCheckboxBindingsback to summary
protected void setupCheckboxBindings()

Sets up bindings for all checkboxes.

setupCheckboxEventHandlersback to summary
protected void setupCheckboxEventHandlers()

Sets up event handlers for all checkboxes.

setupEventHandlersback to summary
public void setupEventHandlers()

Overrides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.setupEventHandlers.

Overrides default com.dlsc.formsfx.view.util.ViewMixin.setupEventHandlers.

Doc from com.dlsc.formsfx.view.util.ViewMixin.setupEventHandlers.

This method is used to set up event handlers.

Annotations
@Override
setupValueChangedListenersback to summary
public void setupValueChangedListeners()

Overrides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.setupValueChangedListeners.

Overrides default com.dlsc.formsfx.view.util.ViewMixin.setupValueChangedListeners.

Doc from com.dlsc.formsfx.view.controls.SimpleControl.setupValueChangedListeners.

This method is used to set up value change listeners.

Annotations
@Override