com.plumtree.uiinfrastructure.pagecontrols.datepicker
Class ADatePickerComponent

java.lang.Object
  extended by com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
      extended by com.plumtree.uiinfrastructure.pagecontrols.datepicker.ADatePickerComponent
All Implemented Interfaces:
IManagedObject, IMVCObject, IPageControl
Direct Known Subclasses:
DatePicker, JSDatePicker

public abstract class ADatePickerComponent
extends AComponent
implements IPageControl

Abstract class extended by all DatePickers.

Author:
DorisL, CaiusV

Field Summary
static java.lang.String AM
          some other helpful static Strings
static java.lang.String EMPTY
           
static java.lang.String H
           
static int OPTION_TEXT
          Index constant for array of options: text to display on option
static int OPTION_VALUE
          Index constant for array of options: option value
static java.lang.String PM
           
 
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
m_ptPageMgr
 
Constructor Summary
ADatePickerComponent()
           
 
Method Summary
 XPDateTime GetDateAsDateTime()
           
abstract  java.lang.String GetDateInputName()
           
static XPDateTime GetDateTime(XPHashtable _htRequestParameters, java.lang.String _strUniqueInstanceID, XPLocale _xpLocale, XPTimeZone _xpTimeZone, boolean _bDoValidation, AccessStyles _asAccessStyle)
          Return the XPDateTime for the specific data picker
 XPDateTime GetDateTimeAsDateTime()
           
abstract  java.lang.String GetPTDatepickerVarName()
           
abstract  java.lang.String GetSelectedDateAsString()
           
abstract  void Init(java.lang.String _strFormName, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
          Initialize a new DatePicker with the preset date empty.
abstract  void Init(java.lang.String _strFormName, XPDateTime _dtDefaultDateTime, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
          Initialize a new DatePicker with the preset date set.
 void SetBlankDate()
           
 void SetDefaultDate(int _nMonth, int _nDay, int _nYear)
           
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
AppendUniqueIDToElementName, Create, GetComponentHeadContent, GetComponentHTML, GetComponentPostContent, GetComponentPreContent, GetComponentPreFormContent, GetName, GetPageMgr, GetSubComponentHTMLByIndex, GetUniqueInstanceID, GetValidators, Init, StoreUserInput, Validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IPageControl
GetComponentHTML, GetComponentMgr, GetComponentMgrName, GetUniqueInstanceID, StoreUserInput
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IMVCObject
GetName
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IManagedObject
Create
 

Field Detail

OPTION_VALUE

public static final int OPTION_VALUE
Index constant for array of options: option value

See Also:
Constant Field Values

OPTION_TEXT

public static final int OPTION_TEXT
Index constant for array of options: text to display on option

See Also:
Constant Field Values

AM

public static final java.lang.String AM
some other helpful static Strings

See Also:
Constant Field Values

PM

public static final java.lang.String PM
See Also:
Constant Field Values

H

public static final java.lang.String H
See Also:
Constant Field Values

EMPTY

public static final java.lang.String EMPTY
See Also:
Constant Field Values
Constructor Detail

ADatePickerComponent

public ADatePickerComponent()
Method Detail

GetDateAsDateTime

public XPDateTime GetDateAsDateTime()

SetBlankDate

public void SetBlankDate()

SetDefaultDate

public void SetDefaultDate(int _nMonth,
                           int _nDay,
                           int _nYear)

GetSelectedDateAsString

public abstract java.lang.String GetSelectedDateAsString()

GetDateInputName

public abstract java.lang.String GetDateInputName()

GetPTDatepickerVarName

public abstract java.lang.String GetPTDatepickerVarName()

GetDateTimeAsDateTime

public XPDateTime GetDateTimeAsDateTime()

Init

public abstract void Init(java.lang.String _strFormName,
                          PageMgr _ptPageMgr,
                          java.lang.String _strUniqueInstanceID)
Initialize a new DatePicker with the preset date empty.

Parameters:
_strFormName - Name of the form where this DatePicker appears
_ptPageMgr - the PageMgr responsible for this control
_strUniqueInstanceID - unique id for this instance

Init

public abstract void Init(java.lang.String _strFormName,
                          XPDateTime _dtDefaultDateTime,
                          PageMgr _ptPageMgr,
                          java.lang.String _strUniqueInstanceID)
Initialize a new DatePicker with the preset date set.

Parameters:
_strFormName - Name of the form where this DatePicker appears
_dtDefaultDateTime - the preset datetime
_ptPageMgr - the PageMgr responsible for this control
_strUniqueInstanceID - unique id for this instance

GetDateTime

public static XPDateTime GetDateTime(XPHashtable _htRequestParameters,
                                     java.lang.String _strUniqueInstanceID,
                                     XPLocale _xpLocale,
                                     XPTimeZone _xpTimeZone,
                                     boolean _bDoValidation,
                                     AccessStyles _asAccessStyle)
Return the XPDateTime for the specific data picker

Parameters:
_htRequestParameters - name/value pairs in the request
_strUniqueInstanceID - unique id for this control
_xpLocale - Locale for this control
_xpTimeZone - TimeZone for this control
boolean - _bDoValidation , set to true if date must be set (pulldowns cannot be empty)
AccessStyles - _asAccessStyle, the page's mode
Returns:
XPDateTime



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