public class

DateLabel

extends ValueLabel<T>
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.LabelBase<T>
         ↳ com.google.gwt.user.client.ui.ValueLabel<T>
           ↳ com.google.gwt.user.client.ui.DateLabel

Class Overview

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 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.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
[Expand]
Inherited Fields
From interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasHorizontalAlignment
Public Constructors
DateLabel()
DateLabel(DateTimeFormat format)
DateLabel(DateTimeFormat format, TimeZone timeZone)
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.ValueLabel
From class com.google.gwt.user.client.ui.LabelBase
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.editor.client.IsEditor
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.i18n.shared.HasDirectionEstimator
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.TakesValue
From interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasWordWrap
From interface com.google.gwt.user.client.ui.IsWidget

Public Constructors

public DateLabel ()

public DateLabel (DateTimeFormat format)

public DateLabel (DateTimeFormat format, TimeZone timeZone)