com.plumtree.uiinfrastructure.pagecontrols.datepicker
Class ADatePickerComponent
java.lang.Object
com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
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
|
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.IMVCObject |
GetName |
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
ADatePickerComponent
public ADatePickerComponent()
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 controlboolean
- _bDoValidation , set to true if date must be set (pulldowns cannot be empty)AccessStyles
- _asAccessStyle, the page's mode
- Returns:
- XPDateTime