EchoPoint
1.0

echopoint.ui
Class TimeFieldUI

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
                      extended byechopoint.ui.TimeFieldUI
All Implemented Interfaces:
nextapp.echoservlet.ClientActionProducer, nextapp.echoservlet.ClientInputProducer, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class TimeFieldUI
extends AbstractDateFieldUI

TimeFieldUI is the backend peer class for the component TimeField.

Author:
Brad Baker
See Also:
Serialized Form

Field Summary
static nextapp.echoservlet.Service TIMEFIELD_SERVICE_SCRIPT
           
 
Fields inherited from class echopoint.ui.AbstractDateFieldUI
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
TimeFieldUI()
           
 
Method Summary
 void clientInput(java.lang.String input)
          Called when the client state has to be saved.
protected  java.lang.String generateDropDownJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to generate the JavaScipt called on the onmousedown event on the drop down button.
protected  java.lang.String generateJavaScriptObject(nextapp.echoservlet.RenderingContext rc)
          Called to generate the JavaScript object representation of the component
protected  java.lang.String generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to return the onblur script that saves the state of the TextField and also performs client side validation.
protected  java.lang.String generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to return the onchange script that saves the state of the TextField and also performs client side validation.
protected  java.lang.String generateOnLoadScript(nextapp.echoservlet.RenderingContext rc)
          Called to generate any document onLoad JavaScript.
static void register()
          Registers the Component with its peer bindings
 void render(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent)
          Renders the Component
protected  void renderDropDownElement(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent)
          Called to render the drop down part of the component
 
Methods inherited from class echopoint.ui.AbstractDateFieldUI
createJSFunction, getDropDownButtonId, getImageManager, propertyChange, registered, unregistered
 
Methods inherited from class echopoint.ui.TextFieldUI
getStyle, getTextField, getTextInput
 
Methods inherited from class nextapp.echoservlet.ui.TextFieldUI
clientAction
 
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

TIMEFIELD_SERVICE_SCRIPT

public static final nextapp.echoservlet.Service TIMEFIELD_SERVICE_SCRIPT
Constructor Detail

TimeFieldUI

public TimeFieldUI()
Method Detail

clientInput

public void clientInput(java.lang.String input)
Called when the client state has to be saved. Its in the form text | expanded

See Also:
ClientInputProducer

register

public static void register()
Registers the Component with its peer bindings


renderDropDownElement

protected void renderDropDownElement(nextapp.echoservlet.RenderingContext rc,
                                     nextapp.echoservlet.html.Element parent)
Description copied from class: AbstractDateFieldUI
Called to render the drop down part of the component

Specified by:
renderDropDownElement in class AbstractDateFieldUI
Parameters:
rc - - the RenderingContext
parent - - the parent Element
See Also:
AbstractDateFieldUI.renderDropDownElement(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.Element)

generateOnBlurJavaScript

protected java.lang.String generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext rc)
Description copied from class: TextFieldUI
Called to return the onblur script that saves the state of the TextField and also performs client side validation. It returns a script that ends in a semi colon, ready for chaining with other scripts.

Overrides:
generateOnBlurJavaScript in class TextFieldUI
Parameters:
rc - - The rendering
Returns:
the generated on blur script
See Also:
TextFieldUI.generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext)

generateOnChangeJavaScript

protected java.lang.String generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext rc)
Description copied from class: TextFieldUI
Called to return the onchange script that saves the state of the TextField and also performs client side validation. It returns a script that ends in a semi colon, ready for chaining with other scripts.

Overrides:
generateOnChangeJavaScript in class TextFieldUI
Parameters:
rc - - The rendering
Returns:
the generated onchange script
See Also:
TextFieldUI.generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext)

generateOnLoadScript

protected java.lang.String generateOnLoadScript(nextapp.echoservlet.RenderingContext rc)
Description copied from class: AbstractDateFieldUI
Called to generate any document onLoad JavaScript. If this method returns null then no onLoad functions will be added.

Specified by:
generateOnLoadScript in class AbstractDateFieldUI
Parameters:
rc - - the RenderingContext
Returns:
the generated JS script
See Also:
AbstractDateFieldUI.generateOnLoadScript(nextapp.echoservlet.RenderingContext)

generateJavaScriptObject

protected java.lang.String generateJavaScriptObject(nextapp.echoservlet.RenderingContext rc)
Description copied from class: AbstractDateFieldUI
Called to generate the JavaScript object representation of the component

Specified by:
generateJavaScriptObject in class AbstractDateFieldUI
Parameters:
rc - - the RenderingContext
Returns:
the generated JS script
See Also:
AbstractDateFieldUI.generateJavaScriptObject(nextapp.echoservlet.RenderingContext)

generateDropDownJavaScript

protected java.lang.String generateDropDownJavaScript(nextapp.echoservlet.RenderingContext rc)
Description copied from class: AbstractDateFieldUI
Called to generate the JavaScipt called on the onmousedown event on the drop down button.

Specified by:
generateDropDownJavaScript in class AbstractDateFieldUI
Parameters:
rc -
See Also:
AbstractDateFieldUI.generateDropDownJavaScript(nextapp.echoservlet.RenderingContext)

render

public void render(nextapp.echoservlet.RenderingContext rc,
                   nextapp.echoservlet.html.Element parent)
Renders the Component

Overrides:
render in class AbstractDateFieldUI
See Also:
ComponentPeer.render(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.Element)

EchoPoint
1.0