public class StrictNumberFormatter extends NumberFormatter
| Constructor and Description |
|---|
StrictNumberFormatter(NumberFormat format) |
| Modifier and Type | Method and 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. |
setFormatclone, getActions, getFields, getFormat, getMaximum, getMinimum, install, valueToStringgetAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteModegetFormattedTextField, invalidEdit, setEditValid, uninstallpublic 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 © 2017. All Rights Reserved.