|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent com.plumtree.uiinfrastructure.pagecontrols.datepicker.ADatePickerComponent com.plumtree.uiinfrastructure.pagecontrols.jsdatepicker.JSDatePicker com.plumtree.uiinfrastructure.pagecontrols.jsdatetimepicker.JSDateTimePicker
public class JSDateTimePicker
This class defines the JSDateTimePicker control.
Field Summary | |
---|---|
static java.lang.String |
STR_MVC_CLASS_NAME
|
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.jsdatepicker.JSDatePicker |
---|
m_oUSLocale, m_strDatePickerMgrID, STR_DP_DATE_INPUT_NAME |
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.datepicker.ADatePickerComponent |
---|
AM, EMPTY, H, OPTION_TEXT, OPTION_VALUE, PM |
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent |
---|
m_ptPageMgr |
Constructor Summary | |
---|---|
JSDateTimePicker()
Default empty constructor. |
Method Summary | |
---|---|
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
java.lang.String |
GetAMPM()
This method returns the AM/PM part of the time. |
java.lang.String |
GetAMPMInputName()
Provides a means of retrieving the HTML Input name for the AMPM portion of the date picker. |
HTMLElementCollection |
GetComponentHTML()
This method returns the date/time-picker HTML. |
static XPDateTime |
GetDateTime(XPHashtable _htRequestParameters,
java.lang.String _strDateInputName,
XPLocale _xpLocale,
XPTimeZone _xpTimeZone)
Return the XPDateTime for the specific date picker |
XPDateTime |
GetDateTimeAsDateTime()
This function returns an XPDateTime object that represents the date and time the user has chosen using the date/time-picker HTML control. |
java.lang.String |
GetDateTimeAsString()
This method returns the date and time as a String. |
java.lang.String |
GetHours()
This method returns the hours part of the time as a String. |
java.lang.String |
GetHoursInputName()
Provides a means of retrieving the HTML Input name for the hours portion of the date picker. |
java.lang.String |
GetMinutes()
This method returns the minutes part of the time as a String. |
java.lang.String |
GetMinutesInputName()
Provides a means of retrieving the HTML Input name for the minutes portion of the date picker. |
java.lang.String |
GetName()
Return the name of the MVC object. |
HTMLElementCollection |
GetSubComponentHTMLByIndex(int _nSubComponentIndex)
This method serves as a getter for "sub-component" HTML. |
java.lang.String |
GetTimeAsString()
This method returns just the time part of the String. |
void |
Init(java.lang.String _strFormName,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Initialize a new JSDateTimePicker. |
void |
Init(java.lang.String _strFormName,
java.lang.String _strDefaultDate,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Initialize a new JSDateTimePicker. |
void |
Init(java.lang.String _strFormName,
XPDateTime _dtDefaultDateTime,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Initialize a new JSDateTimePicker. |
int |
StoreUserInput(XPHashtable _htRequestParameters)
Stores the user input after the request is sent back. |
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.jsdatepicker.JSDatePicker |
---|
GetComponentHTML, GetComponentMgr, GetComponentMgrName, GetDateAsDateTime, GetDateInputName, GetPTDatepickerVarName, GetSelectedDateAsString, GetValidators, SetDatePickerMgrID, Validate |
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.datepicker.ADatePickerComponent |
---|
GetDateTime, SetBlankDate, SetDefaultDate |
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent |
---|
AppendUniqueIDToElementName, GetComponentHeadContent, GetComponentPostContent, GetComponentPreContent, GetComponentPreFormContent, GetPageMgr, GetUniqueInstanceID, Init |
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 |
---|
GetComponentMgr, GetComponentMgrName, GetUniqueInstanceID |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
Constructor Detail |
---|
public JSDateTimePicker()
Method Detail |
---|
public void Init(java.lang.String _strFormName, java.lang.String _strDefaultDate, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
Init
in class JSDatePicker
_strFormName
- The name of the form in which the datepicker resides_strDefaultDate
- The initial date selected_ptPageMgr
- The datepicker page manager for this instance of
the datepicker_strUniqueInstanceID
- The string that will be appended to
variables to make them uniquepublic void Init(java.lang.String _strFormName, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
Init
in class JSDatePicker
_strFormName
- The name of the form in which the datepicker resides_ptPageMgr
- The datepicker page manager for this instance of
the datepicker_strUniqueInstanceID
- The string that will be appended to
variables to make them uniquepublic void Init(java.lang.String _strFormName, XPDateTime _dtDefaultDateTime, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
Init
in class JSDatePicker
_strFormName
- The name of the form in which this component
resides._dtDefaultDateTime
- The default date-time._ptComponentMgr
- The component manager for this instance of the
date/time-picker._strUniqueInstanceID
- The unique ID for this instance of the
date/time-picker.public java.lang.String GetAMPM()
public java.lang.String GetAMPMInputName()
public HTMLElementCollection GetComponentHTML()
GetComponentHTML
in interface IPageControl
GetComponentHTML
in class JSDatePicker
public XPDateTime GetDateTimeAsDateTime()
GetDateTimeAsDateTime
in class ADatePickerComponent
public java.lang.String GetDateTimeAsString()
public java.lang.String GetHours()
public java.lang.String GetHoursInputName()
public java.lang.String GetMinutes()
public java.lang.String GetMinutesInputName()
public HTMLElementCollection GetSubComponentHTMLByIndex(int _nSubComponentIndex)
GetSubComponentHTMLByIndex
in class AComponent
_nSubComponentIndex
- The sub-component index
(N_SUB_COMPONENT_INDEX_DATE_PICKER or
N_SUB_COMPONENT_INDEX_TIME_PICKER).
public java.lang.String GetTimeAsString()
public int StoreUserInput(XPHashtable _htRequestParameters)
StoreUserInput
in interface IPageControl
StoreUserInput
in class JSDatePicker
_htRequestParameters
- The XPHashtable of request name/value pairs.public java.lang.Object Create()
Create
in interface IManagedObject
Create
in class JSDatePicker
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class JSDatePicker
public static XPDateTime GetDateTime(XPHashtable _htRequestParameters, java.lang.String _strDateInputName, XPLocale _xpLocale, XPTimeZone _xpTimeZone)
_htRequestParameters
- The XPHashtable of request name/value pairs._strDateInputName
- unique instance name for this control_xpLocale
- XPLocale for this control_xpTimeZone
- XPTimeZone for this control
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |