Package docking.widgets.textfield
Class HexIntegerFormatter
- java.lang.Object
-
- javax.swing.JFormattedTextField.AbstractFormatter
-
- javax.swing.text.DefaultFormatter
-
- javax.swing.text.InternationalFormatter
-
- javax.swing.text.NumberFormatter
-
- docking.widgets.textfield.IntegerFormatter
-
- docking.widgets.textfield.HexIntegerFormatter
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class HexIntegerFormatter extends IntegerFormatter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
HexIntegerFormatter.HexAllowedPositiveValueIntgerDocumentFilterWrapper
-
Nested classes/interfaces inherited from class docking.widgets.textfield.IntegerFormatter
IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
-
-
Constructor Summary
Constructors Constructor Description HexIntegerFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.text.DocumentFilter
createDocumentFilter()
java.lang.Object
stringToValue(java.lang.String text)
java.lang.String
valueToString(java.lang.Object value)
Overridden to translate the internal value to a hex representation.-
Methods inherited from class docking.widgets.textfield.IntegerFormatter
getDocumentFilter, getOriginalDocumentFilter
-
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, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
-
-
-
-
Method Detail
-
createDocumentFilter
protected javax.swing.text.DocumentFilter createDocumentFilter()
- Overrides:
createDocumentFilter
in classIntegerFormatter
-
stringToValue
public java.lang.Object stringToValue(java.lang.String text) throws java.text.ParseException
- Overrides:
stringToValue
in classjavax.swing.text.InternationalFormatter
- Throws:
java.text.ParseException
-
valueToString
public java.lang.String valueToString(java.lang.Object value) throws java.text.ParseException
Overridden to translate the internal value to a hex representation.- Overrides:
valueToString
in classjavax.swing.text.InternationalFormatter
- Throws:
java.text.ParseException
-
-