| 1 |
/* |
| 2 |
* @(#)CurrencyConverter.java 5/9/2006 |
| 3 |
* |
| 4 |
* Copyright 2002 - 2006 JIDE Software Inc. All rights reserved. |
| 5 |
*/ |
| 6 |
|
| 7 |
package com.jidesoft.converter; |
| 8 |
|
| 9 |
import java.text.NumberFormat; |
| 10 |
import java.util.Locale; |
| 11 |
|
| 12 |
/** |
| 13 |
* Converter which converts currency to String and converts it back. |
| 14 |
*/ |
| 15 |
public class CurrencyConverter extends NumberFormatConverter { |
| 16 |
public static ConverterContext CONTEXT = new ConverterContext("Currency"); |
| 17 |
|
| 18 |
public CurrencyConverter() { |
| 19 |
this(NumberFormat.getCurrencyInstance(Locale.getDefault())); |
| 20 |
} |
| 21 |
|
| 22 |
public CurrencyConverter(NumberFormat format) { |
| 23 |
super(format); |
| 24 |
} |
| 25 |
} |