Package docking.widgets.numberformat
Class HexIntegerFormatter
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
javax.swing.text.InternationalFormatter
javax.swing.text.NumberFormatter
docking.widgets.numberformat.IntegerFormatter
docking.widgets.numberformat.HexIntegerFormatter
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from class docking.widgets.numberformat.IntegerFormatter
IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentFilter
stringToValue
(String text) valueToString
(Object value) Overridden to translate the internal value to a hex representation.Methods inherited from class docking.widgets.numberformat.IntegerFormatter
getDocumentFilter, getOriginalDocumentFilter
Methods inherited from class javax.swing.text.NumberFormatter
setFormat
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
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getFormattedTextField, invalidEdit, setEditValid, uninstall
-
Constructor Details
-
HexIntegerFormatter
public HexIntegerFormatter()
-
-
Method Details
-
createDocumentFilter
- Overrides:
createDocumentFilter
in classIntegerFormatter
-
stringToValue
- Overrides:
stringToValue
in classInternationalFormatter
- Throws:
ParseException
-
valueToString
Overridden to translate the internal value to a hex representation.- Overrides:
valueToString
in classInternationalFormatter
- Throws:
ParseException
-