com.retek.commons.gui.mask
Class NegativeCurrencyMask

java.lang.Object
  extended bycom.retek.commons.gui.mask.NegativeCurrencyMask
All Implemented Interfaces:
Mask

public class NegativeCurrencyMask
extends java.lang.Object
implements Mask

This class handles formatting and unformatting currency fields. Works exactly like CurrencyMask, except that positive values are surrounded by "()" and negative values are not. In the future, this should be determined by a properties file.

Retek Inc. Copyright (c) 2002


Constructor Summary
NegativeCurrencyMask()
           
 
Method Summary
 java.lang.String format(java.lang.String text)
           
 java.lang.String format(java.lang.String[] text)
           
 java.lang.String unformat(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeCurrencyMask

public NegativeCurrencyMask()
Method Detail

format

public java.lang.String format(java.lang.String text)
Specified by:
format in interface Mask

format

public java.lang.String format(java.lang.String[] text)
Specified by:
format in interface Mask

unformat

public java.lang.String unformat(java.lang.String text)
Specified by:
unformat in interface Mask


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28