@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, valueToString
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
public AllowBlankMaskFormatter()
public AllowBlankMaskFormatter(java.lang.String mask) throws java.text.ParseException
java.text.ParseException
public void setAllowBlankField(boolean allowBlankField)
public boolean isAllowBlankField()
public void setMask(java.lang.String mask) throws java.text.ParseException
setMask
in class javax.swing.text.MaskFormatter
java.text.ParseException
public void setPlaceholderCharacter(char placeholder)
setPlaceholderCharacter
in class javax.swing.text.MaskFormatter
public java.lang.Object stringToValue(java.lang.String value) throws java.text.ParseException
stringToValue
in class javax.swing.text.MaskFormatter
java.text.ParseException