Packagecom.keepcore.calendar
Classpublic class KCMiniCalendar
InheritanceKCMiniCalendar Inheritance mx.core.UIComponent

The KCMiniCalendar is a mini-calendar component that allows to browse between months and years and, according to its configuration to select:
  • a day
  • a week
  • today


  • Public Properties
     PropertyDefined By
      allowMove : Boolean
    KCMiniCalendar
      BackButton : Class
    [static]
    KCMiniCalendar
      currentDate : Date
    KCMiniCalendar
      DownButton : Class
    [static]
    KCMiniCalendar
      FwdButton : Class
    [static]
    KCMiniCalendar
      items : ArrayCollection
    KCMiniCalendar
      monthComboBox : ComboBox
    KCMiniCalendar
      selectedDate : Date
    KCMiniCalendar
      staticEventDispatcher : IEventDispatcher
    [static] [read-only]
    KCMiniCalendar
      todayButtonVisible : Boolean
    KCMiniCalendar
      UpButton : Class
    [static]
    KCMiniCalendar
    Public Methods
     MethodDefined By
      
    KCMiniCalendar
    Protected Methods
     MethodDefined By
      
    [override]
    KCMiniCalendar
      
    [override]
    KCMiniCalendar
      
    measure():void
    [override]
    KCMiniCalendar
      
    [override]
    KCMiniCalendar
      
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    [override] Overriden updateDisplayList method.
    KCMiniCalendar
    Events
     Event Summary Defined By
      Dispatched when the current date is changed.KCMiniCalendar
    Styles
     Style Description Defined By
      
    backgroundColor
    Type: uint Format: Color CSS Inheritance: no
    Component background color.
    KCMiniCalendar
      
    borderColor
    Type: uint Format: Color CSS Inheritance: no
    Component border color.
    KCMiniCalendar
      
    dayCellBackgroundColorMouseOver
    Type: uint Format: Color CSS Inheritance: no
    Background color of day cells when mouse is over.
    KCMiniCalendar
      
    dayCellBackgroundColorNoEvent
    Type: uint Format: Color CSS Inheritance: no
    Background color of day cells with no event.
    KCMiniCalendar
      
    dayCellBackgroundColorWithEvent
    Type: uint Format: Color CSS Inheritance: no
    Background color of day cells with some events.
    KCMiniCalendar
      
    dayCellBorderColorSelected
    Type: uint Format: Color CSS Inheritance: no
    Border color of selected day cell.
    KCMiniCalendar
      
    dayCellBorderColorToday
    Type: uint Format: Color CSS Inheritance: no
    Border color of today day cell.
    KCMiniCalendar
      
    headerGradientColorEnd
    Type: uint Format: Color CSS Inheritance: no
    Component header gradient end color.
    KCMiniCalendar
      
    headerGradientColorStart
    Type: uint Format: Color CSS Inheritance: no
    Component header gradient start color.
    KCMiniCalendar
    Public Constants
     ConstantDefined By
      BACKGROUND_COLOR_STYLE : String = backgroundColor
    [static]
    KCMiniCalendar
      BORDER_COLOR_STYLE : String = borderColor
    [static]
    KCMiniCalendar
      DAY_CELL_BACKGROUND_COLOR_MOUSE_OVER : String = dayCellBackgroundColorMouseOver
    [static]
    KCMiniCalendar
      DAY_CELL_BACKGROUND_COLOR_NO_EVENT_STYLE : String = dayCellBackgroundColorNoEvent
    [static]
    KCMiniCalendar
      DAY_CELL_BACKGROUND_COLOR_WITH_EVENT_STYLE : String = dayCellBackgroundColorWithEvent
    [static]
    KCMiniCalendar
      DAY_CELL_BORDER_COLOR_SELECTED : String = dayCellBorderColorSelected
    [static]
    KCMiniCalendar
      DAY_CELL_BORDER_COLOR_TODAY : String = dayCellBorderColorToday
    [static]
    KCMiniCalendar
      DAY_VIEW : Number = 2
    [static]
    KCMiniCalendar
      FONT_SIZE : Number = 8
    [static]
    KCMiniCalendar
      HEADER_GRADIENT_COLOR_END : String = headerGradientColorEnd
    [static]
    KCMiniCalendar
      HEADER_GRADIENT_COLOR_START : String = headerGradientColorStart
    [static]
    KCMiniCalendar
      MONTH_VIEW : Number = 0
    [static]
    KCMiniCalendar
      SELECTED_DATE_CHANGED : String = SelectedDateChanged
    [static]
    KCMiniCalendar
      WEEK_VIEW : Number = 1
    [static]
    KCMiniCalendar
      YEAR_VIEW : Number = 3
    [static]
    KCMiniCalendar
    Property Detail
    allowMoveproperty
    allowMove:Boolean


    Implementation
        public function get allowMove():Boolean
        public function set allowMove(value:Boolean):void
    BackButtonproperty 
    BackButton:Class

    This property can be used as the source for data binding.


    Implementation
        public static function get BackButton():Class
        public static function set BackButton(value:Class):void
    currentDateproperty 
    currentDate:Date


    Implementation
        public function get currentDate():Date
        public function set currentDate(value:Date):void
    DownButtonproperty 
    DownButton:Class

    This property can be used as the source for data binding.


    Implementation
        public static function get DownButton():Class
        public static function set DownButton(value:Class):void
    FwdButtonproperty 
    FwdButton:Class

    This property can be used as the source for data binding.


    Implementation
        public static function get FwdButton():Class
        public static function set FwdButton(value:Class):void
    itemsproperty 
    items:ArrayCollection


    Implementation
        public function get items():ArrayCollection
        public function set items(value:ArrayCollection):void
    monthComboBoxproperty 
    public var monthComboBox:ComboBox

    selectedDateproperty 
    selectedDate:Date

    This property can be used as the source for data binding.


    Implementation
        public function get selectedDate():Date
        public function set selectedDate(value:Date):void
    staticEventDispatcherproperty 
    staticEventDispatcher:IEventDispatcher  [read-only]


    Implementation
        public static function get staticEventDispatcher():IEventDispatcher
    todayButtonVisibleproperty 
    todayButtonVisible:Boolean


    Implementation
        public function get todayButtonVisible():Boolean
        public function set todayButtonVisible(value:Boolean):void
    UpButtonproperty 
    UpButton:Class

    This property can be used as the source for data binding.


    Implementation
        public static function get UpButton():Class
        public static function set UpButton(value:Class):void
    Constructor Detail
    KCMiniCalendar()Constructor
    public function KCMiniCalendar()



    Method Detail
    commitProperties()method
    override protected function commitProperties():void

    createChildren()method 
    override protected function createChildren():void

    measure()method 
    override protected function measure():void

    resourcesChanged()method 
    override protected function resourcesChanged():void

    updateDisplayList()method 
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

    Overriden updateDisplayList method.

    Parameters

    unscaledWidth:Number
     
    unscaledHeight:Number

    Event Detail
    currentDateChange Event
    Event Object Type: com.keepcore.calendar.event.DateChangedEvent
    DateChangedEvent.type property = com.keepcore.calendar.event.DateChangedEvent

    Dispatched when the current date is changed.

    Constant Detail
    BACKGROUND_COLOR_STYLEConstant
    public static const BACKGROUND_COLOR_STYLE:String = backgroundColor

    BORDER_COLOR_STYLEConstant 
    public static const BORDER_COLOR_STYLE:String = borderColor

    DAY_CELL_BACKGROUND_COLOR_MOUSE_OVERConstant 
    public static const DAY_CELL_BACKGROUND_COLOR_MOUSE_OVER:String = dayCellBackgroundColorMouseOver

    DAY_CELL_BACKGROUND_COLOR_NO_EVENT_STYLEConstant 
    public static const DAY_CELL_BACKGROUND_COLOR_NO_EVENT_STYLE:String = dayCellBackgroundColorNoEvent

    DAY_CELL_BACKGROUND_COLOR_WITH_EVENT_STYLEConstant 
    public static const DAY_CELL_BACKGROUND_COLOR_WITH_EVENT_STYLE:String = dayCellBackgroundColorWithEvent

    DAY_CELL_BORDER_COLOR_SELECTEDConstant 
    public static const DAY_CELL_BORDER_COLOR_SELECTED:String = dayCellBorderColorSelected

    DAY_CELL_BORDER_COLOR_TODAYConstant 
    public static const DAY_CELL_BORDER_COLOR_TODAY:String = dayCellBorderColorToday

    DAY_VIEWConstant 
    public static const DAY_VIEW:Number = 2

    FONT_SIZEConstant 
    public static const FONT_SIZE:Number = 8

    HEADER_GRADIENT_COLOR_ENDConstant 
    public static const HEADER_GRADIENT_COLOR_END:String = headerGradientColorEnd

    HEADER_GRADIENT_COLOR_STARTConstant 
    public static const HEADER_GRADIENT_COLOR_START:String = headerGradientColorStart

    MONTH_VIEWConstant 
    public static const MONTH_VIEW:Number = 0

    SELECTED_DATE_CHANGEDConstant 
    public static const SELECTED_DATE_CHANGED:String = SelectedDateChanged

    WEEK_VIEWConstant 
    public static const WEEK_VIEW:Number = 1

    YEAR_VIEWConstant 
    public static const YEAR_VIEW:Number = 3