Class DateLabel

All Implemented Interfaces:
IsEditor<LeafValueEditor<Date>>, HasAttachHandlers, HasHandlers, HasDirectionEstimator, EventListener, TakesValue<Date>, HasAutoHorizontalAlignment, HasHorizontalAlignment, HasVisibility, HasWordWrap, IsWidget

public class DateLabel extends ValueLabel<Date>
Extends ValueLabel for convenience when dealing with dates and DateTimeFormat, especially in UiBinder templates. (Note that this class does not accept renderers. To do so use ValueLabel directly.)

Use in UiBinder Templates

In UiBinder templates, both the format and time zone can be configured.

The format can be given with one of these attributes:

format
a reference to a DateTimeFormat instance.
predefinedFormat
a DateTimeFormat.PredefinedFormat.
customFormat
a date time pattern that can be passed to DateTimeFormat.getFormat(String).

The time zone can be specified with either of these attributes:

timezone
a reference to a TimeZone instance.
timezoneOffset
the time zone offset in minutes.