com.itmill.toolkit.terminal.gwt.client.ui
Class ITextualDate

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.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.FlowPanel
                      extended by com.itmill.toolkit.terminal.gwt.client.ui.IDateField
                          extended by com.itmill.toolkit.terminal.gwt.client.ui.ITextualDate
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, ContainerResizedListener, Focusable, Paintable, Field, Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
IPopupCalendar

public class ITextualDate
extends IDateField
implements Paintable, Field, com.google.gwt.user.client.ui.ChangeListener, ContainerResizedListener, Focusable


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  int fieldExtraWidth
           
 
Fields inherited from class com.itmill.toolkit.terminal.gwt.client.ui.IDateField
CLASSNAME, client, currentLocale, currentResolution, date, dts, enabled, id, immediate, readonly, RESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_MSEC, RESOLUTION_SEC, RESOLUTION_YEAR, showingDate
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ITextualDate()
           
 
Method Summary
protected  void buildDate()
           
 void focus()
          Sets focus to this widget.
protected  int getFieldExtraWidth()
          Returns pixels in x-axis reserved for other than textfield content.
protected  String getFormatString()
           
 void iLayout()
          This function is run when container box has been resized.
 void onChange(com.google.gwt.user.client.ui.Widget sender)
           
 void setWidth(String newWidth)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.itmill.toolkit.terminal.gwt.client.ui.IDateField
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDateTimeService, getId, getMilliseconds, getShowingDate, getShowingMilliseconds, isEnabled, isImmediate, isReadonly, onBrowserEvent, setCurrentDate, setCurrentLocale, setCurrentResolution, setMilliseconds, setShowingDate, setShowingMilliseconds
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, insert
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onDetach, removeFromParent
 
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldExtraWidth

protected int fieldExtraWidth
Constructor Detail

ITextualDate

public ITextualDate()
Method Detail

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable
Overrides:
updateFromUIDL in class IDateField

getFormatString

protected String getFormatString()

buildDate

protected void buildDate()

onChange

public void onChange(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onChange in interface com.google.gwt.user.client.ui.ChangeListener

setWidth

public void setWidth(String newWidth)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

getFieldExtraWidth

protected int getFieldExtraWidth()
Returns pixels in x-axis reserved for other than textfield content.

Returns:
extra width in pixels

iLayout

public void iLayout()
Description copied from interface: ContainerResizedListener
This function is run when container box has been resized. Object implementing ContainerResizedListener is responsible to call the same function on its ancestors that implement NeedsLayout in case their container has resized. runAnchestorsLayout(HasWidgets parent) function from Util class may be a good helper for this.

Specified by:
iLayout in interface ContainerResizedListener

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.

Specified by:
focus in interface Focusable


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.