Class NumberEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.mina.integration.beans.AbstractPropertyEditor
-
- org.apache.mina.integration.beans.NumberEditor
-
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
ByteEditor,DoubleEditor,FloatEditor,IntegerEditor,LongEditor,ShortEditor
public class NumberEditor extends AbstractPropertyEditor
- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description NumberEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectdefaultValue()protected StringtoText(Object value)Returns a String representation of the given valueprotected ObjecttoValue(String text)Returns an instance from a String representation of an objectprotected ObjecttoValue(String text, int radix)-
Methods inherited from class org.apache.mina.integration.beans.AbstractPropertyEditor
defaultText, getAsText, getValue, setAsText, setTrimText, setValue
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
-
-
-
Method Detail
-
toText
protected final String toText(Object value)
Description copied from class:AbstractPropertyEditorReturns a String representation of the given value- Specified by:
toTextin classAbstractPropertyEditor- Parameters:
value- The value- Returns:
- A String representation of the value
-
toValue
protected final Object toValue(String text) throws IllegalArgumentException
Description copied from class:AbstractPropertyEditorReturns an instance from a String representation of an object- Specified by:
toValuein classAbstractPropertyEditor- Parameters:
text- The String representation to convert- Returns:
- A instance of an object
- Throws:
IllegalArgumentException
-
defaultValue
protected Object defaultValue()
- Overrides:
defaultValuein classAbstractPropertyEditor- Returns:
- The default value
-
-