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

public Class SimpleIntegerControl

extends SimpleNumberControl<IntegerField, Integer>
Class Inheritance
Imports
com.dlsc.formsfx.model.structure.IntegerField, com.dlsc.preferencesfx.util.VisibilityProperty, javafx.scene.control.SpinnerValueFactory, javafx.scene.input.KeyCode, .KeyEvent, javafx.util.StringConverter, javafx.util.converter.IntegerStringConverter

This class provides a specific implementation to edit integer values.
Authors
Rinesch Murugathas, Sacha Schmid, François Martin, Marco Sanfratello

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Inherited from com.dlsc.preferencesfx.formsfx.view.controls.SimpleNumberControl:
editableSpinnerfieldLabelreadOnlyLabel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public static SimpleIntegerControl

Returns:

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

Constructs a SimpleIntegerControl of SimpleIntegerControl type, with visibility condition.

private void
public void
Inherited from com.dlsc.preferencesfx.formsfx.view.controls.SimpleNumberControl:
layoutPartssetupBindingssetupEventHandlers

Constructor Detail

SimpleIntegerControlback to summary
public SimpleIntegerControl()

Method Detail

initializePartsback to summary
public void initializeParts()

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

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

Doc from com.dlsc.preferencesfx.formsfx.view.controls.SimpleNumberControl.initializeParts.

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

Annotations
@Override
ofback to summary
public static SimpleIntegerControl of(VisibilityProperty visibilityProperty)

Constructs a SimpleIntegerControl of SimpleIntegerControl type, with visibility condition.

Parameters
visibilityProperty:VisibilityProperty

property for control visibility of this element

Returns:SimpleIntegerControl

the constructed SimpleIntegerControl

overrideNonIntegerSpinnerValuesback to summary
private void overrideNonIntegerSpinnerValues()
setupValueChangedListenersback to summary
public void setupValueChangedListeners()

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

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

Doc from com.dlsc.preferencesfx.formsfx.view.controls.SimpleNumberControl.setupValueChangedListeners.

This method is used to set up value change listeners.

Annotations
@Override
com.dlsc.preferencesfx.formsfx.view.controls back to summary

private Class SimpleIntegerControl.NoExceptionStringConverter

extends StringConverter<Integer>
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Integer
fromString(String
the String to convert
string
)

Implements abstract javafx.util.StringConverter.fromString.

Converts the string provided into an object defined by the specific converter.

public String
toString(Integer
the object of type T to convert
object
)

Implements abstract javafx.util.StringConverter.toString.

Converts the object provided into its string form.

Constructor Detail

NoExceptionStringConverterback to summary
private NoExceptionStringConverter()

Method Detail

fromStringback to summary
public Integer fromString(String string)

Implements abstract javafx.util.StringConverter.fromString.

Doc from javafx.util.StringConverter.fromString.

Converts the string provided into an object defined by the specific converter. Format of the string and type of the resulting object is defined by the specific converter.

Parameters
string:String

the String to convert

Returns:Integer

an object representation of the string passed in.

Annotations
@Override
toStringback to summary
public String toString(Integer object)

Implements abstract javafx.util.StringConverter.toString.

Doc from javafx.util.StringConverter.toString.

Converts the object provided into its string form. Format of the returned string is defined by the specific converter.

Parameters
object:Integer

the object of type T to convert

Returns:String

a string representation of the object passed in

Annotations
@Override