|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MoreMotionObject
|
+--ProcessField
|
+--DateDialog
Represents a DateDialog Process Field which wraps three SELECT elements,
a readonly TEXT INPUT element
and a HIDDEN INPUT element to provide a controlled input field for entering date data.
The three SELECT elements are for selecting Day, Month and Year portions of the date seperately.
The HIDDEN INPUT element contains the date to sent to the server and therefore this class
reflects all the changes made to the SELECT elements to immediatelly this field.
Defined in Date.js
| Field Summary | |
HTMLElement |
delm
The HTMLElement object of SELECT element that keeps the Day value |
HTMLElement |
melm
The HTMLElement object of SELECT element that keeps the Month value |
Object |
needsValueCloning
|
Object |
props
DateDialog Properties Object. |
Object |
selm
Handle to the object that keeps the value to submit to the server. |
HTMLElement |
telm
The HTMLElement that keeps the Day of Week value |
HTMLElement |
yelm
The HTMLElement object of SELECT element that keeps the Year value |
| Fields inherited from class ProcessField |
props, elm, needsValueCloning
|
| Fields inherited from class MoreMotionObject |
node, name, type, props
|
| Constructor Summary | |
DateDialog(node)
|
|
| Method Summary | |
void
|
clear()
Empties all the wrapped input fields and sets the value of the dialog to null. |
Date
|
getDate()
Returns the current date as Date object |
String
|
getDayAsString()
Returns the day as string |
String
|
getMonthAsString()
Returns the month as string |
Object
|
getValue()
Returns the value of this field |
String
|
getWeekDayAsString()
Returns the day of week as string |
void
|
init(setEvents)
Initializes this DateDialog |
void
|
setDate(theDate)
Sets the date value of the dialog |
void
|
setDay(value)
Sets the day value of the dialog |
void
|
setMonth(value)
Sets the month value of the dialog |
void
|
setValue(value,silent)
Sets the value of this DateDialog. |
void
|
setYear(value)
Sets the year value of the dialog |
| Methods inherited from class ProcessField |
getCaption, reset, setModified, isModified, getRecord, appendRequestParams, focusTab, notify, notifyEx, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue
|
| Methods inherited from class MoreMotionObject |
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
|
| Field Detail |
HTMLElement delm
SELECT element that keeps the Day value
HTMLElement melm
SELECT element that keeps the Month value
Object needsValueCloning
Object props
| valueFormat | The format of the value. The formatting symbols:
|
| submitFormat | The format of the submit value. See Date Formatting Symbols |
| monthFormat | The Format of the Month. The formating options are : "Long Text", "Short Text", "Number" |
| excludeWeekends | The Flag to make weekend days invisible on the dialog |
| defaultDate | The default date value to be used when no value is provided |
| fromDate | The Minimum date that can be selected on the dialog |
| toDate | The maximum date that can be selected on the dialog |
| nonBlank | See ProcessField.props.nonBlank |
| validValues | See ProcessField.props.validValues |
| valHandler | See ProcessField.valHandler() |
| valErrorHandler | See ProcessField.props.valErrorHandler |
| onChange | The name of the event handler to be called when date is changed by the user. When called the handler will receive this DateDialog object as the parameter. |
| onDayChange | The name of the event handler to be called when day is changed |
| onMonthChange | The name of the event handler to be called when month is changed |
| onYearChange | The name of the event handler to be called when year is changed |
Object selm
HTMLElement telm
HTMLElement yelm
SELECT element that keeps the Year value
| Constructor Detail |
DateDialog(node)
node - the DOM Element node that is wrapped by this object
| Method Detail |
void clear()
Date getDate()
String getDayAsString()
String getMonthAsString()
Object getValue()
String getWeekDayAsString()
void init(setEvents)
void setDate(theDate)
theDate - The Day value as integer
void setDay(value)
value - The Day value as integer
void setMonth(value)
value - The Month value as integer (0 is the January, 11 is the December).
void setValue(value,silent)
SELECT elements
will be rearranged to display the new value to the user.value - The new value. The format of the value should conform to the format defined with See defaultDate property.
silent - Specify true if no error message should be alerted when an exception occurs
void setYear(value)
value - The Year value as integer
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||