Number.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | NumberInputField.
Number string converter that provides a filter for text changes. |
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private final ReadOnlyBooleanWrapper | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final IntegerProperty | |
| private final IntegerProperty | |
| private boolean | |
| private final ObjectProperty | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | NumberInputField()
Instances a new number input with with |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | Returns: The boolean property.Boolean property that tells the control to allow introducing a negative number. |
| protected abstract String | Returns: If the number isnull, then return empty string.The number to be converted. number)Converts the input number type object to string. |
| protected abstract T | Returns: In case of impossible conversion, returnnull instead of throwing exception.The text to be converted. text)Converts the text to the input field number type object. |
| public final T | |
| public final T | |
| public final int | |
| public final int | |
| public final Predicate | |
| public final T | |
| public final ReadOnlyBooleanProperty | Returns: The read only boolean property.Property that indicates whether the |
| public final boolean | |
| private boolean | |
| public final boolean | |
| private boolean | |
| private void | |
| private void | |
| private void | |
| public final ObjectProperty | Returns: The maximum value.The maximum value that can be entered in this field. |
| public final ObjectProperty | Returns: The minimum value.The minimum value that can be entered in this field. |
| public final IntegerProperty | Returns: The maximum value.The maximum digits in the decimal part of the number. |
| public final IntegerProperty | Returns: The maximum value.The maximum digits in the integer part of the number. |
| public final void | |
| private final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | Returns: The property storing the validator predicate.Stores a validator object for the value converted from text entered. |
| public final ObjectProperty |
| allowNegatives | back to summary |
|---|---|
| private final BooleanProperty allowNegatives | |
| invalid | back to summary |
|---|---|
| private final ReadOnlyBooleanWrapper invalid | |
| maximumValue | back to summary |
|---|---|
| private final ObjectProperty<T> maximumValue | |
| minimumValue | back to summary |
|---|---|
| private final ObjectProperty<T> minimumValue | |
| numberOfDecimals | back to summary |
|---|---|
| private final IntegerProperty numberOfDecimals | |
| numberOfIntegers | back to summary |
|---|---|
| private final IntegerProperty numberOfIntegers | |
| updatingValue | back to summary |
|---|---|
| private boolean updatingValue | |
| validator | back to summary |
|---|---|
| private final ObjectProperty<Predicate<T>> validator | |
| value | back to summary |
|---|---|
| private final ObjectProperty<T> value | |
| NumberInputField | back to summary |
|---|---|
| public NumberInputField() Instances a new number input with with | |
| allowNegativesProperty | back to summary |
|---|---|
| public final BooleanProperty allowNegativesProperty() Boolean property that tells the control to allow introducing a negative number.
| |
| convertNumberToText | back to summary |
|---|---|
| protected abstract String convertNumberToText(T number) Converts the input number type object to string.
| |
| convertTextToNumber | back to summary |
|---|---|
| protected abstract T convertTextToNumber(String text) Converts the text to the input field number type object.
| |
| getMaximumValue | back to summary |
|---|---|
| public final T getMaximumValue() | |
| getMinimumValue | back to summary |
|---|---|
| public final T getMinimumValue() | |
| getNumberOfDecimals | back to summary |
|---|---|
| public final int getNumberOfDecimals() | |
| getNumberOfIntegers | back to summary |
|---|---|
| public final int getNumberOfIntegers() | |
| getValidator | back to summary |
|---|---|
| public final Predicate | |
| getValue | back to summary |
|---|---|
| public final T getValue() | |
| invalidProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty invalidProperty() Property that indicates whether the
| |
| isAllowNegatives | back to summary |
|---|---|
| public final boolean isAllowNegatives() | |
| isIntegerTypedField | back to summary |
|---|---|
private boolean isIntegerTypedField()
| |
| isInvalid | back to summary |
|---|---|
| public final boolean isInvalid() | |
| isInvalidNumber | back to summary |
|---|---|
| private boolean isInvalidNumber(T number) | |
| listenForAllowNegativeChanges | back to summary |
|---|---|
| private void listenForAllowNegativeChanges() | |
| listenForTextOrValidationChanges | back to summary |
|---|---|
| private void listenForTextOrValidationChanges() | |
| listenForValueChanges | back to summary |
|---|---|
| private void listenForValueChanges() | |
| maximumValueProperty | back to summary |
|---|---|
| public final ObjectProperty The maximum value that can be entered in this field. If this property is set, once the user enters a number
greater than this minimum the field becomes invalid and the
| |
| minimumValueProperty | back to summary |
|---|---|
| public final ObjectProperty The minimum value that can be entered in this field. If this property is set, once the user enters a number
lower than this minimum the field becomes invalid and the
| |
| numberOfDecimalsProperty | back to summary |
|---|---|
| public final IntegerProperty numberOfDecimalsProperty() The maximum digits in the decimal part of the number.
| |
| numberOfIntegersProperty | back to summary |
|---|---|
| public final IntegerProperty numberOfIntegersProperty() The maximum digits in the integer part of the number.
| |
| setAllowNegatives | back to summary |
|---|---|
| public final void setAllowNegatives(boolean allowNegatives) | |
| setInvalid | back to summary |
|---|---|
| private final void setInvalid(boolean invalid) | |
| setMaximumValue | back to summary |
|---|---|
| public final void setMaximumValue(T maximumValue) | |
| setMinimumValue | back to summary |
|---|---|
| public final void setMinimumValue(T minimumValue) | |
| setNumberOfDecimals | back to summary |
|---|---|
| public final void setNumberOfDecimals(int numberOfDecimals) | |
| setNumberOfIntegers | back to summary |
|---|---|
| public final void setNumberOfIntegers(int numberOfIntegers) | |
| setValidator | back to summary |
|---|---|
| public final void setValidator(Predicate<T> validator) | |
| setValue | back to summary |
|---|---|
| public final void setValue(T value) | |
| validatorProperty | back to summary |
|---|---|
| public final ObjectProperty Stores a validator object for the value converted from text entered. If the value entered is not valid, a pseudo class is added to the field, called ":invalid". This can be used for styling the field to indicate invalid inputs.
| |
| valueProperty | back to summary |
|---|---|
| public final ObjectProperty The number value representation of the text written.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv UnaryOperator |
| NumberStringFilteredConverter | back to summary |
|---|---|
| pack-priv NumberStringFilteredConverter() | |
| getFilter | back to summary |
|---|---|
| pack-priv UnaryOperator | |