Module com.dlsc.unitfx
Package com.dlsc.unitfx
Class QuantityInputField<Q extends javax.measure.Quantity<Q>>
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
com.dlsc.unitfx.QuantityInputControl<Q>
com.dlsc.unitfx.QuantityInputField<Q>
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget,javafx.scene.control.Skinnable
public class QuantityInputField<Q extends javax.measure.Quantity<Q>> extends QuantityInputControl<Q>
Concrete implementation of
QuantityInputControl that uses a NumberInputField to let users enter
values.-
Property Summary
Properties Type Property Description javafx.beans.property.BooleanPropertyallowNegativesBoolean property that tells the control to allow introducing a negative quantity.javafx.beans.property.BooleanPropertyautoFixValueBoolean property used to automatically convert theQuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.javafx.beans.property.ReadOnlyBooleanPropertyinvalidProperty that indicates when the value entered violates restrictions of minimum and maximum values.javafx.beans.property.ObjectProperty<Double>maximumValueThe maximum value that can be entered in this field.javafx.beans.property.ObjectProperty<Double>minimumValueThe minimum value that can be entered in this field.javafx.beans.property.ObjectProperty<Double>precisionjavafx.beans.property.ReadOnlyObjectProperty<javax.measure.Quantity<Q>>precisionQuantityRepresents the precision as combination ofprecisionProperty()()} andprecisionUnitProperty().javafx.beans.property.ObjectProperty<javax.measure.Unit<Q>>precisionUnitRepresents the system base unit, which is the default one for the control.javafx.beans.property.ReadOnlyBooleanPropertyvalueDirtyBoolean property that indicates when thevalueand thevalueQuantityare different because after a precision was applied.javafx.beans.property.ObjectProperty<Predicate<Double>>valueValidatorStores a validator object for the value converted from text entered.Properties inherited from class com.dlsc.unitfx.QuantityInputControl
baseUnit, numberOfDecimals, numberOfIntegers, readOnly, unit, unitStringConverter, value, valueQuantityProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Field Summary
-
Constructor Summary
Constructors Constructor Description QuantityInputField()Instances a new input field with no available units, null value and no precision. -
Method Summary
Modifier and Type Method Description javafx.beans.property.BooleanPropertyallowNegativesProperty()Boolean property that tells the control to allow introducing a negative quantity.javafx.beans.property.BooleanPropertyautoFixValueProperty()Boolean property used to automatically convert theQuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.protected javafx.scene.control.Skin<?>createDefaultSkin()DoublegetMaximumValue()Gets the value of the property maximumValue.DoublegetMinimumValue()Gets the value of the property minimumValue.DoublegetPrecision()Gets the value of the property precision.javax.measure.Quantity<Q>getPrecisionQuantity()Gets the value of the property precisionQuantity.javax.measure.Unit<Q>getPrecisionUnit()Gets the value of the property precisionUnit.StringgetUserAgentStylesheet()Predicate<Double>getValueValidator()Gets the value of the property valueValidator.javafx.beans.property.ReadOnlyBooleanPropertyinvalidProperty()Property that indicates when the value entered violates restrictions of minimum and maximum values.booleanisAllowNegatives()Gets the value of the property allowNegatives.booleanisAutoFixValue()Gets the value of the property autoFixValue.booleanisInvalid()Gets the value of the property invalid.booleanisValueDirty()Gets the value of the property valueDirty.javafx.beans.property.ObjectProperty<Double>maximumValueProperty()The maximum value that can be entered in this field.javafx.beans.property.ObjectProperty<Double>minimumValueProperty()The minimum value that can be entered in this field.javafx.beans.property.ObjectProperty<Double>precisionProperty()javafx.beans.property.ReadOnlyObjectProperty<javax.measure.Quantity<Q>>precisionQuantityProperty()Represents the precision as combination ofprecisionProperty()()} andprecisionUnitProperty().javafx.beans.property.ObjectProperty<javax.measure.Unit<Q>>precisionUnitProperty()Represents the system base unit, which is the default one for the control.voidrestoreValueProperty()Applies theQuantityInputControl.valueQuantityProperty()to theQuantityInputControl.valueProperty()simulating a restore operation.voidsetAllowNegatives(boolean allowNegatives)Sets the value of the property allowNegatives.voidsetAutoFixValue(boolean autoFixValue)Sets the value of the property autoFixValue.voidsetMaximumValue(Double maximumValue)Sets the value of the property maximumValue.voidsetMinimumValue(Double minimumValue)Sets the value of the property minimumValue.voidsetPrecision(Double precision)Sets the value of the property precision.voidsetPrecisionUnit(javax.measure.Unit<Q> precisionUnit)Sets the value of the property precisionUnit.voidsetValueValidator(Predicate<Double> valueValidator)Sets the value of the property valueValidator.javafx.beans.property.ReadOnlyBooleanPropertyvalueDirtyProperty()Boolean property that indicates when thevalueand thevalueQuantityare different because after a precision was applied.javafx.beans.property.ObjectProperty<Predicate<Double>>valueValidatorProperty()Stores a validator object for the value converted from text entered.Methods inherited from class com.dlsc.unitfx.QuantityInputControl
baseUnitProperty, getAvailableUnits, getBaseUnit, getNumberOfDecimals, getNumberOfIntegers, getUnit, getUnitStringConverter, getValue, getValueQuantity, isReadOnly, numberOfDecimalsProperty, numberOfIntegersProperty, readOnlyProperty, setBaseUnit, setNumberOfDecimals, setNumberOfIntegers, setReadOnly, setUnit, setUnitStringConverter, setValue, unitProperty, unitStringConverterProperty, valueProperty, valueQuantityPropertyMethods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
Property Details
-
precision
Integer used to truncate thevalueentered by the user and calculate thequantity. Default precision is '1' which means no truncation. Bellow some examples:- Value=340
- Unit=Metre
- Precision=100
- ValueQuantity=300 Metre
- See Also:
getPrecision(),setPrecision(Double)
-
precisionUnit
public final javafx.beans.property.ObjectProperty<javax.measure.Unit<Q extends javax.measure.Quantity<Q>>> precisionUnitPropertyRepresents the system base unit, which is the default one for the control. If theunitselected is different to the base unit, the control will indicate visually (colored) that ambiguity. If no base unit is set, not color effect will be applied in the skin.- See Also:
getPrecisionUnit(),setPrecisionUnit(Unit)
-
precisionQuantity
public final javafx.beans.property.ReadOnlyObjectProperty<javax.measure.Quantity<Q extends javax.measure.Quantity<Q>>> precisionQuantityPropertyRepresents the precision as combination ofprecisionProperty()()} andprecisionUnitProperty(). This value is calculated automatically by the control. It is refreshed every time the precision or the precision unit change.- See Also:
getPrecisionQuantity()
-
valueDirty
public final javafx.beans.property.ReadOnlyBooleanProperty valueDirtyPropertyBoolean property that indicates when thevalueand thevalueQuantityare different because after a precision was applied.- See Also:
isValueDirty()
-
allowNegatives
public final javafx.beans.property.BooleanProperty allowNegativesPropertyBoolean property that tells the control to allow introducing a negative quantity.- See Also:
isAllowNegatives(),setAllowNegatives(boolean)
-
minimumValue
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 theQuantityInputControl.valueProperty()is set tonull.- See Also:
getMinimumValue(),setMinimumValue(Double)
-
maximumValue
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 theQuantityInputControl.valueProperty()is set tonull.- See Also:
getMaximumValue(),setMaximumValue(Double)
-
invalid
public final javafx.beans.property.ReadOnlyBooleanProperty invalidPropertyProperty that indicates when the value entered violates restrictions of minimum and maximum values.- See Also:
isInvalid()
-
valueValidator
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.- See Also:
getValueValidator(),setValueValidator(Predicate)
-
autoFixValue
public final javafx.beans.property.BooleanProperty autoFixValuePropertyBoolean property used to automatically convert theQuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.- See Also:
isAutoFixValue(),setAutoFixValue(boolean)
-
-
Constructor Details
-
QuantityInputField
public QuantityInputField()Instances a new input field with no available units, null value and no precision.
-
-
Method Details
-
createDefaultSkin
protected javafx.scene.control.Skin<?> createDefaultSkin()- Overrides:
createDefaultSkinin classjavafx.scene.control.Control
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheetin classjavafx.scene.layout.Region
-
restoreValueProperty
public final void restoreValueProperty()Applies theQuantityInputControl.valueQuantityProperty()to theQuantityInputControl.valueProperty()simulating a restore operation. This method not only cleans the value but also cleans thevalueDirtyProperty(). -
precisionProperty
Integer used to truncate thevalueentered by the user and calculate thequantity. Default precision is '1' which means no truncation. Bellow some examples:- Value=340
- Unit=Metre
- Precision=100
- ValueQuantity=300 Metre
- See Also:
getPrecision(),setPrecision(Double)
-
getPrecision
Gets the value of the property precision. -
setPrecision
Sets the value of the property precision. -
precisionUnitProperty
Represents the system base unit, which is the default one for the control. If theunitselected is different to the base unit, the control will indicate visually (colored) that ambiguity. If no base unit is set, not color effect will be applied in the skin.- See Also:
getPrecisionUnit(),setPrecisionUnit(Unit)
-
getPrecisionUnit
Gets the value of the property precisionUnit.- Property description:
- Represents the system base unit, which is the default one for the control. If the
unitselected is different to the base unit, the control will indicate visually (colored) that ambiguity. If no base unit is set, not color effect will be applied in the skin.
-
setPrecisionUnit
Sets the value of the property precisionUnit.- Property description:
- Represents the system base unit, which is the default one for the control. If the
unitselected is different to the base unit, the control will indicate visually (colored) that ambiguity. If no base unit is set, not color effect will be applied in the skin.
-
precisionQuantityProperty
public final javafx.beans.property.ReadOnlyObjectProperty<javax.measure.Quantity<Q>> precisionQuantityProperty()Represents the precision as combination ofprecisionProperty()()} andprecisionUnitProperty(). This value is calculated automatically by the control. It is refreshed every time the precision or the precision unit change.- See Also:
getPrecisionQuantity()
-
getPrecisionQuantity
Gets the value of the property precisionQuantity.- Property description:
- Represents the precision as combination of
precisionProperty()()} andprecisionUnitProperty(). This value is calculated automatically by the control. It is refreshed every time the precision or the precision unit change.
-
valueDirtyProperty
public final javafx.beans.property.ReadOnlyBooleanProperty valueDirtyProperty()Boolean property that indicates when thevalueand thevalueQuantityare different because after a precision was applied.- See Also:
isValueDirty()
-
isValueDirty
public final boolean isValueDirty()Gets the value of the property valueDirty.- Property description:
- Boolean property that indicates when the
valueand thevalueQuantityare different because after a precision was applied.
-
allowNegativesProperty
public final javafx.beans.property.BooleanProperty allowNegativesProperty()Boolean property that tells the control to allow introducing a negative quantity.- See Also:
isAllowNegatives(),setAllowNegatives(boolean)
-
isAllowNegatives
public final boolean isAllowNegatives()Gets the value of the property allowNegatives.- Property description:
- Boolean property that tells the control to allow introducing a negative quantity.
-
setAllowNegatives
public final void setAllowNegatives(boolean allowNegatives)Sets the value of the property allowNegatives.- Property description:
- Boolean property that tells the control to allow introducing a negative quantity.
-
minimumValueProperty
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 theQuantityInputControl.valueProperty()is set tonull.- See Also:
getMinimumValue(),setMinimumValue(Double)
-
getMinimumValue
Gets the value of the property minimumValue.- Property description:
- 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
QuantityInputControl.valueProperty()is set tonull.
-
setMinimumValue
Sets the value of the property minimumValue.- Property description:
- 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
QuantityInputControl.valueProperty()is set tonull.
-
maximumValueProperty
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 theQuantityInputControl.valueProperty()is set tonull.- See Also:
getMaximumValue(),setMaximumValue(Double)
-
getMaximumValue
Gets the value of the property maximumValue.- Property description:
- 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
QuantityInputControl.valueProperty()is set tonull.
-
setMaximumValue
Sets the value of the property maximumValue.- Property description:
- 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
QuantityInputControl.valueProperty()is set tonull.
-
invalidProperty
public final javafx.beans.property.ReadOnlyBooleanProperty invalidProperty()Property that indicates when the value entered violates restrictions of minimum and maximum values.- See Also:
isInvalid()
-
isInvalid
public final boolean isInvalid()Gets the value of the property invalid.- Property description:
- Property that indicates when the value entered violates restrictions of minimum and maximum values.
-
valueValidatorProperty
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.- See Also:
getValueValidator(),setValueValidator(Predicate)
-
getValueValidator
Gets the value of the property valueValidator.- Property description:
- 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.
-
setValueValidator
Sets the value of the property valueValidator.- Property description:
- 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.
-
autoFixValueProperty
public final javafx.beans.property.BooleanProperty autoFixValueProperty()Boolean property used to automatically convert theQuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.- See Also:
isAutoFixValue(),setAutoFixValue(boolean)
-
isAutoFixValue
public final boolean isAutoFixValue()Gets the value of the property autoFixValue.- Property description:
- Boolean property used to automatically convert the
QuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.
-
setAutoFixValue
public final void setAutoFixValue(boolean autoFixValue)Sets the value of the property autoFixValue.- Property description:
- Boolean property used to automatically convert the
QuantityInputControl.valueProperty()when theQuantityInputControl.unitProperty()is changed.
-