Top Inners Fields Constructors Methods
org.controlsfx.property.editor

pack-priv Class NumericField

extends TextField
Class Inheritance
Imports
javafx.beans.binding.NumberExpression, javafx.beans.property.SimpleDoubleProperty, .SimpleLongProperty, javafx.beans.value.ObservableValue, javafx.scene.control.IndexRange, .TextField, java.math.BigInteger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
private static interface

Field Summary

Modifier and TypeField and Description
private final NumericField.NumericValidator<? extends Number>
Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public
NumericField(Class<? extends Number> cls)

Method Summary

Modifier and TypeMethod and Description
public void
replaceSelection(String text)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String.

public void
replaceText(int start, int end, String text)

Overrides javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

private Boolean
replaceValid(int start, int end, String fragment)

protected void
setValue(Number
The new value to assign.
value
)

Sets the value of the numeric value property.

public final ObservableValue<Number>
Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Field Detail

valueback to summary
private final NumericField.NumericValidator<? extends Number> value

Constructor Detail

NumericFieldback to summary
public NumericField(Class<? extends Number> cls)

Method Detail

replaceSelectionback to summary
public void replaceSelection(String text)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Doc from javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String. If there is no selection, then the replacement text is simply inserted at the current caret position. If there was a selection, then the selection is cleared and the given replacement text inserted.

Annotations
@Override
replaceTextback to summary
public void replaceText(int start, int end, String text)

Overrides javafx.scene.control.TextInputControl.replaceText.

Doc from javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

Annotations
@Override
replaceValidback to summary
private Boolean replaceValid(int start, int end, String fragment)
setValueback to summary
protected void setValue(Number value)

Sets the value of the numeric value property.

Parameters
value:Number

The new value to assign.

valuePropertyback to summary
public final ObservableValue<Number> valueProperty()
org.controlsfx.property.editor back to summary

pack-priv Class NumericField.DoubleValidator

extends SimpleDoubleProperty
implements NumericField.NumericValidator<Double>
Class Inheritance
All Implemented Interfaces
org.controlsfx.property.editor.NumericField.NumericValidator, javafx.beans.binding.NumberExpression, javafx.beans.value.ObservableNumberValue, javafx.beans.value.ObservableValue, javafx.beans.Observable

Field Summary

Modifier and TypeField and Description
private NumericField

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
invalidated()

Overrides javafx.beans.property.DoublePropertyBase.invalidated.

The method invalidated() can be overridden to receive invalidation notifications.

public Double
Inherited from javafx.beans.property.SimpleDoubleProperty:
getBeangetName

Field Detail

fieldback to summary
private NumericField field

Constructor Detail

DoubleValidatorback to summary
public DoubleValidator(NumericField field)

Method Detail

invalidatedback to summary
protected void invalidated()

Overrides javafx.beans.property.DoublePropertyBase.invalidated.

Doc from javafx.beans.property.DoublePropertyBase.invalidated.

The method invalidated() can be overridden to receive invalidation notifications. This is the preferred option in Objects defining the property, because it requires less memory. The default implementation is empty.

Annotations
@Override
toNumberback to summary
public Double toNumber(String s)

Implements org.controlsfx.property.editor.NumericField.NumericValidator.toNumber.

Annotations
@Override
org.controlsfx.property.editor back to summary

pack-priv Class NumericField.LongValidator

extends SimpleLongProperty
implements NumericField.NumericValidator<Long>
Class Inheritance
All Implemented Interfaces
org.controlsfx.property.editor.NumericField.NumericValidator, javafx.beans.binding.NumberExpression, javafx.beans.value.ObservableNumberValue, javafx.beans.value.ObservableValue, javafx.beans.Observable

Field Summary

Modifier and TypeField and Description
private NumericField

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
invalidated()

Overrides javafx.beans.property.LongPropertyBase.invalidated.

The method invalidated() can be overridden to receive invalidation notifications.

public Long
Inherited from javafx.beans.property.SimpleLongProperty:
getBeangetName

Field Detail

fieldback to summary
private NumericField field

Constructor Detail

LongValidatorback to summary
public LongValidator(NumericField field)

Method Detail

invalidatedback to summary
protected void invalidated()

Overrides javafx.beans.property.LongPropertyBase.invalidated.

Doc from javafx.beans.property.LongPropertyBase.invalidated.

The method invalidated() can be overridden to receive invalidation notifications. This is the preferred option in Objects defining the property, because it requires less memory. The default implementation is empty.

Annotations
@Override
toNumberback to summary
public Long toNumber(String s)

Implements org.controlsfx.property.editor.NumericField.NumericValidator.toNumber.

Annotations
@Override
org.controlsfx.property.editor back to summary

private Interface NumericField.NumericValidator<T extends Number>

extends NumberExpression
Known Direct Implementers
org.controlsfx.property.editor.NumericField.DoubleValidator, org.controlsfx.property.editor.NumericField.LongValidator

Method Summary

Modifier and TypeMethod and Description
public void
public T
Inherited from javafx.beans.binding.NumberExpression:
addaddaddaddaddasStringasStringasStringdividedividedividedividedividegreaterThangreaterThangreaterThangreaterThangreaterThangreaterThanOrEqualTogreaterThanOrEqualTogreaterThanOrEqualTogreaterThanOrEqualTogreaterThanOrEqualToisEqualToisEqualToisEqualToisEqualToisEqualToisEqualToisEqualToisEqualToisNotEqualToisNotEqualToisNotEqualToisNotEqualToisNotEqualToisNotEqualToisNotEqualToisNotEqualTolessThanlessThanlessThanlessThanlessThanlessThanOrEqualTolessThanOrEqualTolessThanOrEqualTolessThanOrEqualTolessThanOrEqualTomultiplymultiplymultiplymultiplymultiplynegatesubtractsubtractsubtractsubtractsubtract

Method Detail

setValueback to summary
public void setValue(Number num)
toNumberback to summary
public T toNumber(String s)