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.DebugIdImplEnabled
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
directionalTextHelper
eventsToSink
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
ALIGN_CONTENT_END, ALIGN_CONTENT_START
ALIGN_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, wrap
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
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
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
public DateLabel()
public DateLabel(DateTimeFormat format)
public DateLabel(DateTimeFormat format, TimeZone timeZone)