Packagekm.components
Classpublic class DateChooser
InheritanceDateChooser Inheritance UIComponent Inheritance flash.display.Sprite

The DateChooser component class.


Example
import km.components.*;

var dc:DateChooser = new DateChooser();
dc.duotone = [0x402000,0xfff8f0];
dc.move(20,20);
addChild(dc);



Public Properties
 PropertyDefined by
 Inheritedduotone : Array
The duotone property can be used to convert the colors of the component into duotone.
UIComponent
 Inheritedenabled : Boolean
Specifies if the component is enabled.
If a component is disabled, it will be turned into grayscale and become partly transparent.
UIComponent
  firstDayOfWeek : int
[write-only] Sets the first day of a week (0 = Sunday, 1 = Monday).
DateChooser
  onChange : Function
onChange handler.
DateChooser
  selectedDay : int
[read-only]
DateChooser
  selectedMonth : int
[read-only]
DateChooser
  selectedWeekday : int
[read-only] The selected day of the week.
The range of this value is 0 - 6 (0 = Sunday, 6 = Saturday).
DateChooser
  selectedYear : int
[read-only]
DateChooser
  size : int
[write-only] Sets the component size (0 = small, 1 = normal, 2 = large).
DateChooser
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
DateChooser
  
addHighlight(year:int, month:int, day:int, style:int = 0):void
Add a highlight.
style is optional and can be 0, 1 or 2.
DateChooser
 Inherited
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
UIComponent
  
removeAll():void
Remove all highlights.
DateChooser
 Inherited
setProperties(o:Object):void
Sets a number of properties at once.
UIComponent
  
setSelectedDate(year:int, month:int, day:int):void
DateChooser
  
showMonth(year:int, month:int = 1):void
Sets the month to be shown.
DateChooser
Events
 EventSummaryDefined by
 Inherited The animationComplete event is broadcasted when an animated move is completed.UIComponent
   The change event is broadcasted when a new date is selected.
It's also possible to use the onChange handler.
DateChooser
Property detail
firstDayOfWeekproperty
firstDayOfWeek:int  [write-only]

Sets the first day of a week (0 = Sunday, 1 = Monday).

Implementation
    public function set firstDayOfWeek(value:int):void
onChangeproperty 
public var onChange:Function

onChange handler.

selectedDayproperty 
selectedDay:int  [read-only]

Implementation
    public function get selectedDay():int
selectedMonthproperty 
selectedMonth:int  [read-only]

Implementation
    public function get selectedMonth():int
selectedWeekdayproperty 
selectedWeekday:int  [read-only]

The selected day of the week.
The range of this value is 0 - 6 (0 = Sunday, 6 = Saturday).

Implementation
    public function get selectedWeekday():int
selectedYearproperty 
selectedYear:int  [read-only]

Implementation
    public function get selectedYear():int
sizeproperty 
size:int  [write-only]

Sets the component size (0 = small, 1 = normal, 2 = large).

Implementation
    public function set size(value:int):void
Constructor detail
DateChooser()constructor
public function DateChooser()
Method detail
addHighlight()method
public function addHighlight(year:int, month:int, day:int, style:int = 0):void

Add a highlight.
style is optional and can be 0, 1 or 2.

Parameters
year:int
 
month:int
 
day:int
 
style:int (default = 0)
removeAll()method 
public function removeAll():void

Remove all highlights.

setSelectedDate()method 
public function setSelectedDate(year:int, month:int, day:int):void

Parameters
year:int
 
month:int
 
day:int
showMonth()method 
public function showMonth(year:int, month:int = 1):void

Sets the month to be shown.

Parameters
year:int
 
month:int (default = 1)
Event detail
changeevent 
Event object type: flash.events.Event

The change event is broadcasted when a new date is selected.
It's also possible to use the onChange handler.