planetj.formatters
Class NegativeCurrencyFormatter

java.lang.Object
  extended byplanetj.formatters.AbstractFormatter
      extended byplanetj.formatters.NumberFormatter
          extended byplanetj.formatters.CurrencyFormatter
              extended byplanetj.formatters.NegativeCurrencyFormatter
All Implemented Interfaces:
IFormatter

Deprecated. replaced with NegateCurrencyFormatter

public class NegativeCurrencyFormatter
extends CurrencyFormatter

This class takes the opposite of the value passed in for formatting. For example, a value might be 100 where as it should be formatted as -100 or (100).


Constructor Summary
NegativeCurrencyFormatter()
          Deprecated.  
 
Method Summary
 java.lang.String formatValue(java.lang.Object value, Field field)
          Deprecated. This method formats a number (or a String representation of the number that has no commas) to be a string that represents the currency format of the current locale.
 
Methods inherited from class planetj.formatters.NumberFormatter
getNumberFormat
 
Methods inherited from class planetj.formatters.AbstractFormatter
isPrepareFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeCurrencyFormatter

public NegativeCurrencyFormatter()
Deprecated. 
Method Detail

formatValue

public java.lang.String formatValue(java.lang.Object value,
                                    Field field)
Deprecated. 
Description copied from class: CurrencyFormatter
This method formats a number (or a String representation of the number that has no commas) to be a string that represents the currency format of the current locale. For example, 23434.45 would return $23434.45. If a value is passed in that is not in the right format to be formatted, that value is simply returned

Specified by:
formatValue in interface IFormatter
Overrides:
formatValue in class CurrencyFormatter
Parameters:
value -
Returns: