01: /*
02: * SNumberFormatter.java
03: *
04: * Created on 18. Juli 2006, 10:10
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.wings.text;
11:
12: import java.text.Format;
13: import java.text.NumberFormat;
14: import org.wings.session.SessionManager;
15:
16: /**
17: *
18: * @author erik
19: */
20: public class SNumberFormatter extends SInternationalFormatter {
21:
22: Format format = null;
23:
24: /** Creates a new instance of SNumberFormatter */
25: public SNumberFormatter(NumberFormat format) {
26: super (format);
27: }
28:
29: public SNumberFormatter() {
30: this(SessionManager.getSession() != null ? NumberFormat
31: .getNumberInstance(SessionManager.getSession()
32: .getLocale()) : NumberFormat
33: .getNumberInstance());
34: }
35:
36: }
|