uic.widgets
Class UICSpinbox.SimpleFormat
java.lang.Object
java.text.Format
uic.widgets.UICSpinbox.SimpleFormat
- All Implemented Interfaces:
- Serializable, Cloneable
- Enclosing class:
- UICSpinbox
protected class UICSpinbox.SimpleFormat
- extends Format
Simple formatter iplementation.
Do NOT use the default NumberFormat since the toString should be used of an integer.
NumberFormat has the "odd" behaviour of converting an int to a double
Resulting the integer to be displayed as a double value
- See Also:
- Serialized Form
UICSpinbox.SimpleFormat
protected UICSpinbox.SimpleFormat()
format
public StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
- Specified by:
format
in class Format
formatToCharacterIterator
public AttributedCharacterIterator formatToCharacterIterator(Object obj)
- Overrides:
formatToCharacterIterator
in class Format
parseObject
public Object parseObject(String source,
ParsePosition pos)
- Specified by:
parseObject
in class Format
Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence