Class DatePickerList
Object
|
+--Widget
|
+--Container
|
+--DatePickerList
- class
DatePickerList
- extends Container
Raises:
change
- Returns the date value of the list or
null
if invalid.
Defined in date_picker_list.js
Constructor Summary |
DatePickerList
(<boolean> allowNull, <Date> date)
Date-Picker widget using drop-down list controls.
|
Method Summary |
void
|
_updateDayList(<int> year, <int> month)
Updates the day picker to have as many days as month month
has in year year .
|
Date
|
getDate()
Get the date value of the date picker.
|
boolean
|
isNull()
Checks to see if the current value is invalid.
|
void
|
layout(<boolean> flushCache)
Causes the widget to redraw itself and any children it may have.
|
void
|
setDate(date)
Set the date value of the date picker.
|
void
|
setYearInterval(<int> minYear, <int> maxYear)
Sets the range of years that is displayed in the year picker.
|
Methods inherited from class Container |
appendChild, clear, contains, insertAfter, insertAt, insertBefore, isEmpty, prependChild, removeChild, replaceChild, setLayout, setEnabled
|
Methods inherited from class Widget |
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, blur, createEventTable, dispose, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getClientWidth, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setBounds, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
|
monthNamesLong
<static> var monthNamesLong
DatePickerList
function DatePickerList(<boolean> allowNull, <Date> date)
Date-Picker widget using drop-down list controls.
Parameters:
allowNull
- Allow the list controls to have null entries.
date
- (Optional) - The date value to set. Defaults to the current date if allowNull
is false
or null
if allowNull
is true
.
_updateDayList
void _updateDayList(<int> year, <int> month)
Updates the day picker to have as many days as month month
has in year year
.
Parameters:
year
- the year to consider
month
- the zero-based index of the month to consider
getDate
Date getDate()
Get the date value of the date picker. Returns a valid Date
object or null
.
isNull
boolean isNull()
Checks to see if the current value is invalid. Returns
true
if and only if this.getDate()
would return null
.
Returns:
true
if the current date is invalide and false
otherwise
layout
void layout(<boolean> flushCache)
Causes the widget to redraw itself and any children it may have.
Parameters:
flushCache
- if flushCache is true
then the layout manager should ignore any cached values it may have and recompute everything
setDate
void setDate(date)
Set the date value of the date picker. If date is null
and
allowNull
was passed as true
then
null
will be selected. If date
is
null
and allowNull
is false
then
an exception is thrown.
setYearInterval
void setYearInterval(<int> minYear, <int> maxYear)
Sets the range of years that is displayed in the year picker. If the
currently selected year is outside the specified range then the range
will be expanded to include the currently selected year. For example,
suppose the current selection 2004 and the requested range is 1990 to
2000, then the resulting range will be 1990 to 2004 to make sure that
the current selection remains valid.
Parameters:
minYear
- the smallest year to display in the year picker
maxYear
- the largest year to display in the year picker
