public class NumberEditor extends AbstractPropertyEditor
Constructor and Description |
---|
NumberEditor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
defaultValue() |
protected String |
toText(Object value)
Returns a String representation of the given value
|
protected Object |
toValue(String text)
Returns an instance from a String representation of an object
|
protected Object |
toValue(String text,
int radix) |
defaultText, getAsText, getValue, setAsText, setTrimText, setValue
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
protected final String toText(Object value)
AbstractPropertyEditor
toText
in class AbstractPropertyEditor
value
- The valueprotected final Object toValue(String text) throws IllegalArgumentException
AbstractPropertyEditor
toValue
in class AbstractPropertyEditor
text
- The String representation to convertIllegalArgumentException
protected Object defaultValue()
defaultValue
in class AbstractPropertyEditor
Copyright © 2004–2022 Apache MINA Project. All rights reserved.