public static interface DateBox.Format
DateBox.Format uses a new DateBox.DefaultFormat
instance.| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String format(DateBox dateBox, java.util.Date date)
dateBox - the date box you are formattingdate - the date to formatjava.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