IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.format
Class NumericFormat

java.lang.Object
  extended by com.ibm.btt.rcp.xui.format.Format
      extended by com.ibm.btt.rcp.xui.format.NumericFormat
All Implemented Interfaces:
IFormat

public class NumericFormat
extends Format

XML UI engine provides the com.ibm.btt.rcp.xui.format.NumericFormat to format the Number object. This formatter needs two pattern: inputPattern and outputPattern. inputPattern defines the format of input. outputPattern defines the format of the text which will be displayed in the Text. The inputPattern and the outputPattern are same as the pattern used in java.text.DecimalFormat, more details please refer to the java doc of JDK.


Constructor Summary
NumericFormat()
           
 
Method Summary
 java.lang.String format(java.lang.String text)
          Format String to another pattern to be shown.
 java.lang.String formatFromConversionType(java.lang.Object obj)
          Format String from conversion type
 java.lang.Object formatToConversionType(java.lang.String text)
          Format String to conversion type
 java.lang.String getInputPattern()
          Get input number pattern
 java.lang.String getOutputPattern()
          Get output number pattern
 void setInputPattern(java.lang.String inputPattern)
          Set input number pattern
 void setOutputPattern(java.lang.String outputPattern)
          Set output number pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericFormat

public NumericFormat()
Method Detail

format

public java.lang.String format(java.lang.String text)
Description copied from interface: IFormat
Format String to another pattern to be shown.

Specified by:
format in interface IFormat
Overrides:
format in class Format
Returns:

formatFromConversionType

public java.lang.String formatFromConversionType(java.lang.Object obj)
Description copied from interface: IFormat
Format String from conversion type

Specified by:
formatFromConversionType in interface IFormat
Overrides:
formatFromConversionType in class Format
Returns:

formatToConversionType

public java.lang.Object formatToConversionType(java.lang.String text)
Description copied from interface: IFormat
Format String to conversion type

Specified by:
formatToConversionType in interface IFormat
Overrides:
formatToConversionType in class Format
Returns:

getInputPattern

public java.lang.String getInputPattern()
Get input number pattern

Returns:

setInputPattern

public void setInputPattern(java.lang.String inputPattern)
Set input number pattern

Parameters:
inputPattern -

getOutputPattern

public java.lang.String getOutputPattern()
Get output number pattern

Returns:

setOutputPattern

public void setOutputPattern(java.lang.String outputPattern)
Set output number pattern

Parameters:
outputPattern -

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011