Package org.gorpipe.querydialogs
Class RangedNumberFormatter
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
javax.swing.text.InternationalFormatter
javax.swing.text.NumberFormatter
org.gorpipe.querydialogs.RangedNumberFormatter
- All Implemented Interfaces:
Serializable,Cloneable
A number formatter that can constrain values to a minimum and/or maximum value.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.text.NumberFormatter
setFormatMethods inherited from class javax.swing.text.InternationalFormatter
clone, getActions, getFields, getFormat, getMaximum, getMinimum, install, setMaximum, setMinimumMethods inherited from class javax.swing.text.DefaultFormatter
getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClassMethods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getFormattedTextField, invalidEdit, setEditValid, uninstall
-
Constructor Details
-
RangedNumberFormatter
- Parameters:
min- the minimum allowed value (null permitted)max- the maximum allowed value (null permitted)
-
-
Method Details
-
stringToValue
- Overrides:
stringToValuein classInternationalFormatter- Throws:
ParseException
-
valueToString
- Overrides:
valueToStringin classInternationalFormatter- Throws:
ParseException
-