Packagecom.keepcore.calendar.view.renderers
Classpublic class CalendarHoursGridRendererAbstract
InheritanceCalendarHoursGridRendererAbstract Inheritance mx.core.UIComponent
Implements ICalendarHoursGridRenderer
Subclasses CalendarHoursGridRenderer

The CalendarHoursGridAbstract class defines the abstract class that hour grid renderer classes (used in day & week views) such as CalendarHoursGridRenderer should extend. If you crate a custom hours gris renderer, you can use the manageXXX property to let the abstract class manages some display. Note: in the case you manage hour grid labels and calendar start or end hours can be changed, you must override the updateAccordingToNewHours function to update your labels accordingly.



Public Properties
 PropertyDefined By
  calendar : KCCalendar
[read-only] Current KCCalendar component reference.
CalendarHoursGridRendererAbstract
  hoursGridWidth : Number
Hours grid width.
CalendarHoursGridRendererAbstract
  manageBackground : Boolean
Indicates if the hour grid background display is managed.
CalendarHoursGridRendererAbstract
  manageHoursLabels : Boolean
Indicates if the hour grid labels display is managed.
CalendarHoursGridRendererAbstract
  manageSeparators : Boolean
Indicates if the hour grid separators display is managed.
CalendarHoursGridRendererAbstract
  view : MonthWeekDayView
CalendarHoursGridRendererAbstract
Protected Properties
 PropertyDefined By
  hoursLabels : ArrayCollection
CalendarHoursGridRendererAbstract
Public Methods
 MethodDefined By
  
CalendarHoursGridRendererAbstract
  
Recreate all hours labels (remove all & recreate).
CalendarHoursGridRendererAbstract
Protected Methods
 MethodDefined By
  
[override]
CalendarHoursGridRendererAbstract
  
Create hours labels according to startHour & endHour and add them as children.
CalendarHoursGridRendererAbstract
  
measure():void
[override]
CalendarHoursGridRendererAbstract
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
CalendarHoursGridRendererAbstract
Property Detail
calendarproperty
calendar:KCCalendar  [read-only]

Current KCCalendar component reference.


Implementation
    public function get calendar():KCCalendar
hoursGridWidthproperty 
hoursGridWidth:Number

Hours grid width.

The default value is 60.


Implementation
    public function get hoursGridWidth():Number
    public function set hoursGridWidth(value:Number):void
hoursLabelsproperty 
protected var hoursLabels:ArrayCollection

manageBackgroundproperty 
manageBackground:Boolean

Indicates if the hour grid background display is managed.

The default value is true.


Implementation
    public function get manageBackground():Boolean
    public function set manageBackground(value:Boolean):void
manageHoursLabelsproperty 
manageHoursLabels:Boolean

Indicates if the hour grid labels display is managed.

The default value is true.


Implementation
    public function get manageHoursLabels():Boolean
    public function set manageHoursLabels(value:Boolean):void
manageSeparatorsproperty 
manageSeparators:Boolean

Indicates if the hour grid separators display is managed.

The default value is true.


Implementation
    public function get manageSeparators():Boolean
    public function set manageSeparators(value:Boolean):void
viewproperty 
view:MonthWeekDayView


Implementation
    public function get view():MonthWeekDayView
    public function set view(value:MonthWeekDayView):void
Constructor Detail
CalendarHoursGridRendererAbstract()Constructor
public function CalendarHoursGridRendererAbstract(view:MonthWeekDayView = null)



Parameters
view:MonthWeekDayView (default = null)
Method Detail
createChildren()method
override protected function createChildren():void

createLabels()method 
protected function createLabels():void

Create hours labels according to startHour & endHour and add them as children.

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

updateAccordingToNewHours()method 
public function updateAccordingToNewHours():void

Recreate all hours labels (remove all & recreate). Then update the display.

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

Parameters

unscaledWidth:Number
 
unscaledHeight:Number