|
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 |
boolean |
isDateDialog
|
HTMLElement |
melm
The HTMLElement object of SELECT element that keeps the Month value |
Object |
needsValueCloning
|
Object |
props
DateDialog Properties Object. |
HTMLElement |
selm
The HTMLElement object of HIDDEN TEXT element that keeps the
value to submit to the server. |
HTMLElement |
telm
The HTMLElement object of SELECT element 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, isProcessField, elm, needsValueCloning
|
Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
Constructor Summary | |
DateDialog(node)
|
Method Summary | |
void
|
base(node)
|
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()
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)
Sets the value of this DateDialog. |
void
|
setYear(value)
Sets the year value of the dialog |
Methods inherited from class ProcessField |
setModified, isModified, getRecord, setSubmitPrefix, appendRequestParams, focusTab, notify, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue, runHandler
|
Methods inherited from class MoreMotionObject |
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
|
Field Detail |
HTMLElement delm
SELECT
element that keeps the Day value
boolean isDateDialog
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 dateFormatingSymbols |
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 intialValue is empty |
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 |
HTMLElement selm
HIDDEN TEXT
element that keeps the
value to submit to the server.
HTMLElement telm
SELECT
element that keeps the Day of Week value
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 base(node)
node
- the DOM Element node that is wrapped by this field
void clear()
Date getDate()
String getDayAsString()
String getMonthAsString()
Object getValue()
String getWeekDayAsString()
void init()
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)
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 dateFormatingSymbols property.
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 |