planetj.formatters
Class NegativeCurrencyFormatter

java.lang.Object
  |
  +--java.text.Format
        |
        +--java.text.NumberFormat
              |
              +--planetj.formatters.CurrencyFormatter
                    |
                    +--planetj.formatters.NegativeCurrencyFormatter
All Implemented Interfaces:
Cloneable, IFormatter, Serializable

public class NegativeCurrencyFormatter
extends CurrencyFormatter

Insert the type's description here. Creation date: (1/29/2004 2:38:48 PM)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
NegativeCurrencyFormatter()
           
 
Method Summary
 Object formatValue(Object value)
          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.CurrencyFormatter
format, format, getFormatterInstance, parse
 
Methods inherited from class java.text.NumberFormat
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeCurrencyFormatter

public NegativeCurrencyFormatter()
Method Detail

formatValue

public Object formatValue(Object value)
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 - java.lang.Object
Returns:
java.lang.Object