|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
com.plumtree.uiinfrastructure.pagecontrols.timepicker.ATimePicker
com.plumtree.uiinfrastructure.pagecontrols.timepicker.TimePicker
public class TimePicker
| Field Summary | |
|---|---|
static java.lang.String |
AM
some helpful static Strings |
static java.lang.String |
DOUBLE0
|
static java.lang.String |
EMPTY
|
static java.lang.String |
H
|
static java.lang.String |
HTMLSELECT_AMPM
The constant part of the name for the AM/PM select list that will optionally be returned by the date picker. |
static java.lang.String |
HTMLSELECT_HOURS
The constant part of the name for the hours select list that will be returned by the time-picker. |
static java.lang.String |
HTMLSELECT_MINUTES
The constant part of the name for the minutes select list that will be returned by the time picker. |
static java.lang.String |
PM
|
static java.lang.String |
STR_MVC_CLASS_NAME
|
static java.lang.String |
TWELVE
|
| Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent |
|---|
m_ptPageMgr |
| Constructor Summary | |
|---|---|
TimePicker()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
java.lang.String |
GetAMPM()
Returns the AMPM string |
java.lang.String |
GetAMPMInputName()
Provides a means of retrieving the HTML Input name for the AMPM portion of the date picker. |
HTMLElementCollection |
GetComponentHTML()
Returns the time picker HTML, which consists of either 2 or three select lists, depending on whether AMPM notation is used in the locale |
ComponentMgr |
GetComponentMgr(PageMgr _ptPageMgr)
Return a new ComponentMgr of the type that manages this class (a JSDateTimePickerMgr). |
java.lang.String |
GetComponentMgrName()
Return the name of the component manager responsible for this page control |
java.lang.String |
GetHours()
Returns the hours 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()
Returns the minutes 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. |
java.lang.String |
GetTimeAsEnglishString()
Returns the time in the format format: "h:mm:ss a" the default US en time format. |
java.lang.String |
GetTimeAsString()
Returns the time portion of the date and time chosen by the user as a String. |
XPArrayList |
GetValidators()
Currently validation on the date/time picker page controls is not implemented. |
void |
Init(int _nHours,
int _nMinutes,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Initialize a new TimePicker object. |
void |
Init(int _nHours,
int _nMinutes,
java.lang.String _strAMPM,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Creates a new TimePicker object. |
void |
Init(PageMgr _ptPageMgr,
java.lang.String _strTime,
java.lang.String _strUniqueInstanceID)
Creates a new TimePicker object based on a complete time string in XPDateFormat.MEDIUM format using the given time as the preset value. |
int |
StoreUserInput(XPHashtable _htRequestParameters)
Saves the items selected by the user into member variables |
static java.lang.String |
TransformTimeToNewLocale(java.lang.String _sTimeAsString,
XPLocale _lCurrentLocale,
XPLocale _lNewLocale,
XPTimeZone _tzCurrentTimeZone)
Transforms a time from one format to another based on the Locale. |
XPArrayList |
Validate()
Currently validation on the date/time picker page controls is not implemented. |
| Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent |
|---|
AppendUniqueIDToElementName, GetComponentHeadContent, GetComponentPostContent, GetComponentPreContent, GetComponentPreFormContent, GetPageMgr, GetSubComponentHTMLByIndex, 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 |
|---|
GetUniqueInstanceID |
| Field Detail |
|---|
public static final java.lang.String AM
public static final java.lang.String PM
public static final java.lang.String H
public static final java.lang.String EMPTY
public static final java.lang.String DOUBLE0
public static final java.lang.String TWELVE
public static final java.lang.String HTMLSELECT_HOURS
public static final java.lang.String HTMLSELECT_MINUTES
public static final java.lang.String HTMLSELECT_AMPM
public static java.lang.String STR_MVC_CLASS_NAME
| Constructor Detail |
|---|
public TimePicker()
| Method Detail |
|---|
public void Init(PageMgr _ptPageMgr,
java.lang.String _strTime,
java.lang.String _strUniqueInstanceID)
Init in class ATimePicker_ptPageMgr - - The page manager_strTime - - The time string to parse_strUniqueInstanceID - - The unique identifying string to
distinguish multiple time pickers on the page
public void Init(int _nHours,
int _nMinutes,
java.lang.String _strAMPM,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Init in class ATimePicker_nHours - The hours value to initially select_nMinutes - The minutes value to initially select_strAMPM - The AM/PM string to initially select_ptComponentMgr - The component manager_strUniqueInstanceID - The unique identifier string used to
distinguish multiple copies of this component on the same page
public void Init(int _nHours,
int _nMinutes,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Init in class ATimePicker_nHours - The hours value to initially select_nMinutes - The minutes value to initially select_ptPageMgr - The page manager_strUniqueInstanceID - The unique identifier string used to
distinguish multiple copies of this component on the same pagepublic java.lang.String GetAMPM()
GetAMPM in class ATimePickerpublic java.lang.String GetAMPMInputName()
GetAMPMInputName in class ATimePickerpublic HTMLElementCollection GetComponentHTML()
GetComponentHTML in interface IPageControlGetComponentHTML in class AComponentpublic java.lang.String GetHours()
GetHours in class ATimePickerpublic java.lang.String GetHoursInputName()
GetHoursInputName in class ATimePickerpublic java.lang.String GetMinutes()
GetMinutes in class ATimePickerpublic java.lang.String GetMinutesInputName()
GetMinutesInputName in class ATimePickerpublic java.lang.String GetTimeAsString()
GetTimeAsString in class ATimePickerpublic java.lang.String GetTimeAsEnglishString()
GetTimeAsEnglishString in class ATimePicker
public static java.lang.String TransformTimeToNewLocale(java.lang.String _sTimeAsString,
XPLocale _lCurrentLocale,
XPLocale _lNewLocale,
XPTimeZone _tzCurrentTimeZone)
_sTimeAsString - _lCurrentLocale - _lNewLocale -
public int StoreUserInput(XPHashtable _htRequestParameters)
StoreUserInput in interface IPageControlStoreUserInput in class AComponent_htRequestParameters - - A hashtable containing the contents of the
HTML form the user has submitted
public java.lang.Object Create()
Create in interface IManagedObjectCreate in class AComponentpublic java.lang.String GetName()
GetName in interface IMVCObjectGetName in class AComponentpublic ComponentMgr GetComponentMgr(PageMgr _ptPageMgr)
GetComponentMgr in interface IPageControl_ptPageMgr - this PageMgr
public java.lang.String GetComponentMgrName()
GetComponentMgrName in interface IPageControlpublic XPArrayList Validate()
Validate in class AComponentpublic XPArrayList GetValidators()
GetValidators in class AComponent
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||