com.plumtree.uiinfrastructure.pagecontrols.jsdatepicker
Class JSDatePickerMgr

java.lang.Object
  extended by com.plumtree.uiinfrastructure.pagecontrols.framework.ComponentMgr
      extended by com.plumtree.uiinfrastructure.pagecontrols.framework.JSComponentMgr
          extended by com.plumtree.uiinfrastructure.pagecontrols.jsdatepicker.JSDatePickerMgr
Direct Known Subclasses:
JSDateTimePickerMgr

public class JSDatePickerMgr
extends JSComponentMgr

This is the component manager class for the JS date-picker. Note: there is also JS date/time-picker if you need date and time input.

Author:
JohnO

Field Summary
static java.lang.String STR_JS_COMPONENT_NAME
          The name for JS controls of this type.
 
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.JSComponentMgr
STR_CLASS_NAME
 
Constructor Summary
JSDatePickerMgr(JSRegistry _ptJSRegistry, IJSComponentVersionMgr _ptJSCompVerMgr, PageMgr _ptPageMgr)
          Creates a new JSDatePickerMgr object.
 
Method Summary
 HTMLElementCollection GetPagePreFormContent()
          This method returns the HTML that needs to be written-out before the JS datepicker form is written out.
 HTMLElementCollection GetPagePreFormContent(java.lang.String strDatePickerMgrID)
          This method returns the HTML that needs to be written-out before the JS datepicker form is written out.
 java.lang.String GetPreFormDivID()
          Get the ID of the preform DIV element used by datepickers managed by this object.
 void RegisterComponent(IPageControl _ptComponent)
          This method allows you to register a component with the component manager.
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.JSComponentMgr
GetJSControlName, GetJSIncludes, GetVersionIDAsInt, GetVersionIDAsString
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.ComponentMgr
AddToValidationFunction, GetAllHeadContent, GetAllPostContent, GetAllPreContent, GetAllPreFormContent, GetComponent, GetComponent, GetComponentHeadContent, GetComponentHeadContent, GetComponentHTML, GetComponentHTML, GetComponentPostContent, GetComponentPostContent, GetComponentPreContent, GetComponentPreContent, GetComponentPreFormContent, GetComponentPreFormContent, GetJSValidationCode, GetNumComponents, GetPageHeadContent, GetPageMgr, GetPagePostContent, GetPagePreContent, StoreAllUserInput, StoreUserInput, StoreUserInput, UnRegisterComponent, Validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_JS_COMPONENT_NAME

public static final java.lang.String STR_JS_COMPONENT_NAME
The name for JS controls of this type.

See Also:
Constant Field Values
Constructor Detail

JSDatePickerMgr

public JSDatePickerMgr(JSRegistry _ptJSRegistry,
                       IJSComponentVersionMgr _ptJSCompVerMgr,
                       PageMgr _ptPageMgr)
Creates a new JSDatePickerMgr object.

Parameters:
_ptJSRegistry - The JS Registry is needed to get the JS includes
_ptJSCompVerMgr - The component version manager interface allows us to the version of this control that is registered with the product as a whole
_ptPageMgr - The locale that should be used by the datepickers under the control of this manager
Method Detail

GetPagePreFormContent

public HTMLElementCollection GetPagePreFormContent()
This method returns the HTML that needs to be written-out before the JS datepicker form is written out. Specifically, this is HTML that defines a div. Note that this HTML is of page scope, meaning that it only needs to be written out one time even if there are multiple date-pickers on the page.

Overrides:
GetPagePreFormContent in class ComponentMgr
Returns:
The pre-form HTML for this

GetPagePreFormContent

public HTMLElementCollection GetPagePreFormContent(java.lang.String strDatePickerMgrID)
This method returns the HTML that needs to be written-out before the JS datepicker form is written out. Specifically, this is HTML that defines a div. Note that this HTML is of page scope, meaning that it only needs to be written out one time even if there are multiple date-pickers on the page.

Parameters:
strDatePickerMgrID - Unique ID for datepickers managed by this object. Use this method when there might be several datepick managers on a page, e.g. MyPage.
Returns:
The pre-form HTML for this

RegisterComponent

public void RegisterComponent(IPageControl _ptComponent)
This method allows you to register a component with the component manager. The order in which you register components is the order in which calls will be made when doing any looping operation--storing or printing. If you attempt to re-register the same component, it will overwrite the one that existed there before.

Overrides:
RegisterComponent in class ComponentMgr
Parameters:
_ptComponent - The component that you wish to register.

GetPreFormDivID

public java.lang.String GetPreFormDivID()
Get the ID of the preform DIV element used by datepickers managed by this object.

Returns:



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.