EchoPoint
1.0

echopoint.ui
Class AbstractDateFieldUI

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeer
      extended bynextapp.echoservlet.ui.TextComponentUI
          extended bynextapp.echoservlet.ui.TextFieldUI
              extended byechopoint.ui.TextFieldUI
                  extended byechopoint.ui.AbstractDateFieldUI
All Implemented Interfaces:
nextapp.echoservlet.ClientActionProducer, nextapp.echoservlet.ClientInputProducer, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
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.

Author:
Brad Baker
See Also:
Serialized Form

Field Summary
protected  nextapp.echoservlet.image.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
 
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 generateDropDownJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to generate the JavaScipt called on the onmousedown event on the drop down button.
protected abstract  java.lang.String generateJavaScriptObject(nextapp.echoservlet.RenderingContext rc)
          Called to generate the JavaScript object representation of the component
protected abstract  java.lang.String generateOnLoadScript(nextapp.echoservlet.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  nextapp.echoservlet.image.ImageManager getImageManager()
          Returns the ImageManager for this ComponentPeer
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void registered()
           
 void render(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent)
           
protected abstract  void renderDropDownElement(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent)
          Called to render the drop down part of the component
 void 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.ComponentPeer
addAncillaryService, generateId, getBackground, getChildCount, getChildren, getComponent, getFont, getForeground, getId, getInstancePeer, getParent, getPeer, redraw, removeAncillaryService
 
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 nextapp.echoservlet.image.ImageManager imageManager
Constructor Detail

AbstractDateFieldUI

public AbstractDateFieldUI()
Method Detail

getImageManager

protected nextapp.echoservlet.image.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(nextapp.echoservlet.RenderingContext rc,
                   nextapp.echoservlet.html.Element parent)
Overrides:
render in class TextFieldUI
See Also:
ComponentPeer.render(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.Element)

generateDropDownJavaScript

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

Parameters:
rc -

renderDropDownElement

protected abstract void renderDropDownElement(nextapp.echoservlet.RenderingContext rc,
                                              nextapp.echoservlet.html.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(nextapp.echoservlet.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

generateJavaScriptObject

protected abstract java.lang.String generateJavaScriptObject(nextapp.echoservlet.RenderingContext rc)
Called to generate the JavaScript object representation of the component

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

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

registered

public void registered()
Overrides:
registered in class TextFieldUI
See Also:
TextFieldUI.registered()

unregistered

public void unregistered()
Overrides:
unregistered in class TextFieldUI
See Also:
TextFieldUI.unregistered()

EchoPoint
1.0