JComponentPack 1.5.0

com.zfqjava.swing.cell.converter
Class NumberConverter

java.lang.Object
  extended by com.zfqjava.swing.cell.converter.NumberConverter
All Implemented Interfaces:
Converter

public class NumberConverter
extends Object
implements Converter


Constructor Summary
NumberConverter()
          Creates a new instance of NumberConverter
 
Method Summary
 NumberFormat getFormat()
           
 void setFormat(NumberFormat format)
           
 String toString(Object o)
          Converts the object to string.
 Object valueOf(String s)
          Convets the string to object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberConverter

public NumberConverter()
Creates a new instance of NumberConverter

Method Detail

getFormat

public NumberFormat getFormat()

setFormat

public void setFormat(NumberFormat format)

toString

public String toString(Object o)
                throws ConvertException
Description copied from interface: Converter
Converts the object to string.

Specified by:
toString in interface Converter
Parameters:
o - the object
Throws:
ConvertException

valueOf

public Object valueOf(String s)
               throws ConvertException
Description copied from interface: Converter
Convets the string to object.

Specified by:
valueOf in interface Converter
Parameters:
s - the string
Throws:
ConvertException

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.