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

public abstract Class SimpleNumberControl<F extends DataField<P extends Property<T>, V, F extends Field<F>>, D extends Number>

extends SimpleControl<F extends DataField<P extends Property<T>, V, F extends Field<F>>>
Class Inheritance
Known Direct Subclasses
com.dlsc.formsfx.view.controls.SimpleDoubleControl, com.dlsc.formsfx.view.controls.SimpleIntegerControl
Imports
com.dlsc.formsfx.model.structure.DataField, javafx.geometry.Pos, .VPos, javafx.scene.Node, javafx.scene.control.Label, .Spinner, javafx.scene.layout.GridPane, .StackPane

This class provides the base implementation for a simple control to edit numerical elements.
Authors
Rinesch Murugathas, Sacha Schmid

Field Summary

Modifier and TypeField and Description
protected Spinner<D>
protected Label
fieldLabel

- The fieldLabel is the container that displays the label property of the field.

protected Label
protected StackPane
stack

This StackPane is needed for achieving the readonly effect by putting the readOnlyLabel over the editableSpinner on the change of the visibleProperty.

Inherited from com.dlsc.formsfx.view.controls.SimpleControl:
CHANGED_CLASSDISABLED_CLASSfieldINVALID_CLASSREQUIRED_CLASStooltip

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
initializeParts()

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

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

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

public void
layoutParts()

Overrides com.dlsc.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 void
setupBindings()

Overrides com.dlsc.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
setupEventHandlers()

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

This method is used to set up event handlers.

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

Field Detail

editableSpinnerback to summary
protected Spinner<D> editableSpinner
fieldLabelback to summary
protected Label fieldLabel

- The fieldLabel is the container that displays the label property of the field. - The editableSpinner is a Spinner for setting numerical values. - The readOnlyLabel is the label to put over editableSpinner.

readOnlyLabelback to summary
protected Label readOnlyLabel
stackback to summary
protected StackPane stack

This StackPane is needed for achieving the readonly effect by putting the readOnlyLabel over the editableSpinner on the change of the visibleProperty.

Constructor Detail

SimpleNumberControlback to summary
public SimpleNumberControl()

Method Detail

initializePartsback to summary
public void initializeParts()

Overrides com.dlsc.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()

Overrides com.dlsc.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
setupBindingsback to summary
public void setupBindings()

Overrides com.dlsc.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
setupEventHandlersback to summary
public void 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.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