Package | ardisia.scheduling.datePicker |
Class | public class DatePicker |
Inheritance | DatePicker spark.components.supportClasses.SkinnableComponent |
Implements | mx.managers.IFocusManagerComponent |
It also allows for more robust customization, particularity in regards to its appearance due to skinning and custom item renderers.
View the technical documentation on the Ardisia Labs website for more information.
Property | Defined By | ||
---|---|---|---|
displayedMonth : Date
Stores and sets the month that is currently displayed. | DatePicker | ||
firstDayOfWeek : int
Defines what day is the 1st day of the week. | DatePicker | ||
highlightedDateRange : Period
The beginning and end dates for a date range that should be highlighted
or displayed differently. | DatePicker | ||
selectedDate : Date
The currently selected date. | DatePicker |
Property | Defined By | ||
---|---|---|---|
displayedMonthDirty : Boolean
private
| DatePicker | ||
firstDayOfWeekDirty : Boolean
private
| DatePicker | ||
selectedDateDirty : Boolean
private
| DatePicker |
Method | Defined By | ||
---|---|---|---|
DatePicker |
Method | Defined By | ||
---|---|---|---|
dayNumbersRendererPartHandler(event:MouseEvent):void
Handles mousedown events on the dayNumbersPart and updates the
selected date. | DatePicker | ||
displayedMonthToString(formatDate:Date):String
Returns the text for the monthLabel skin part. | DatePicker | ||
keyDownHandler(event:KeyboardEvent):void [override]
Handles keyboard interaction when the DatePicker component has focus. | DatePicker | ||
nextMonthButtonPartHandler(event:Event):void
Handles clicks on the nextMonthButtonPart skin part. | DatePicker | ||
previousMonthButtonPartHandler(event:Event):void
Handles clicks on the previousMonthButtonPart skin part. | DatePicker | ||
retrieveIndex(event:MouseEvent):int
Retrieve the index moused. | DatePicker | ||
updateDayNamesRendererPart():void
Updates the day names skin part. | DatePicker | ||
updateDayNumbersRendererPart():void
Updates the day numbers skin part. | DatePicker | ||
updateMonthLabelPart():void
Updates the month label skin part. | DatePicker |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the currently displayed month changes. | DatePicker | |||
Dispatched when the selected date changes. | DatePicker |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
displayedMonth | property |
displayedMonth:Date
Stores and sets the month that is currently displayed. Set with a Date object that defines the month you want to display. E.G. for September, September 1 and September 21 Date objects would both register the displayedMonth as September.
This property is bindable and is bound to the "monthChange" event.
The default value is Month based on today's date
.
This property can be used as the source for data binding.
public function get displayedMonth():Date
public function set displayedMonth(value:Date):void
displayedMonthDirty | property |
protected var displayedMonthDirty:Boolean
private
firstDayOfWeek | property |
firstDayOfWeek:int
Defines what day is the 1st day of the week.
0 = Sunday... 6 = Saturday
This property is bindable.
The default value is 1 (Monday)
.
This property can be used as the source for data binding.
public function get firstDayOfWeek():int
public function set firstDayOfWeek(value:int):void
firstDayOfWeekDirty | property |
protected var firstDayOfWeekDirty:Boolean
private
highlightedDateRange | property |
highlightedDateRange:Period
The beginning and end dates for a date range that should be highlighted or displayed differently.
Useful to style dates differently when they are displayed in an calendar or selected in a different component.
The default value is null
.
public function get highlightedDateRange():Period
public function set highlightedDateRange(value:Period):void
selectedDate | property |
selectedDate:Date
The currently selected date. Times are scrubbed so only month, year, and day information is available.
This property is bindable and is bound to the "selectedDateChange" event.
The default value is null
.
This property can be used as the source for data binding.
public function get selectedDate():Date
public function set selectedDate(value:Date):void
selectedDateDirty | property |
protected var selectedDateDirty:Boolean
private
DatePicker | () | Constructor |
public function DatePicker()
dayNumbersRendererPartHandler | () | method |
protected function dayNumbersRendererPartHandler(event:MouseEvent):void
Handles mousedown events on the dayNumbersPart and updates the selected date.
Parameters
event:MouseEvent — the Event object that triggered the handler
|
displayedMonthToString | () | method |
protected function displayedMonthToString(formatDate:Date):String
Returns the text for the monthLabel skin part. Override this function to customize the text.
The default is the DateFormatter format MMMM YYYY.
Parameters
formatDate:Date — The Date object representing the currently displayed
month.
|
String — String
|
keyDownHandler | () | method |
override protected function keyDownHandler(event:KeyboardEvent):void
Handles keyboard interaction when the DatePicker component has focus. Users can move the selected date via the arrow keys.
Parameters
event:KeyboardEvent — the KeyboardEvent object that triggered the handler
|
nextMonthButtonPartHandler | () | method |
protected function nextMonthButtonPartHandler(event:Event):void
Handles clicks on the nextMonthButtonPart skin part. Advances the currently displayed month forward 1 month.
Parameters
event:Event — the Event object that triggered the handler
|
previousMonthButtonPartHandler | () | method |
protected function previousMonthButtonPartHandler(event:Event):void
Handles clicks on the previousMonthButtonPart skin part. Advances the currently displayed month back 1 month.
Parameters
event:Event — the Event object that triggered the handler
|
retrieveIndex | () | method |
protected function retrieveIndex(event:MouseEvent):int
Retrieve the index moused.
Parameters
event:MouseEvent — the MouseEvent that triggered the handler
|
int — the clicked index (int)
|
updateDayNamesRendererPart | () | method |
protected function updateDayNamesRendererPart():void
Updates the day names skin part.
updateDayNumbersRendererPart | () | method |
protected function updateDayNumbersRendererPart():void
Updates the day numbers skin part.
updateMonthLabelPart | () | method |
protected function updateMonthLabelPart():void
Updates the month label skin part.
monthChange | Event |
ardisia.scheduling.datePicker.events.DatePickerEvent
ardisia.scheduling.datePicker.events.DatePickerEvent
Dispatched when the currently displayed month changes.
selectedDateChange | Event |
ardisia.scheduling.datePicker.events.DatePickerEvent
ardisia.scheduling.datePicker.events.DatePickerEvent
Dispatched when the selected date changes.