Package com.google.gwt.user.client.ui
Class DateLabel
java.lang.Object
- All Implemented Interfaces:
IsEditor<LeafValueEditor<Date>>
,HasAttachHandlers
,HasHandlers
,HasDirectionEstimator
,EventListener
,TakesValue<Date>
,HasAutoHorizontalAlignment
,HasHorizontalAlignment
,HasVisibility
,HasWordWrap
,IsWidget
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
InUiBinder
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
-
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.LabelBase
directionalTextHelper
Fields inherited from class com.google.gwt.user.client.ui.Widget
eventsToSink
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
Fields inherited from interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
ALIGN_CONTENT_END, ALIGN_CONTENT_START
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
-
Constructor Summary
ConstructorDescriptionDateLabel
(DateTimeFormat format) DateLabel
(DateTimeFormat format, TimeZone timeZone) -
Method Summary
Methods inherited from class com.google.gwt.user.client.ui.ValueLabel
asEditor, getValue, setValue, wrap, wrap
Methods inherited from class com.google.gwt.user.client.ui.LabelBase
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Constructor Details
-
DateLabel
public DateLabel()
-