01: /*
02: * @(#)PercentConverter.java 4/10/2007
03: *
04: * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.converter;
08:
09: import java.text.NumberFormat;
10:
11: /**
12: * Converter which converts percentage to String and converts it back.
13: */
14: public class PercentConverter extends NumberFormatConverter {
15: public static ConverterContext CONTEXT = new ConverterContext(
16: "Percent");
17:
18: public PercentConverter() {
19: this (NumberFormat.getPercentInstance());
20: }
21:
22: public PercentConverter(NumberFormat format) {
23: super(format);
24: }
25: }
|