public class DateLabel extends ValueLabel<java.util.Date>
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.)
UiBinder templates, both the format and time zone can be configured.
The format can be given with one of these attributes:
DateTimeFormat instance.DateTimeFormat.PredefinedFormat.DateTimeFormat.getFormat(String).The time zone can be specified with either of these attributes:
TimeZone instance.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstantdirectionalTextHelpereventsToSinkDEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERRORALIGN_CONTENT_END, ALIGN_CONTENT_STARTALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT| Constructor and Description |
|---|
DateLabel() |
DateLabel(DateTimeFormat format) |
DateLabel(DateTimeFormat format,
TimeZone timeZone) |
asEditor, getValue, setValue, wrap, wrapgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, 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, unsinkEventsaddStyleDependentName, 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, toStringpublic DateLabel()
public DateLabel(DateTimeFormat format)
public DateLabel(DateTimeFormat format, TimeZone timeZone)