Packagecom.gestureworks.cml.element
Classpublic class DatePicker
InheritanceDatePicker Inheritance ElementFactory Inheritance flash.display.Sprite

The DatePicker element provides date selection capability. The initial state will display the current date. Previous and future months can be navigated via the "left" and "right" arrows.
         
        var dp:DatePicker = new DatePicker();
        dp.x = 300;
        dp.y = 200;
        dp.scaleX = dp.scaleX + 2;
        dp.scaleY = dp.scaleY + 2;
        dp.addEventListener(StateEvent.CHANGE, selectedDate);
        addChild(dp);
                
        function selectedDate(event:StateEvent):void
        {
            //trace(event.value);
        }    
     
     

See also

ColorPicker


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
  colorSchemeDark : Boolean
DatePicker
  days : String
DatePicker
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedheight : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 Inheritedleft : Number
sets left value
ElementFactory
  months : String
DatePicker
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
  selectedDate : String
DatePicker
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
 Inheritedwidth : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Constructor
DatePicker
 Inherited
clone():*
Returns clone of self
ElementFactory
  
[override] CML display initialization callback
DatePicker
  
dispose():void
[override] Dispose method nullify attributes
DatePicker
  
init():void
[override] Initializes the calendar components
DatePicker
 Inherited
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
colorSchemeDarkproperty
colorSchemeDark:Boolean


Implementation
    public function get colorSchemeDark():Boolean
    public function set colorSchemeDark(value:Boolean):void
daysproperty 
days:String


Implementation
    public function get days():String
    public function set days(value:String):void
monthsproperty 
months:String


Implementation
    public function get months():String
    public function set months(value:String):void
selectedDateproperty 
selectedDate:String


Implementation
    public function get selectedDate():String
    public function set selectedDate(value:String):void
Constructor Detail
DatePicker()Constructor
public function DatePicker()

Constructor

Method Detail
displayComplete()method
override public function displayComplete():void

CML display initialization callback

dispose()method 
override public function dispose():void

Dispose method nullify attributes

init()method 
override public function init():void

Initializes the calendar components