01: /*
02: * Created on Dec 4, 2006
03: */
04: package uk.org.ponder.dateutil;
05:
06: import java.text.ParseException;
07: import java.util.Date;
08: import java.util.TimeZone;
09:
10: import uk.org.ponder.localeutil.LocaleSetter;
11:
12: /* Interface to a transit bean parsing Date objects into their Locale-specific
13: * forms. */
14:
15: public interface FieldDateTransit extends LocaleSetter {
16: public void setTimeZone(TimeZone timezone);
17:
18: public String getShort();
19:
20: public String getMedium();
21:
22: public String getLong();
23:
24: public String getTime();
25:
26: public String getLongTime();
27:
28: public void setShort(String shortform) throws ParseException;
29:
30: public void setMedium(String medform) throws ParseException;
31:
32: public void setLong(String longform) throws ParseException;
33:
34: public void setTime(String time) throws ParseException;
35:
36: public Date getDate();
37:
38: public void setDate(Date date);
39:
40: public String getShortFormat();
41:
42: public String getTimeFormat();
43: }
|