org.objectweb.jac.aspects.gui
Class FloatFormat

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.FloatFormat
All Implemented Interfaces:
Format, NumberFormat
Direct Known Subclasses:
PercentFormat

public class FloatFormat
extends Object
implements NumberFormat


Field Summary
protected  FieldItem field
           
protected  DecimalFormat format
           
 
Constructor Summary
FloatFormat(FieldItem field)
           
 
Method Summary
 String format(double value)
           
 String format(Number value)
           
 String format(Object value)
           
 Object parse(String str, ParsePosition pos)
           
 Double parseDouble(String str, ParsePosition pos)
           
 Float parseFloat(String str, ParsePosition pos)
           
 Number parseNumber(String str, ParsePosition pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected DecimalFormat format

field

protected FieldItem field
Constructor Detail

FloatFormat

public FloatFormat(FieldItem field)
Method Detail

format

public String format(Object value)
Specified by:
format in interface Format

format

public String format(Number value)
Specified by:
format in interface NumberFormat

format

public String format(double value)
Specified by:
format in interface NumberFormat

parse

public Object parse(String str,
                    ParsePosition pos)
Specified by:
parse in interface Format

parseNumber

public Number parseNumber(String str,
                          ParsePosition pos)
Specified by:
parseNumber in interface NumberFormat

parseFloat

public Float parseFloat(String str,
                        ParsePosition pos)
Specified by:
parseFloat in interface NumberFormat

parseDouble

public Double parseDouble(String str,
                          ParsePosition pos)
Specified by:
parseDouble in interface NumberFormat