Serializable, Cloneablepublic class StrictNumberFormatter extends NumberFormatter
| Constructor | Description |
|---|---|
StrictNumberFormatter(NumberFormat format) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
setMaximum(Comparable max) |
|
void |
setMinimum(Comparable minimum) |
|
void |
setValueClass(Class<?> valueClass) |
|
Object |
stringToValue(String text) |
Returns the
Object representation of the
String text, may be null. |
getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteModeclone, getActions, getFields, getFormat, getMaximum, getMinimum, install, valueToStringgetFormattedTextField, invalidEdit, setEditValid, uninstallsetFormatpublic StrictNumberFormatter(NumberFormat format)
format - public void setValueClass(Class<?> valueClass)
Overridden to automatically set the minimum/maximum to the boundaries of the Number type if it corresponds to a raw type, or null if not.
setValueClass in class DefaultFormatterpublic void setMaximum(Comparable max)
setMaximum in class InternationalFormatterpublic void setMinimum(Comparable minimum)
setMinimum in class InternationalFormatterpublic Object stringToValue(String text) throws ParseException
Object representation of the
String text, may be null.stringToValue in class InternationalFormattertext - String to convertObject representation of textParseException - if there is an error in the conversionCopyright © 2018. All rights reserved.