jBPM Console NG - Generic Client 6.2.0.CR3

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

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.UTCTimeBoxImplShared
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.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, UTCTimeBoxImpl
Direct Known Subclasses:
UTCTimeBoxImplHtml4, UTCTimeBoxImplHtml5

public abstract class UTCTimeBoxImplShared
extends com.google.gwt.user.client.ui.Composite
implements UTCTimeBoxImpl


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
protected static String[] fallbackFormatStrings
           
protected static com.google.gwt.i18n.client.DateTimeFormat[] fallbackTimeFormats
           
protected  com.google.gwt.i18n.client.DateTimeFormat timeFormat
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
UTCTimeBoxImplShared()
           
 
Method Summary
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)
           
 
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 org.jbpm.console.ng.gc.client.util.UTCTimeBoxImpl
setTabIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.user.client.ui.HasValue
getValue, setValue
 
Methods inherited from interface com.google.gwt.event.logical.shared.HasValueChangeHandlers
addValueChangeHandler
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.google.gwt.user.client.ui.HasText
getText, setText
 

Field Detail

fallbackTimeFormats

protected static com.google.gwt.i18n.client.DateTimeFormat[] fallbackTimeFormats

fallbackFormatStrings

protected static String[] fallbackFormatStrings

timeFormat

protected com.google.gwt.i18n.client.DateTimeFormat timeFormat
Constructor Detail

UTCTimeBoxImplShared

public UTCTimeBoxImplShared()
Method Detail

setTimeFormat

public void setTimeFormat(com.google.gwt.i18n.client.DateTimeFormat timeFormat)
Sets the DateTimeFormat for this UTCTimeBox. The HTML5 implementation will ignore this.

Specified by:
setTimeFormat in interface UTCTimeBoxImpl

setVisibleLength

public void setVisibleLength(int length)
Sets the visible length of the time input. The HTML5 implementation will ignore this.

Specified by:
setVisibleLength in interface UTCTimeBoxImpl

validate

public void validate()
Validates the value that has been typed into the text input. The HTML5 implementation will do nothing.

Specified by:
validate in interface UTCTimeBoxImpl

setValue

public final void setValue(Long value)
Sets the time value (as milliseconds since midnight independent of time zone)

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>

value2text

protected final String value2text(Long value)

text2value

protected final Long text2value(String text)

formatUsingFormat

protected static final String formatUsingFormat(Long value,
                                                com.google.gwt.i18n.client.DateTimeFormat fmt)
Formats the value provided with the specified DateTimeFormat


parseUsingFallbacksWithColon

protected static final 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.


parseUsingFormat

protected static final Long parseUsingFormat(String text,
                                             com.google.gwt.i18n.client.DateTimeFormat fmt)

parseUsingFallbacks

protected static final Long parseUsingFallbacks(String text,
                                                com.google.gwt.i18n.client.DateTimeFormat primaryTimeFormat)

normalizeInLocalRange

protected static long normalizeInLocalRange(long time)

jBPM Console NG - Generic Client 6.2.0.CR3

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