|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface DateBox.Format
Implemented by a delegate to handle the parsing and formating of date
values. The default DateBox.DefaultFormat
uses a new DateBox.DefaultFormat
instance.
Method Summary | |
---|---|
java.lang.String |
format(DateBox dateBox,
java.util.Date date)
Formats the provided date. |
java.util.Date |
parse(DateBox dateBox,
java.lang.String text,
boolean reportError)
Parses the provided string as a date. |
void |
reset(DateBox dateBox,
boolean abandon)
If the format did any modifications to the date box's styling, reset them now. |
Method Detail |
---|
java.lang.String format(DateBox dateBox, java.util.Date date)
dateBox
- the date box you are formattingdate
- the date to format
java.util.Date parse(DateBox dateBox, java.lang.String text, boolean reportError)
dateBox
- the date boxtext
- the string representing a datereportError
- should the formatter indicate a parse error to the
user?
void reset(DateBox dateBox, boolean abandon)
abandon
- true when the current format is being replaced by anotherdateBox
- the date box
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |