@Deprecated public class AllowBlankMaskFormatter extends javax.swing.text.MaskFormatter
MaskFormatter for
formatted text fields that supports
the field being emptied/left blank.| Constructor and Description |
|---|
AllowBlankMaskFormatter()
Deprecated.
|
AllowBlankMaskFormatter(java.lang.String mask)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowBlankField()
Deprecated.
|
void |
setAllowBlankField(boolean allowBlankField)
Deprecated.
|
void |
setMask(java.lang.String mask)
Deprecated.
Update our blank representation whenever the mask is updated.
|
void |
setPlaceholderCharacter(char placeholder)
Deprecated.
Update our blank representation whenever the mask is updated.
|
java.lang.Object |
stringToValue(java.lang.String value)
Deprecated.
Override the stringToValue method to check the blank representation.
|
getInvalidCharacters, getMask, getPlaceholder, getPlaceholderCharacter, getValidCharacters, getValueContainsLiteralCharacters, install, setInvalidCharacters, setPlaceholder, setValidCharacters, setValueContainsLiteralCharacters, valueToStringclone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClasspublic AllowBlankMaskFormatter()
public AllowBlankMaskFormatter(java.lang.String mask) throws java.text.ParseException
java.text.ParseExceptionpublic void setAllowBlankField(boolean allowBlankField)
public boolean isAllowBlankField()
public void setMask(java.lang.String mask) throws java.text.ParseException
setMask in class javax.swing.text.MaskFormatterjava.text.ParseExceptionpublic void setPlaceholderCharacter(char placeholder)
setPlaceholderCharacter in class javax.swing.text.MaskFormatterpublic java.lang.Object stringToValue(java.lang.String value) throws java.text.ParseException
stringToValue in class javax.swing.text.MaskFormatterjava.text.ParseException