jBPM Console NG - Generic Client 6.2.1-SNAPSHOT

org.jbpm.console.ng.gc.client.util
Class UTCTimeBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.jbpm.console.ng.gc.client.util.UTCTimeBox
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Long>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<Long>, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasValue<Long>, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 UTCTimeBoxImplHtml4 impl
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

impl

public UTCTimeBoxImplHtml4 impl
Constructor Detail

UTCTimeBox

public UTCTimeBox()
By default the predefined SHORT time format will be used.


UTCTimeBox

public UTCTimeBox(com.google.gwt.i18n.client.DateTimeFormat timeFormat)
Allows a UTCTimeBox to be created with a specified format.

Method Detail

addValueChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Long> handler)
Specified by:
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Long>

getValue

public Long getValue()
Specified by:
getValue in interface com.google.gwt.user.client.TakesValue<Long>
Specified by:
getValue in interface com.google.gwt.user.client.ui.HasValue<Long>

setValue

public void setValue(Long value)
Specified by:
setValue in interface com.google.gwt.user.client.TakesValue<Long>
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<Long>

setValue

public void setValue(Long value,
                     boolean fireEvents)
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<Long>

getText

public String getText()
Specified by:
getText in interface com.google.gwt.user.client.ui.HasText

setText

public void setText(String text)
Specified by:
setText in interface com.google.gwt.user.client.ui.HasText

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface com.google.gwt.user.client.ui.HasEnabled

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface com.google.gwt.user.client.ui.HasEnabled

setVisibleLength

public void setVisibleLength(int length)
The HTML5 implementation will ignore this.


setTabIndex

public void setTabIndex(int tabIndex)

validate

public void validate()
If this is a text based control, it will validate the value that has been typed.


getValueForNextHour

public static final Long getValueForNextHour()

jBPM Console NG - Generic Client 6.2.1-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.