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:
java.io.Serializable,java.lang.Cloneable
public class RangedNumberFormatter extends javax.swing.text.NumberFormatterA number formatter that can constrain values to a minimum and/or maximum value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RangedNumberFormatter(java.lang.Double min, java.lang.Double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectstringToValue(java.lang.String text)java.lang.StringvalueToString(java.lang.Object value)-
Methods inherited from class javax.swing.text.InternationalFormatter
clone, getActions, getFields, getFormat, getMaximum, getMinimum, install, setMaximum, setMinimum
-
Methods inherited from class javax.swing.text.DefaultFormatter
getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
-
-
-
-
Method Detail
-
stringToValue
public java.lang.Object stringToValue(java.lang.String text) throws java.text.ParseException- Overrides:
stringToValuein classjavax.swing.text.InternationalFormatter- Throws:
java.text.ParseException
-
valueToString
public java.lang.String valueToString(java.lang.Object value) throws java.text.ParseException- Overrides:
valueToStringin classjavax.swing.text.InternationalFormatter- Throws:
java.text.ParseException
-
-