|
|||||||||
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.datepicker.DatePicker
public class DatePicker
Page Control for HTML Date Picker.
Field Summary | |
---|---|
static int |
BLANK
Constant for Month Names |
static java.lang.String |
DAY_DROP_DOWN
String constant for day select drop down component |
static java.lang.String |
DELIMETERS
Delimeters in the date pattern |
protected java.lang.String |
m_strDay
|
protected java.lang.String |
m_strMonth
Variables to save the month, day, and year |
protected java.lang.String |
m_strYear
|
static int |
MAX_DAY
|
static int |
MIN_DAY
|
static int |
MIN_YEAR
String constant for min year, max year, min num of days, max num of days |
static java.lang.String |
MONTH_DROP_DOWN
String constant for month select drop down component |
static int |
NUM_OF_MONTHS
|
static int |
NUM_OF_YEARS
|
static java.lang.String |
REG_EXP_DELEMETERS
Reg. |
static java.lang.String |
STR_BLANK
Constant String for BLANK |
static java.lang.String |
STR_COMP_BASE_NAME
component's base name |
static java.lang.String |
STR_MVC_CLASS_NAME
mvc class name for datepicker component |
static java.lang.String |
YEAR_DROP_DOWN
String constant for year select drop down component |
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 | |
---|---|
DatePicker()
Creates a new DatePicker for 508 mode |
Method Summary | |
---|---|
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
HTMLElementCollection |
GetComponentHTML()
Returns the HTML for this component. |
ComponentMgr |
GetComponentMgr(PageMgr _ptPageMgr)
Return a ComponentMgr of the type responsisble for this PageControl. |
java.lang.String |
GetComponentMgrName()
Return the name of the component manager responsible for this page control |
XPDateTime |
GetDateAsDateTime()
This function returns an XPDateTime object that represents the date and the user has chosen using the HTMLDatePicker. |
java.lang.String |
GetDateInputName()
Returns the name of the date input. |
protected java.lang.String |
GetHTMLComponentBaseName()
Returns the base name of this HTML OpenComponent. |
java.lang.String |
GetName()
Return the name of the MVC object. |
java.lang.String |
GetPTDatepickerVarName()
Returns the name of the PTDatepicker JavaScript variable name. |
java.lang.String |
GetSelectedDateAsString()
Returns the date as a String in the pattern format specified by the locale, null values in memeber variables, m_strYear, m_strMonth, or m_strDay indicate an invalid date so return the default, and empty String. |
XPArrayList |
GetValidators()
Currently validation on the date/time picker page controls is not implemented. |
void |
Init(java.lang.String _strFormName,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
initializes a new HTMLDatePicker object with the month, day and year blank |
void |
Init(java.lang.String _strFormName,
XPDateTime _xpDateTime,
PageMgr _ptPageMgr,
java.lang.String _strUniqueInstanceID)
Initializes a new DatePicker Page Control with the given datetime as the preset value. |
void |
SetBlankDate()
Sets the month, day, and year of drop down menus to blank |
int |
StoreUserInput(XPHashtable _htRequestParameters)
Store the new value of this HTML component. |
XPArrayList |
Validate()
Currently validation on the date/time picker page controls is not implemented. |
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.datepicker.ADatePickerComponent |
---|
GetDateTime, GetDateTimeAsDateTime, SetDefaultDate |
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 MONTH_DROP_DOWN
public static final java.lang.String DAY_DROP_DOWN
public static final java.lang.String YEAR_DROP_DOWN
public static final int MIN_YEAR
public static final int NUM_OF_YEARS
public static final int MIN_DAY
public static final int MAX_DAY
public static final int NUM_OF_MONTHS
public static final int BLANK
public static final java.lang.String STR_BLANK
public static final java.lang.String DELIMETERS
public static final java.lang.String REG_EXP_DELEMETERS
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String STR_COMP_BASE_NAME
protected java.lang.String m_strMonth
protected java.lang.String m_strDay
protected java.lang.String m_strYear
Constructor Detail |
---|
public DatePicker()
Method Detail |
---|
public void Init(java.lang.String _strFormName, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
Init
in class ADatePickerComponent
_strFormName
- Name of the form where this DatePicker appears_ptPageMgr
- the PageMgr responsible for this control_strUniqueInstanceID
- unique id for this instancepublic void Init(java.lang.String _strFormName, XPDateTime _xpDateTime, PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID)
Init
in class ADatePickerComponent
_strFormName
- Name of the form where this DatePicker appears_xpDateTime
- Preset DateTime_ptPageMgr
- the PageMgr responsible for this control_strUniqueInstanceID
- unique id for this instancepublic void SetBlankDate()
SetBlankDate
in class ADatePickerComponent
protected java.lang.String GetHTMLComponentBaseName()
public java.lang.String GetSelectedDateAsString()
GetSelectedDateAsString
in class ADatePickerComponent
public XPDateTime GetDateAsDateTime()
GetDateAsDateTime
in class ADatePickerComponent
public HTMLElementCollection GetComponentHTML()
GetComponentHTML
in interface IPageControl
GetComponentHTML
in class AComponent
public int StoreUserInput(XPHashtable _htRequestParameters)
StoreUserInput
in interface IPageControl
StoreUserInput
in class AComponent
_htRequestParameters
- name/value pairs for the request
public java.lang.Object Create()
Create
in interface IManagedObject
Create
in class AComponent
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class AComponent
public java.lang.String GetPTDatepickerVarName()
GetPTDatepickerVarName
in class ADatePickerComponent
public java.lang.String GetDateInputName()
GetDateInputName
in class ADatePickerComponent
public ComponentMgr GetComponentMgr(PageMgr _ptPageMgr)
IPageControl
GetComponentMgr
in interface IPageControl
_ptPageMgr
- this PageMgr
public java.lang.String GetComponentMgrName()
GetComponentMgrName
in interface IPageControl
public XPArrayList Validate()
Validate
in class AComponent
public XPArrayList GetValidators()
GetValidators
in class AComponent
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |