echopoint.ui
Class ClientDatePickerUI

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

public class ClientDatePickerUI
extends TextFieldUI

Renders the Calendar. The key outputs are:

See Also:
Serialized Form

Field Summary
static StaticText SERVICE_CALENDAR_SCRIPT
          Calendar JavaScript Service
static StaticText SERVICE_CALENDAR_UTIL_SCRIPT
           
 
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
ClientDatePickerUI()
           
 
Method Summary
protected  void buildTriggerControl(RenderingContext rc, Element parent, ClientDatePicker dp)
          Creates the trigger control that will show the Calendar.
protected  ClientDatePicker getDatePicker()
          Convenience method to get the Calendar
protected  ImageManager getImageManager()
          Icon management, JIT loaded
static void register()
           
 void registered()
          Called when the component is registered.
 void render(RenderingContext rc, Element parent)
          Renders the Calendar.
protected  void renderTriggerContent(RenderingContext rc, Element trigger, ClientDatePicker dp)
          Renders the internal content of the trigger element
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class echopoint.ui.TextFieldUI
generateOnBlurJavaScript, generateOnChangeJavaScript, getStyle, getTextField, getTextInput
 
Methods inherited from class nextapp.echoservlet.ui.TextFieldUI
clientAction
 
Methods inherited from class nextapp.echoservlet.ui.TextComponentUI
clientInput, propertyChange
 
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

SERVICE_CALENDAR_SCRIPT

public static final StaticText SERVICE_CALENDAR_SCRIPT
Calendar JavaScript Service


SERVICE_CALENDAR_UTIL_SCRIPT

public static final StaticText SERVICE_CALENDAR_UTIL_SCRIPT
Constructor Detail

ClientDatePickerUI

public ClientDatePickerUI()
Method Detail

render

public void render(RenderingContext rc,
                   Element parent)
Renders the Calendar. The key outputs are: - Style Function: JavaScript function dynamically built which returns the full css style tag for the calendar - Calendar Return Function: JS Hook into the date select event of the calendar in which the binding of the selected date to Echo and to the input text box is defined. - Calendar DIV (Only when OpenInNewWindow = false): div sent to Calendar JS Constructor to use as a container - Calendar Anchor: User customizable icon/message which shows the calendar

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(RenderingContext, Element)

buildTriggerControl

protected void buildTriggerControl(RenderingContext rc,
                                   Element parent,
                                   ClientDatePicker dp)
Creates the trigger control that will show the Calendar.


renderTriggerContent

protected void renderTriggerContent(RenderingContext rc,
                                    Element trigger,
                                    ClientDatePicker dp)
Renders the internal content of the trigger element


getImageManager

protected ImageManager getImageManager()
Icon management, JIT loaded


getDatePicker

protected ClientDatePicker getDatePicker()
Convenience method to get the Calendar


register

public static void register()

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:
EchoPointComponentPeer.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:
TextComponentUI.unregistered()