01: /*
02: * SDateFormatter.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.DateFormat;
13: import org.wings.session.SessionManager;
14:
15: /**
16: *
17: * @author erik
18: */
19: public class SDateFormatter extends SInternationalFormatter {
20:
21: DateFormat format = null;
22:
23: /** Creates a new instance of SDateFormatter */
24: public SDateFormatter() {
25: this (SessionManager.getSession() != null ? DateFormat
26: .getDateInstance(DateFormat.DEFAULT, SessionManager
27: .getSession().getLocale()) : DateFormat
28: .getDateInstance());
29: }
30:
31: public SDateFormatter(DateFormat dateFormat) {
32: super(dateFormat);
33: }
34:
35: }
|