Class DateBox.DefaultFormat

java.lang.Object
com.google.gwt.user.datepicker.client.DateBox.DefaultFormat
All Implemented Interfaces:
DateBox.Format
Enclosing class:
DateBox

public static class DateBox.DefaultFormat extends Object implements DateBox.Format
Default DateBox.Format class. The date is first parsed using the DateTimeFormat supplied by the user, or DateTimeFormat.PredefinedFormat.DATE_TIME_MEDIUM by default.

If that fails, we then try to parse again using the default browser date parsing.

If that fails, the dateBoxFormatError 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.