echopoint.ui
Class AbstractDateFieldUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by nextapp.echoservlet.ui.TextComponentUI
          extended by nextapp.echoservlet.ui.TextFieldUI
              extended by echopoint.ui.TextFieldUI
                  extended by echopoint.ui.AbstractDateFieldUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ClientActionProducer, ClientInputProducer, ComponentPeer
Direct Known Subclasses:
DateFieldUI, TimeFieldUI

public abstract class AbstractDateFieldUI
extends TextFieldUI

AbstractDateFieldUI is a abstract base backend peer class for the components DateField and TimeField. It does most of the rendering calls out the implementation to provide key information.

See Also:
Serialized Form

Field Summary
static StaticText DATEFIELD_TIMEFIELD_SERVICE_SCRIPT
           
protected  ImageManager imageManager
           
 
Fields inherited from class echopoint.ui.TextFieldUI
toolTipHelper
 
Fields inherited from class nextapp.echoservlet.ui.TextFieldUI
SERVICE_TEXT_FIELD_SCRIPT
 
Fields inherited from class nextapp.echoservlet.ui.TextComponentUI
renderedActive
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
AbstractDateFieldUI()
           
 
Method Summary
protected  java.lang.String createJSFunction(java.lang.String function)
          Returns a script action with the given commandStr
protected abstract  java.lang.String generateCloseDropDownJavaScript(RenderingContext rc)
           
protected abstract  java.lang.String generateDropDownJavaScript(RenderingContext rc)
          Called to generate the JavaScipt called on the onmousedown event on the drop down button.
protected abstract  java.lang.String generateOnLoadScript(RenderingContext rc)
          Called to generate any document onLoad JavaScript.
protected  java.lang.String getDropDownButtonId()
          Returns the HTML id used for the drop down button
protected  ImageManager getImageManager()
          Returns the ImageManager for this ComponentPeer
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void registered()
          Called when the component is registered.
 void render(RenderingContext rc, Element parent)
          A method that should be overridden for the ComponentPeer to produce HTML output.
protected abstract  void renderDropDownElement(RenderingContext rc, Element parent)
          Called to render the drop down part of the component
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class echopoint.ui.TextFieldUI
generateOnBlurJavaScript, generateOnChangeJavaScript, getStyle, getTextField, getTextInput, register
 
Methods inherited from class nextapp.echoservlet.ui.TextFieldUI
clientAction
 
Methods inherited from class nextapp.echoservlet.ui.TextComponentUI
clientInput
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getChildren, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, getPeer, redraw, registerAncillaryServices, removeAncillaryService, setComponent, setId, setInstancePeer, unregisterAncillaryServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echoservlet.ClientInputProducer
getId
 

Field Detail

imageManager

protected ImageManager imageManager

DATEFIELD_TIMEFIELD_SERVICE_SCRIPT

public static final StaticText DATEFIELD_TIMEFIELD_SERVICE_SCRIPT
Constructor Detail

AbstractDateFieldUI

public AbstractDateFieldUI()
Method Detail

getImageManager

protected ImageManager getImageManager()
Returns the ImageManager for this ComponentPeer


createJSFunction

protected java.lang.String createJSFunction(java.lang.String function)
Returns a script action with the given commandStr


getDropDownButtonId

protected java.lang.String getDropDownButtonId()
Returns the HTML id used for the drop down button

Returns:
the htmlId of the button

render

public void render(RenderingContext rc,
                   Element parent)
Description copied from interface: ComponentPeer
A method that should be overridden for the ComponentPeer to produce HTML output.

Specified by:
render in interface ComponentPeer
Overrides:
render in class TextFieldUI
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.
See Also:
ComponentPeer.render(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.Element)

generateDropDownJavaScript

protected abstract java.lang.String generateDropDownJavaScript(RenderingContext rc)
Called to generate the JavaScipt called on the onmousedown event on the drop down button.

Parameters:
rc -

generateCloseDropDownJavaScript

protected abstract java.lang.String generateCloseDropDownJavaScript(RenderingContext rc)

renderDropDownElement

protected abstract void renderDropDownElement(RenderingContext rc,
                                              Element parent)
Called to render the drop down part of the component

Parameters:
rc - - the RenderingContext
parent - - the parent Element

generateOnLoadScript

protected abstract java.lang.String generateOnLoadScript(RenderingContext rc)
Called to generate any document onLoad JavaScript. If this method returns null then no onLoad functions will be added.

Parameters:
rc - - the RenderingContext
Returns:
the generated JS script

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class TextComponentUI
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

registered

public void registered()
Description copied from class: AbstractComponentPeer
Called when the component is registered. This method should be overridden if necessary.

Specified by:
registered in interface ComponentPeer
Overrides:
registered in class TextFieldUI
See Also:
TextFieldUI.registered()

unregistered

public void unregistered()
Description copied from class: AbstractComponentPeer
Called when the component is unregistered. This method should be overridden if necessary.

Specified by:
unregistered in interface ComponentPeer
Overrides:
unregistered in class TextFieldUI
See Also:
TextFieldUI.unregistered()