public abstract class UTCTimeBoxImplShared extends Composite implements UTCTimeBoxImpl
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
protected static String[] |
fallbackFormatStrings |
protected static DateTimeFormat[] |
fallbackTimeFormats |
protected DateTimeFormat |
timeFormat |
DEBUG_ID_PREFIX
Constructor and Description |
---|
UTCTimeBoxImplShared() |
Modifier and Type | Method and Description |
---|---|
protected static String |
formatUsingFormat(Long value,
DateTimeFormat fmt)
Formats the value provided with the specified DateTimeFormat
|
protected static long |
normalizeInLocalRange(long time) |
protected static Long |
parseUsingFallbacks(String text,
DateTimeFormat primaryTimeFormat) |
protected static Long |
parseUsingFallbacksWithColon(String text,
DateTimeFormat timeFormat)
Attempts to insert a colon so that a value without a colon can
be parsed.
|
protected static Long |
parseUsingFormat(String text,
DateTimeFormat fmt) |
void |
setTimeFormat(DateTimeFormat timeFormat)
Sets the DateTimeFormat for this UTCTimeBox.
|
void |
setValue(Long value)
Sets the time value (as milliseconds since midnight independent
of time zone)
|
void |
setVisibleLength(int length)
Sets the visible length of the time input.
|
protected Long |
text2value(String text) |
void |
validate()
Validates the value that has been typed into the text input.
|
protected String |
value2text(Long value) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setTabIndex
addValueChangeHandler
fireEvent
protected static DateTimeFormat[] fallbackTimeFormats
protected static String[] fallbackFormatStrings
protected DateTimeFormat timeFormat
public void setTimeFormat(DateTimeFormat timeFormat)
setTimeFormat
in interface UTCTimeBoxImpl
public void setVisibleLength(int length)
setVisibleLength
in interface UTCTimeBoxImpl
public void validate()
validate
in interface UTCTimeBoxImpl
public final void setValue(Long value)
protected static final String formatUsingFormat(Long value, DateTimeFormat fmt)
protected static final Long parseUsingFallbacksWithColon(String text, DateTimeFormat timeFormat)
protected static final Long parseUsingFormat(String text, DateTimeFormat fmt)
protected static final Long parseUsingFallbacks(String text, DateTimeFormat primaryTimeFormat)
protected static long normalizeInLocalRange(long time)
Copyright © 2015. All Rights Reserved.