public class UTCTimeBox extends Composite implements HasValue<Long>, HasValueChangeHandlers<Long>, HasText, HasEnabled
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
UTCTimeBoxImpl |
impl |
DEBUG_ID_PREFIX
Constructor and Description |
---|
UTCTimeBox()
By default the predefined SHORT time format will be used.
|
UTCTimeBox(DateTimeFormat timeFormat)
Allows a UTCTimeBox to be created with a specified format.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<Long> handler) |
String |
getText() |
Long |
getValue() |
static Long |
getValueForNextHour() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setTabIndex(int tabIndex) |
void |
setText(String text) |
void |
setValue(Long value) |
void |
setValue(Long value,
boolean fireEvents) |
void |
setVisibleLength(int length)
The HTML5 implementation will ignore this.
|
void |
validate()
If this is a text based control, it will validate the value
that has been typed.
|
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
fireEvent
public UTCTimeBoxImpl impl
public UTCTimeBox()
public UTCTimeBox(DateTimeFormat timeFormat)
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Long> handler)
addValueChangeHandler
in interface HasValueChangeHandlers<Long>
public Long getValue()
public void setValue(Long value)
public void setValue(Long value, boolean fireEvents)
public boolean isEnabled()
isEnabled
in interface HasEnabled
public void setEnabled(boolean enabled)
setEnabled
in interface HasEnabled
public void setVisibleLength(int length)
public void setTabIndex(int tabIndex)
public void validate()
public static final Long getValueForNextHour()
Copyright © 2015. All Rights Reserved.