public static interface DateBox.Format
DateBox.Format
uses a new DateBox.DefaultFormat
instance.Modifier and Type | Method and Description |
---|---|
String |
format(DateBox dateBox,
Date date)
Formats the provided date.
|
Date |
parse(DateBox dateBox,
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.
|
String format(DateBox dateBox, Date date)
dateBox
- the date box you are formattingdate
- the date to formatDate parse(DateBox dateBox, 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 boxCopyright © 2018. All rights reserved.