java.lang.Object | |
↳ | com.google.gwt.user.datepicker.client.DateBox.DefaultFormat |
Default DateBox.Format
class. The date is first parsed using the
DateTimeFormat
supplied by the user, or
getMediumDateFormat()
by default.
If that fails, we then try to parse again using the default browser date parsing.
If that fails, thedateBoxFormatError
css style is applied to
the DateBox
. The style will be removed when either a successful
parse(DateBox, String, boolean)
is called or
format(DateBox, Date)
is called.
Use a different DateBox.Format
instance to change that behavior.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new default format instance.
| |||||||||||
Creates a new default format instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Formats the provided date.
| |||||||||||
Gets the date time format.
| |||||||||||
Parses the provided string as a date.
| |||||||||||
If the format did any modifications to the date box's styling, reset them
now.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.user.datepicker.client.DateBox.Format
|
Creates a new default format instance.
Creates a new default format instance.
dateTimeFormat | the DateTimeFormat to use with this
DateBox.DefaultFormat .
|
---|
Formats the provided date. Note, a null date is a possible input.
box | the date box you are formatting |
---|---|
date | the date to format |
Parses the provided string as a date.
dateBox | the date box |
---|---|
dateText | the string representing a date |
reportError | should the formatter indicate a parse error to the user? |
If the format did any modifications to the date box's styling, reset them now.
dateBox | the date box |
---|---|
abandon | true when the current format is being replaced by another |