planetj.formatters
Class NegativeCurrencyFormatter
java.lang.Object
planetj.formatters.AbstractFormatter
planetj.formatters.NumberFormatter
planetj.formatters.CurrencyFormatter
planetj.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).
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegativeCurrencyFormatter
public NegativeCurrencyFormatter()
- Deprecated.
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: