echopoint.ui
Class TimeFieldUI

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

public class TimeFieldUI
extends AbstractDateFieldUI

TimeFieldUI is the backend peer class for the component TimeField.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class echopoint.ui.AbstractDateFieldUI
DATEFIELD_TIMEFIELD_SERVICE_SCRIPT, 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
TimeFieldUI()
           
 
Method Summary
 void clientAction(java.lang.String command)
          Called when the user causes an action from the client.
 void clientInput(java.lang.String input)
          Called when the client state has to be saved.
protected  java.lang.String generateCloseDropDownJavaScript(RenderingContext rc)
           
protected  java.lang.String generateDropDownJavaScript(RenderingContext rc)
          Called to generate the JavaScipt called on the onmousedown event on the drop down button.
protected  java.lang.String generateOnBlurJavaScript(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(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(RenderingContext rc)
          Called to generate any document onLoad JavaScript.
protected  java.lang.String generateOnMouseOutJavaScript(RenderingContext rc)
           
protected  java.lang.String generateOnMouseOverJavaScript(RenderingContext rc)
           
static java.lang.String getInitializeScript(Connection connection, InstancePeer instancePeer, java.util.List dateFields, java.util.List peers)
           
static void register()
          Registers the Component with its peer bindings
 void render(RenderingContext rc, Element parent)
          Renders the Component
protected  void renderDropDownElement(RenderingContext rc, 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.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
 

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

Specified by:
clientInput in interface ClientInputProducer
Overrides:
clientInput in class TextComponentUI
Parameters:
input - The data in the hidden input field in the controller form as last known.
See Also:
ClientInputProducer

clientAction

public void clientAction(java.lang.String command)
Description copied from interface: ClientActionProducer
Called when the user causes an action from the client.

Specified by:
clientAction in interface ClientActionProducer
Overrides:
clientAction in class TextFieldUI
Parameters:
command - The action command generated by the client.
See Also:
ClientActionProducer.clientAction(String)

register

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


renderDropDownElement

protected void renderDropDownElement(RenderingContext rc,
                                     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(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(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(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)

generateDropDownJavaScript

protected java.lang.String generateDropDownJavaScript(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
See Also:
AbstractDateFieldUI.generateDropDownJavaScript(nextapp.echoservlet.RenderingContext)

generateCloseDropDownJavaScript

protected java.lang.String generateCloseDropDownJavaScript(RenderingContext rc)
Specified by:
generateCloseDropDownJavaScript in class AbstractDateFieldUI

render

public void render(RenderingContext rc,
                   Element parent)
Renders the Component

Specified by:
render in interface ComponentPeer
Overrides:
render in class AbstractDateFieldUI
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)

getInitializeScript

public static java.lang.String getInitializeScript(Connection connection,
                                                   InstancePeer instancePeer,
                                                   java.util.List dateFields,
                                                   java.util.List peers)

generateOnMouseOutJavaScript

protected java.lang.String generateOnMouseOutJavaScript(RenderingContext rc)

generateOnMouseOverJavaScript

protected java.lang.String generateOnMouseOverJavaScript(RenderingContext rc)