MoreMotion Face API

Class DateDialog

Object
   |
   +--MoreMotionObject
         |
         +--ProcessField
               |
               +--DateDialog

class DateDialog
extends ProcessField


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

delm

HTMLElement delm

melm

HTMLElement melm

needsValueCloning

Object needsValueCloning

props

Object props

selm

Object selm

telm

HTMLElement telm

yelm

HTMLElement yelm

Constructor Detail

DateDialog

DateDialog(node)

Method Detail

clear

void clear()

getDate

Date getDate()

getDayAsString

String getDayAsString()

getMonthAsString

String getMonthAsString()

getValue

Object getValue()

getWeekDayAsString

String getWeekDayAsString()

init

void init(setEvents)

setDate

void setDate(theDate)

setDay

void setDay(value)

setMonth

void setMonth(value)

setValue

void setValue(value,silent)

setYear

void setYear(value)

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011