| Package | com.keepcore.calendar.view.renderers |
| Class | public class CalendarMonthCellRendererAbstract |
| Inheritance | CalendarMonthCellRendererAbstract CalendarMonthDisplayer CalendarPartDisplayer mx.core.UIComponent |
| Implements | ICalendarMonthCellRenderer |
| Subclasses | CalendarMonthCellRenderer |
| Property | Defined By | ||
|---|---|---|---|
| calendarMonth : CalendarMonth [override] | CalendarMonthCellRendererAbstract | ||
![]() | calendarPart : CalendarPart
Calendar part reference. | CalendarPartDisplayer | |
![]() | drawToolTip : Boolean
Indicates if the part handles the tool tip drawing. | CalendarPartDisplayer | |
![]() | fullDayToolTip : Boolean
Indicates if the displayed tooltip is always full day (used by day headers as example). | CalendarPartDisplayer | |
| manageCellBackground : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
| manageCellHighlight : Boolean
Indicates if the cell highlight display is managed. | CalendarMonthCellRendererAbstract | ||
| manageDayColorFunction : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
| manageDayGrid : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
| manageDayLabels : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
| manageEndOfWeeks : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
| manageWeekLabels : Boolean
Indicates if the cell background display is managed. | CalendarMonthCellRendererAbstract | ||
![]() | mouseOverDate : Date
Indicates the current mouse over date. | CalendarPartDisplayer | |
![]() | mouseOverDateColumn : int
Indicates the current mouse over date column (if column mode is enabled). | CalendarPartDisplayer | |
| Property | Defined By | ||
|---|---|---|---|
| backgroundColor : Number [read-only]
Get the cell background color. | CalendarMonthCellRendererAbstract | ||
| Method | Defined By | ||
|---|---|---|---|
CalendarMonthCellRendererAbstract(calendarMonth:CalendarMonth = null)
Contructor. | CalendarMonthCellRendererAbstract | ||
![]() | getColumnWidth():Number
In column mode, return the column width (takes in account the item margins). | CalendarPartDisplayer | |
![]() | localToColumn():int
If column mode is enabled, return the column index according to mouse X position. | CalendarPartDisplayer | |
localToDateTime(coordX:Number = -1, coordY:Number = -1, onlyCurrentDayTime:Boolean = false, eventTimeStepMultiple:Boolean = true):Date [override]
Return the date specified by mouse position in the current cell. | CalendarMonthCellRendererAbstract | ||
![]() | refreshMouseTooltip(event:MouseEvent):void
Create or update the cell mouse tooltip. | CalendarPartDisplayer | |
| Method | Defined By | ||
|---|---|---|---|
createChildren():void [override]
| CalendarMonthCellRendererAbstract | ||
![]() | createMouseToolTip(date:Date, x:Number, y:Number):void | CalendarPartDisplayer | |
dayLabelClickHandler(event:MouseEvent):void
Day label click handler: if calendarLinksEnabled property is true, update the view else dispatch a DateClickEvent.DATE_CLICK event. | CalendarMonthCellRendererAbstract | ||
![]() | destroyMouseToolTip():void | CalendarPartDisplayer | |
![]() | drawHighlight(unscaledWidth:Number, columnWidth:Number, stepStartY:Number, stepHeight:Number, highlightAlpha:Number, rangeSelection:Boolean, noBorder:Boolean = false):void | CalendarPartDisplayer | |
![]() | drawRanges(ranges:ArrayCollection, aX:Number, aWidth:Number, bkgColor:uint, alpha:Number):void
Draw ranges. | CalendarPartDisplayer | |
![]() | getRangesRect(ranges:ArrayCollection, aX:Number, aWidth:Number):Array
Return array of Rectangle objects that defines the ranges coordinates. | CalendarPartDisplayer | |
measure():void [override]
Restrict minimum height. | CalendarMonthCellRendererAbstract | ||
resourcesChanged():void [override]
Overriden resourcesChanged method. | CalendarMonthCellRendererAbstract | ||
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
Manage the month cell display: according to properties manages the day grid, days & weeks labels, background color & cell highlight. | CalendarMonthCellRendererAbstract | ||
![]() | updateMouseToolTip(date:Date, x:Number, y:Number):void | CalendarPartDisplayer | |
weekLabelClickHandler(event:MouseEvent):void
Week label click handler: if calendarLinksEnabled property is true, update the view else dispatch a DateClickEvent.DATE_CLICK event. | CalendarMonthCellRendererAbstract | ||
| backgroundColor | property |
backgroundColor:Number [read-only] Get the cell background color.
protected function get backgroundColor():Number| calendarMonth | property |
calendarMonth:CalendarMonth[override] public function get calendarMonth():CalendarMonth public function set calendarMonth(value:CalendarMonth):void| manageCellBackground | property |
manageCellBackground:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageCellBackground():Boolean public function set manageCellBackground(value:Boolean):void| manageCellHighlight | property |
manageCellHighlight:BooleanIndicates if the cell highlight display is managed.
The default value is true.
public function get manageCellHighlight():Boolean public function set manageCellHighlight(value:Boolean):void| manageDayColorFunction | property |
manageDayColorFunction:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageDayColorFunction():Boolean public function set manageDayColorFunction(value:Boolean):void| manageDayGrid | property |
manageDayGrid:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageDayGrid():Boolean public function set manageDayGrid(value:Boolean):void| manageDayLabels | property |
manageDayLabels:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageDayLabels():Boolean public function set manageDayLabels(value:Boolean):void| manageEndOfWeeks | property |
manageEndOfWeeks:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageEndOfWeeks():Boolean public function set manageEndOfWeeks(value:Boolean):void| manageWeekLabels | property |
manageWeekLabels:BooleanIndicates if the cell background display is managed.
The default value is true.
public function get manageWeekLabels():Boolean public function set manageWeekLabels(value:Boolean):void| CalendarMonthCellRendererAbstract | () | Constructor |
public function CalendarMonthCellRendererAbstract(calendarMonth:CalendarMonth = null)Contructor.
ParameterscalendarMonth:CalendarMonth (default = null) — CalendarMonth object
|
| createChildren | () | method |
override protected function createChildren():void
| dayLabelClickHandler | () | method |
protected function dayLabelClickHandler(event:MouseEvent):voidDay label click handler: if calendarLinksEnabled property is true, update the view else dispatch a DateClickEvent.DATE_CLICK event.
Parameters
event:MouseEvent |
| localToDateTime | () | method |
override public function localToDateTime(coordX:Number = -1, coordY:Number = -1, onlyCurrentDayTime:Boolean = false, eventTimeStepMultiple:Boolean = true):DateReturn the date specified by mouse position in the current cell.
Parameters
coordX:Number (default = -1) — X coordinate
| |
coordY:Number (default = -1) — Y coordinate
| |
onlyCurrentDayTime:Boolean (default = false) — unused.
| |
eventTimeStepMultiple:Boolean (default = true) — unused
|
Date — date time corresponding to coordinates
|
| measure | () | method |
override protected function measure():voidRestrict minimum height.
| resourcesChanged | () | method |
override protected function resourcesChanged():voidOverriden resourcesChanged method. Update day labels language on the fly.
| updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidManage the month cell display: according to properties manages the day grid, days & weeks labels, background color & cell highlight.
Parameters
unscaledWidth:Number | |
unscaledHeight:Number |
| weekLabelClickHandler | () | method |
protected function weekLabelClickHandler(event:MouseEvent):voidWeek label click handler: if calendarLinksEnabled property is true, update the view else dispatch a DateClickEvent.DATE_CLICK event.
Parameters
event:MouseEvent |