QuantityInputControl that uses a Double > to let users enter
values.
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private final BooleanProperty | |
| private final ReadOnlyBooleanWrapper | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ReadOnlyObjectWrapper | |
| private final ObjectProperty | |
| private final ReadOnlyBooleanWrapper | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | QuantityInputField()
Instances a new input field with no available units, null value and no precision. |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | Returns: The boolean property.Boolean property that tells the control to allow introducing a negative quantity. |
| public final BooleanProperty | Returns: The boolean property.Boolean property used to automatically convert the |
| private void | |
| private void | |
| private void | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final Double | |
| public final Double | |
| public final Double | |
| public final Quantity | |
| public final Unit | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final Predicate | |
| public final ReadOnlyBooleanProperty | Returns: The property that holds the flag.Property that indicates when the value entered violates restrictions of minimum and maximum values. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| 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 ObjectProperty | precisionProperty()
Integer used to truncate the |
| public final ReadOnlyObjectProperty | Returns: The read only property storing the precision quantity.Represents the precision as combination of |
| public final ObjectProperty | Returns: The base unit.Represents the system base unit, which is the default one for the control. |
| public final void | restoreValueProperty()
Applies the |
| public final void | |
| public final void | |
| private void | |
| public final void | |
| public final void | |
| public final void | |
| private void | |
| public final void | |
| private void | |
| public final void | |
| pack-priv void | updateDefaultUnit(Unit<Q> baseUnit)
Overrides com.
|
| pack-priv void | |
| public final ReadOnlyBooleanProperty | Returns: The boolean property.Boolean property that indicates when the |
| public final ObjectProperty | Returns: The property storing the validator predicate.Stores a validator object for the value converted from text entered. |
| allowNegatives | back to summary |
|---|---|
| private final BooleanProperty allowNegatives | |
| autoFixValue | back to summary |
|---|---|
| private final BooleanProperty autoFixValue | |
| invalid | back to summary |
|---|---|
| private final ReadOnlyBooleanWrapper invalid | |
| maximumValue | back to summary |
|---|---|
| private final ObjectProperty<Double> maximumValue | |
| minimumValue | back to summary |
|---|---|
| private final ObjectProperty<Double> minimumValue | |
| precision | back to summary |
|---|---|
| private final ObjectProperty<Double> precision | |
| precisionQuantity | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<Quantity<Q>> precisionQuantity | |
| precisionUnit | back to summary |
|---|---|
| private final ObjectProperty<Unit<Q>> precisionUnit | |
| valueDirty | back to summary |
|---|---|
| private final ReadOnlyBooleanWrapper valueDirty | |
| valueValidator | back to summary |
|---|---|
| private final ObjectProperty<Predicate<Double>> valueValidator | |
| QuantityInputField | back to summary |
|---|---|
| public QuantityInputField() Instances a new input field with no available units, null value and no precision. | |
| allowNegativesProperty | back to summary |
|---|---|
| public final BooleanProperty allowNegativesProperty() Boolean property that tells the control to allow introducing a negative quantity.
| |
| autoFixValueProperty | back to summary |
|---|---|
| public final BooleanProperty autoFixValueProperty() Boolean property used to automatically convert the
| |
| bindPrecisionQuantityProperty | back to summary |
|---|---|
| private void bindPrecisionQuantityProperty() | |
| bindQuantityValueProperty | back to summary |
|---|---|
| private void bindQuantityValueProperty() Hides com. | |
| bindValueDirtyProperty | back to summary |
|---|---|
| private void bindValueDirtyProperty() | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS | |
| getMaximumValue | back to summary |
|---|---|
| public final Double getMaximumValue() | |
| getMinimumValue | back to summary |
|---|---|
| public final Double getMinimumValue() | |
| getPrecision | back to summary |
|---|---|
| public final Double getPrecision() | |
| getPrecisionQuantity | back to summary |
|---|---|
| public final Quantity | |
| getPrecisionUnit | back to summary |
|---|---|
| public final Unit | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| getValueValidator | back to summary |
|---|---|
| public final Predicate | |
| invalidProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty invalidProperty() Property that indicates when the value entered violates restrictions of minimum and maximum values.
| |
| isAllowNegatives | back to summary |
|---|---|
| public final boolean isAllowNegatives() | |
| isAutoFixValue | back to summary |
|---|---|
| public final boolean isAutoFixValue() | |
| isInvalid | back to summary |
|---|---|
| public final boolean isInvalid() | |
| isValueDirty | back to summary |
|---|---|
| public final boolean isValueDirty() | |
| listenForAutoFixProperty | back to summary |
|---|---|
| private void listenForAutoFixProperty() | |
| listenForInvalidChanges | back to summary |
|---|---|
| private void listenForInvalidChanges() | |
| 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
| |
| precisionProperty | back to summary |
|---|---|
| public final ObjectProperty Integer used to truncate the
| |
| precisionQuantityProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty Represents the precision as combination of
| |
| precisionUnitProperty | back to summary |
|---|---|
| public final ObjectProperty Represents the system base unit, which is the default one for the control. If the
| |
| restoreValueProperty | back to summary |
|---|---|
| public final void restoreValueProperty() Applies the | |
| setAllowNegatives | back to summary |
|---|---|
| public final void setAllowNegatives(boolean allowNegatives) | |
| setAutoFixValue | back to summary |
|---|---|
| public final void setAutoFixValue(boolean autoFixValue) | |
| setInvalid | back to summary |
|---|---|
| private void setInvalid(boolean invalid) | |
| setMaximumValue | back to summary |
|---|---|
| public final void setMaximumValue(Double maximumValue) | |
| setMinimumValue | back to summary |
|---|---|
| public final void setMinimumValue(Double minimumValue) | |
| setPrecision | back to summary |
|---|---|
| public final void setPrecision(Double precision) | |
| setPrecisionQuantity | back to summary |
|---|---|
| private void setPrecisionQuantity(Quantity<Q> precisionQuantity) | |
| setPrecisionUnit | back to summary |
|---|---|
| public final void setPrecisionUnit(Unit<Q> precisionUnit) | |
| setValueDirty | back to summary |
|---|---|
| private void setValueDirty(boolean valueDirty) | |
| setValueValidator | back to summary |
|---|---|
| public final void setValueValidator(Predicate<Double> valueValidator) | |
| updateDefaultUnit | back to summary |
|---|---|
| pack-priv void updateDefaultUnit(Unit<Q> baseUnit) Overrides com.
| |
| updateValueQuantity | back to summary |
|---|---|
| pack-priv void updateValueQuantity() Overrides com.
| |
| valueDirtyProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty valueDirtyProperty() Boolean property that indicates when the
| |
| valueValidatorProperty | 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.
| |