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

public Class SimpleColorPickerControl

extends SimpleControl<StringField, StackPane>
Class Inheritance
Imports
java.util.Objects, javafx.geometry.Pos, javafx.scene.control.ColorPicker, .Label, javafx.scene.layout.StackPane, javafx.scene.paint.Color, com.dlsc.formsfx.model.structure.StringField, com.dlsc.preferencesfx.util.VisibilityProperty

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

Field Summary

Modifier and TypeField and Description
protected ColorPicker
colorPicker

- The colorPicker is the container that displays the node to select a color value.

private Label
private Color
Inherited from com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl:
CHANGED_CLASSDISABLED_CLASSfieldINVALID_CLASSnodeREQUIRED_CLASStooltipvisibilityProperty

Constructor Summary

AccessConstructor and Description
public
SimpleColorPickerControl(Color
The initial color, cannot be null.
initialValue
)

Create a SimpleColorPickerControl with an initial value.

Method Summary

Modifier and TypeMethod and Description
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 SimpleColorPickerControl

Returns:

the constructed SimpleColorPickerControl
of
(Color initialValue, VisibilityProperty
property for control visibility of this element
visibilityProperty
)

Constructs a SimpleColorPickerControl of SimpleColorPickerControl 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.

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

Field Detail

colorPickerback to summary
protected ColorPicker colorPicker

- The colorPicker is the container that displays the node to select a color value.

fieldLabelback to summary
private Label fieldLabel

Hides com.dlsc.preferencesfx.formsfx.view.controls.SimpleControl.fieldLabel.

initialValueback to summary
private Color initialValue

Constructor Detail

SimpleColorPickerControlback to summary
public SimpleColorPickerControl(Color initialValue)

Create a SimpleColorPickerControl with an initial value.

Parameters
initialValue:Color

The initial color, cannot be null.

Method Detail

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 SimpleColorPickerControl of(Color initialValue, VisibilityProperty visibilityProperty)

Constructs a SimpleColorPickerControl of SimpleColorPickerControl type, with visibility condition.

Parameters
visibilityProperty:VisibilityProperty

property for control visibility of this element

Returns:SimpleColorPickerControl

the constructed SimpleColorPickerControl

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
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