Debian Codegraph @

src/com/jidesoft/converter/NumberFormatConverter.java

raw
1 /*
2 * @(#)NumberFormatConverter.java 4/10/2007
3 *
4 * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
5 */
6
7 package com.jidesoft.converter;
8
9 import java.text.NumberFormat;
10
11 /**
12 * Converter which converts currency to String and converts it back.
13 */
14 abstract public class NumberFormatConverter extends NumberConverter {
15 public NumberFormatConverter(NumberFormat format) {
16 super(format);
17 }
18
19 public Object fromString(String string, ConverterContext context) {
20 return parseNumber(string);
21 }
22
23 public boolean supportFromString(String string, ConverterContext context) {
24 return true;
25 }
26 }