uic.widgets
Class UICSpinbox.SimpleFormat

java.lang.Object
  extended by java.text.Format
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
Format.Field
 
Constructor Summary
protected UICSpinbox.SimpleFormat()
           
 
Method Summary
 StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
           
 AttributedCharacterIterator formatToCharacterIterator(Object obj)
           
 Object parseObject(String source, ParsePosition pos)
           
 
Methods inherited from class java.text.Format
clone, format, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICSpinbox.SimpleFormat

protected UICSpinbox.SimpleFormat()
Method Detail

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