public abstract class UTCTimeBoxImplShared extends com.google.gwt.user.client.ui.Composite implements UTCTimeBoxImpl
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
fallbackFormatStrings |
protected static com.google.gwt.i18n.client.DateTimeFormat[] |
fallbackTimeFormats |
protected com.google.gwt.i18n.client.DateTimeFormat |
timeFormat |
| Constructor and Description |
|---|
UTCTimeBoxImplShared() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
formatUsingFormat(Long value,
com.google.gwt.i18n.client.DateTimeFormat fmt)
Formats the value provided with the specified DateTimeFormat
|
protected static long |
normalizeInLocalRange(long time) |
protected static Long |
parseUsingFallbacks(String text,
com.google.gwt.i18n.client.DateTimeFormat primaryTimeFormat) |
protected static Long |
parseUsingFallbacksWithColon(String text,
com.google.gwt.i18n.client.DateTimeFormat timeFormat)
Attempts to insert a colon so that a value without a colon can
be parsed.
|
protected static Long |
parseUsingFormat(String text,
com.google.gwt.i18n.client.DateTimeFormat fmt) |
void |
setTimeFormat(com.google.gwt.i18n.client.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, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetTabIndexprotected static com.google.gwt.i18n.client.DateTimeFormat[] fallbackTimeFormats
protected static String[] fallbackFormatStrings
protected com.google.gwt.i18n.client.DateTimeFormat timeFormat
public void setTimeFormat(com.google.gwt.i18n.client.DateTimeFormat timeFormat)
setTimeFormat in interface UTCTimeBoxImplpublic void setVisibleLength(int length)
setVisibleLength in interface UTCTimeBoxImplpublic void validate()
validate in interface UTCTimeBoxImplpublic final void setValue(Long value)
protected static final String formatUsingFormat(Long value, com.google.gwt.i18n.client.DateTimeFormat fmt)
protected static final Long parseUsingFallbacksWithColon(String text, com.google.gwt.i18n.client.DateTimeFormat timeFormat)
protected static final Long parseUsingFormat(String text, com.google.gwt.i18n.client.DateTimeFormat fmt)
protected static final Long parseUsingFallbacks(String text, com.google.gwt.i18n.client.DateTimeFormat primaryTimeFormat)
protected static long normalizeInLocalRange(long time)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.