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
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class docking.widgets.numberformat.IntegerFormatter
IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentFilterstringToValue(String text) valueToString(Object value) Overridden to translate the internal value to a hex representation.Methods inherited from class docking.widgets.numberformat.IntegerFormatter
getDocumentFilter, getOriginalDocumentFilterMethods 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, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClassMethods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getFormattedTextField, invalidEdit, setEditValid, uninstall
-
Constructor Details
-
HexIntegerFormatter
public HexIntegerFormatter()
-
-
Method Details
-
createDocumentFilter
- Overrides:
createDocumentFilterin classIntegerFormatter
-
stringToValue
- Overrides:
stringToValuein classInternationalFormatter- Throws:
ParseException
-
valueToString
Overridden to translate the internal value to a hex representation.- Overrides:
valueToStringin classInternationalFormatter- Throws:
ParseException
-