public class MaskTextField
extends javafx.scene.control.TextField
MaskTextField is a TextField that can restrict the user input by applying a mask.
Position-based Mask
Position-base mask works for all the editing cases when the input string has a fixed length and each character can be restricted based on its position. To address this case, we allow you define the masks on a MaskTextField.
InputMask
MaskTextField has setInputMask(String mask) to set the mask we mentioned above. The pre-defined mask characters are:
ConversionMask
To make the grammar easy to understand, we strictly enforced that there is only one mask character per position for the InputMask. But clearly, one character is not enough in some cases. So we also allow you to define several other masks for other purposes. In addition to the Input Mask, we also have a separate Conversion Mask which will automatically convert the entered character to another character. This mask is optional. It can be set using setConversionMask(String mask). If not set, there will be no conversion. If you ever set the mask, please make sure they have the exact same length as the InputMask, and have a valid conversion mask character at the exact position where there is an InputMask character.
RequiredMask
The RequiredMask is to indicate whether the character on a particular position is required. It is again optional. It can be set using setRequiredMask(String mask). If not set, a valid non-space character is required on all the positions. If you ever set the mask, please make sure they have the same length as the InputMask, and have a valid required mask character at the exact position where there is an InputMask character.
| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
autoAdvance |
javafx.beans.property.BooleanProperty |
clearButtonVisible |
javafx.beans.property.StringProperty |
conversionMask |
javafx.beans.property.StringProperty |
initialText |
javafx.beans.property.StringProperty |
inputMask |
javafx.beans.property.StringProperty |
invalidCharacters |
javafx.beans.property.ObjectProperty<java.lang.Character> |
placeholderCharacter |
javafx.beans.property.StringProperty |
requiredMask |
javafx.beans.property.StringProperty |
validCharacters |
alignmentProperty, onActionProperty, prefColumnCountPropertyanchorProperty, caretPositionProperty, editableProperty, fontProperty, lengthProperty, promptTextProperty, selectedTextProperty, selectionProperty, textPropertycontextMenuProperty, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyblendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Field and Description |
|---|---|
static char |
CONVERSION_MASK_IGNORE |
static char |
CONVERSION_MASK_LOWER_CASE |
static char |
CONVERSION_MASK_UPPER_CASE |
static char |
INPUT_MASK_ANY_NON_SPACE |
static char |
INPUT_MASK_DIGIT |
static char |
INPUT_MASK_DIGIT_0_TO_1 |
static char |
INPUT_MASK_DIGIT_0_TO_2 |
static char |
INPUT_MASK_DIGIT_0_TO_3 |
static char |
INPUT_MASK_DIGIT_0_TO_4 |
static char |
INPUT_MASK_DIGIT_0_TO_5 |
static char |
INPUT_MASK_DIGIT_0_TO_6 |
static char |
INPUT_MASK_DIGIT_0_TO_7 |
static char |
INPUT_MASK_DIGIT_0_TO_8 |
static char |
INPUT_MASK_DIGIT_NON_ZERO |
static char |
INPUT_MASK_DIGIT_OR_LETTER |
static char |
INPUT_MASK_DIGIT_ZERO |
static char |
INPUT_MASK_HAX |
static char |
INPUT_MASK_LETTER |
static char |
REQUIRED_MASK_NOT_REQUIRED |
static char |
REQUIRED_MASK_REQUIRED |
| Constructor and Description |
|---|
MaskTextField() |
MaskTextField(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
autoAdvanceProperty() |
void |
clear()
Clears the text if any.
|
javafx.beans.property.BooleanProperty |
clearButtonVisibleProperty() |
javafx.beans.property.StringProperty |
conversionMaskProperty() |
static MaskTextField |
createCanadaPostalCodeField()
A static method which will create a MaskTextField for the Zip Code + 4 in US.
|
static MaskTextField |
createDateField()
A static method which will create a MaskTextField for the Date in US standard format (in the order of
month/day/year).
|
static MaskTextField |
createIPv6Field()
A static method which will create a MaskTextField for IPv6 address.
|
static MaskTextField |
createMacAddressField()
A static method which will create a MaskTextField for MAC address.
|
static MaskTextField |
createPhoneNumberField()
A static method which will create a MaskTextField for Phone Number in US and Canada.
|
static MaskTextField |
createSerialNumberField()
A static method which will create a MaskTextField for serial number.
|
static MaskTextField |
createSSNField()
A static method which will create a MaskTextField for SSN (social security number, a 9-digit id number used in
United States for tax purposes).
|
static MaskTextField |
createTime12Field()
A static method which will create a MaskTextField for the Time in the 12-hour format (in the order of
hour/minute/second AM/PM).
|
static MaskTextField |
createTime24Field()
A static method which will create a MaskTextField for the Time in the 24-hour format (in the order of
hour/minute/second).
|
static MaskTextField |
createZipCodeField()
A static method which will create a MaskTextField for the Zip Code in US.
|
static MaskTextField |
createZipCodePlus4Field()
A static method which will create a MaskTextField for the Zip Code + 4 in US.
|
java.lang.String |
getConversionMask()
Gets the conversion mask.
|
javafx.collections.ObservableMap<java.lang.Character,javafx.util.Callback<java.lang.Character,java.lang.Character>> |
getConversions()
Gets the conversions.
|
java.lang.String |
getInitialText()
Gets the initial text.
|
java.lang.String |
getInputMask()
Gets the input mask.
|
javafx.collections.ObservableMap<java.lang.Character,javafx.util.Callback<java.lang.Character,java.lang.Boolean>> |
getInputMaskVerifiers()
Gets the verifiers for the InputMask.
|
java.lang.String |
getInvalidCharacters()
Gets the invalid characters.
|
char |
getPlaceholderCharacter()
Gets the placeholder character.
|
java.lang.String |
getRequiredMask()
Gets the required mask.
|
java.lang.String |
getValidCharacters()
Gets the valid characters.
|
protected void |
initializeConversions() |
protected void |
initializeInputMaskVerifiers() |
protected void |
initializeStyle()
Adds or removes style from the getStyleClass.
|
protected void |
initializeTextField()
Initializes the text field.
|
javafx.beans.property.StringProperty |
initialTextProperty() |
javafx.beans.property.StringProperty |
inputMaskProperty() |
javafx.beans.property.StringProperty |
invalidCharactersProperty() |
boolean |
isAutoAdvance()
Checks if the auto-advance flag.
|
boolean |
isClearButtonVisible()
Checsk if the clear button is visible.
|
javafx.beans.property.ObjectProperty<java.lang.Character> |
placeholderCharacterProperty() |
protected void |
registerListeners() |
void |
replaceSelection(java.lang.String replacement) |
void |
replaceText(int start,
int end,
java.lang.String text) |
javafx.beans.property.StringProperty |
requiredMaskProperty() |
void |
setAutoAdvance(boolean autoAdvance)
Sets the auto-advance flag.
|
void |
setClearButtonVisible(boolean clearButtonVisible)
Shows or hides the clear button.
|
void |
setConversionMask(java.lang.String mask)
Sets the conversion mask.
|
void |
setInitialText(java.lang.String mask)
Sets the initial text.
|
void |
setInputMask(java.lang.String inputMask)
Sets the input mask.
|
void |
setInvalidCharacters(java.lang.String invalidCharacters)
Sets the invalid characters.
|
void |
setPlaceholderCharacter(char placeholderCharacter)
Sets the placeholder character.
|
void |
setRequiredMask(java.lang.String requiredMask)
Sets the required mask.
|
void |
setValidCharacters(java.lang.String validCharacters)
Sets the valid characters.
|
javafx.beans.property.StringProperty |
validCharactersProperty() |
alignmentProperty, createDefaultSkin, getAlignment, getCharacters, getClassCssMetaData, getControlCssMetaData, getOnAction, getPrefColumnCount, onActionProperty, prefColumnCountProperty, setAlignment, setOnAction, setPrefColumnCountanchorProperty, appendText, backward, caretPositionProperty, copy, cut, deleteNextChar, deletePreviousChar, deleteText, deleteText, deselect, editableProperty, end, endOfNextWord, extendSelection, fontProperty, forward, getAnchor, getCaretPosition, getContent, getFont, getLength, getPromptText, getSelectedText, getSelection, getText, getText, home, insertText, isEditable, lengthProperty, nextWord, paste, positionCaret, previousWord, promptTextProperty, replaceText, selectAll, selectBackward, selectedTextProperty, selectEnd, selectEndOfNextWord, selectForward, selectHome, selectionProperty, selectNextWord, selectPositionCaret, selectPreviousWord, selectRange, setEditable, setFont, setPromptText, setText, textPropertycomputeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, getUserAgentStylesheet, impl_cssGetFocusTraversableInitialValue, impl_getAccessible, impl_processCSS, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPGNode, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePG, 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, snapSize, snapSpace, snapToPixelProperty, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayoutaddEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPGNode, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPGNode, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, 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, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, screenToLocal, screenToLocal, screenToLocal, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic javafx.beans.property.ObjectProperty<java.lang.Character> placeholderCharacterProperty
public javafx.beans.property.StringProperty inputMaskProperty
getInputMask(),
setInputMask(String)public javafx.beans.property.StringProperty requiredMaskProperty
getRequiredMask(),
setRequiredMask(String)public javafx.beans.property.StringProperty conversionMaskProperty
getConversionMask(),
setConversionMask(String)public javafx.beans.property.StringProperty validCharactersProperty
getValidCharacters(),
setValidCharacters(String)public javafx.beans.property.StringProperty invalidCharactersProperty
public javafx.beans.property.StringProperty initialTextProperty
getInitialText(),
setInitialText(String)public javafx.beans.property.BooleanProperty autoAdvanceProperty
isAutoAdvance(),
setAutoAdvance(boolean)public javafx.beans.property.BooleanProperty clearButtonVisibleProperty
public static final char INPUT_MASK_LETTER
public static final char INPUT_MASK_DIGIT_OR_LETTER
public static final char INPUT_MASK_ANY_NON_SPACE
public static final char INPUT_MASK_HAX
public static final char INPUT_MASK_DIGIT_NON_ZERO
public static final char INPUT_MASK_DIGIT
public static final char INPUT_MASK_DIGIT_0_TO_8
public static final char INPUT_MASK_DIGIT_0_TO_7
public static final char INPUT_MASK_DIGIT_0_TO_6
public static final char INPUT_MASK_DIGIT_0_TO_5
public static final char INPUT_MASK_DIGIT_0_TO_4
public static final char INPUT_MASK_DIGIT_0_TO_3
public static final char INPUT_MASK_DIGIT_0_TO_2
public static final char INPUT_MASK_DIGIT_0_TO_1
public static final char INPUT_MASK_DIGIT_ZERO
public static final char CONVERSION_MASK_UPPER_CASE
public static final char CONVERSION_MASK_LOWER_CASE
public static final char CONVERSION_MASK_IGNORE
public static final char REQUIRED_MASK_REQUIRED
public static final char REQUIRED_MASK_NOT_REQUIRED
public MaskTextField()
public MaskTextField(java.lang.String text)
protected void initializeStyle()
protected void initializeTextField()
protected void initializeInputMaskVerifiers()
public javafx.collections.ObservableMap<java.lang.Character,javafx.util.Callback<java.lang.Character,java.lang.Boolean>> getInputMaskVerifiers()
protected void initializeConversions()
public javafx.collections.ObservableMap<java.lang.Character,javafx.util.Callback<java.lang.Character,java.lang.Character>> getConversions()
protected void registerListeners()
public void clear()
clear in class javafx.scene.control.TextInputControlpublic javafx.beans.property.ObjectProperty<java.lang.Character> placeholderCharacterProperty()
public char getPlaceholderCharacter()
public void setPlaceholderCharacter(char placeholderCharacter)
placeholderCharacter - a new placeholder character.public javafx.beans.property.StringProperty inputMaskProperty()
getInputMask(),
setInputMask(String)public java.lang.String getInputMask()
public void setInputMask(java.lang.String inputMask)
inputMask - a new input maskpublic javafx.beans.property.StringProperty requiredMaskProperty()
getRequiredMask(),
setRequiredMask(String)public java.lang.String getRequiredMask()
public void setRequiredMask(java.lang.String requiredMask)
requiredMask - a new required maskpublic javafx.beans.property.StringProperty conversionMaskProperty()
getConversionMask(),
setConversionMask(String)public java.lang.String getConversionMask()
public void setConversionMask(java.lang.String mask)
mask - a new conversion maskpublic javafx.beans.property.StringProperty validCharactersProperty()
getValidCharacters(),
setValidCharacters(String)public java.lang.String getValidCharacters()
public void setValidCharacters(java.lang.String validCharacters)
validCharacters - a new set of valid characterspublic javafx.beans.property.StringProperty invalidCharactersProperty()
public java.lang.String getInvalidCharacters()
public void setInvalidCharacters(java.lang.String invalidCharacters)
invalidCharacters - a new set of invalid characterspublic javafx.beans.property.StringProperty initialTextProperty()
getInitialText(),
setInitialText(String)public java.lang.String getInitialText()
public void setInitialText(java.lang.String mask)
mask - the initial text.public javafx.beans.property.BooleanProperty autoAdvanceProperty()
isAutoAdvance(),
setAutoAdvance(boolean)public boolean isAutoAdvance()
public void setAutoAdvance(boolean autoAdvance)
autoAdvance - a new auto-advance flagpublic void replaceText(int start,
int end,
java.lang.String text)
replaceText in class javafx.scene.control.TextInputControlpublic void replaceSelection(java.lang.String replacement)
replaceSelection in class javafx.scene.control.TextInputControlpublic static MaskTextField createSSNField()
public static MaskTextField createPhoneNumberField()
public static MaskTextField createZipCodeField()
public static MaskTextField createZipCodePlus4Field()
public static MaskTextField createCanadaPostalCodeField()
public static MaskTextField createSerialNumberField()
public static MaskTextField createIPv6Field()
public static MaskTextField createMacAddressField()
public static MaskTextField createDateField()
The initial text was set to the today's date.
public static MaskTextField createTime12Field()
The initial text was set to the current time.
public static MaskTextField createTime24Field()
The initial text was set to the current time.
public javafx.beans.property.BooleanProperty clearButtonVisibleProperty()
public boolean isClearButtonVisible()
public void setClearButtonVisible(boolean clearButtonVisible)
clearButtonVisible - true or false.