public class UTCTimeBox extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.user.client.ui.HasValue<Long>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Long>, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasEnabled
| Modifier and Type | Field and Description |
|---|---|
UTCTimeBoxImplHtml4 |
impl |
| Constructor and Description |
|---|
UTCTimeBox()
By default the predefined SHORT time format will be used.
|
UTCTimeBox(com.google.gwt.i18n.client.DateTimeFormat timeFormat)
Allows a UTCTimeBox to be created with a specified format.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.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, 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, toStringpublic UTCTimeBoxImplHtml4 impl
public UTCTimeBox()
public UTCTimeBox(com.google.gwt.i18n.client.DateTimeFormat timeFormat)
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Long> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Long>public Long getValue()
public void setValue(Long value)
public void setValue(Long value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<Long>public String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextpublic boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setVisibleLength(int length)
public void setTabIndex(int tabIndex)
public void validate()
public static final Long getValueForNextHour()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.