Class DwtCalendar
Class Detail
DwtCalendar(params)
Creates a calendar widget
Author: Ross Dargahi, Roland Schemers.
Field Detail
<static>
DwtCalendar.DAY
Defines the "day" selection mode.
<static>
DwtCalendar.FRI
Friday.
<static>
DwtCalendar.MON
Monday.
<static>
DwtCalendar.MONTH
Defines the "month" selection mode.
<static>
DwtCalendar.SAT
Saturday.
<static>
DwtCalendar.SUN
Sunday.
<static>
DwtCalendar.THU
Thursday.
<static>
DwtCalendar.TUE
Tuesday.
<static>
DwtCalendar.WED
Wednesday.
<static>
DwtCalendar.WEEK
Defines the "week" selection mode.
<static>
DwtCalendar.WORK_WEEK
Defines the "work week" selection mode.
Method Detail
addActionListener(listener)
Adds an action listener.
addDateRangeListener(listener)
Adds a date range listener. Date range listeners are called whenever the date range of the calendar
changes (i.e. when it rolls over due to a programatic action via #setDate or
via user selection).
addSelectionListener(listener)
Adds a selection listener.
{Date}
getDate()
Gets the date.
{Object}
getDateRange()
Gets the date range.
{Date}
getDndDate()
Gets the date value for the last cell that the most recent
Drag-and-drop operation occurred over. Typically it will be called by a DwtDropTarget
listener when an item is dropped onto the mini calendar
{boolean}
getForceRollOver()
Gets the force roll over setting. Force roll over is occurs when a date that
is not part of the current month (i.e. one of the grey prev or next month
days) will result in the widget rolling the date to that month.
{constant}
getSelectionMode()
Gets the selection mode.
{boolean}
getSkipNotifyOnPage()
Gets the skip notify on page setting.
{boolean}
isSelected(cellId)
Checks if the cell is selected.
removeActionListener(listener)
Removes an action listener.
removeDateRangeListener(listener)
Removes a date range listener.
removeSelectionListener(listener)
Removes a selection listener.
setDate(date, skipNotify, forceRollOver, dblClick)
Sets the date.
setFirstDayOfWeek(firstDayOfWeek)
Sets the first date of week.
setForceRollOver(force)
Sets the force roll over setting. Force roll over is occurs when a date that
is not part of the current month (i.e. one of the grey prev or next month
days) will result in the widget rolling the date to that month.
setHilite(dates, enable, clear)
Enables/disables the highlight (i.e. "bolding") on the dates in
<dates> .
setMouseOutDayCallback(callback)
Sets the mouse out day callback.
setMouseOverDayCallback(callback)
Sets the mouse over day callback.
{constant}
setSelectionMode(selectionMode)
Sets the selection mode.
setSkipNotifyOnPage(skip)
Sets the skip notify on page. This method notify (or not) selection when paging arrow buttons
are clicked.
setWorkingWeek(workingDaysArray)
Sets the working week.
{string}
toString()
Returns a string representation of the object.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:27 GMT-0400 (EDT)
|