Packagecom.flexcalendar.components.calendar.utils
Classpublic class RendererClassFactory
InheritanceRendererClassFactory Inheritance mx.core.ClassFactory
Implements flash.events.IEventDispatcher

Item renderer factory



Public Properties
 PropertyDefined By
  calendarContext : ICalendarContext
Calendar context to be injected into created renderers
RendererClassFactory
  mouseDoubleClickHandler : Function
Handler for MouseEvent.DOUBLE_CLICK event
RendererClassFactory
  mouseDownHandler : Function
Handler for MouseEvent.MOUSE_DOWN event
RendererClassFactory
  mouseRollOutRendererHandler : Function
Handler for MouseEvent.ROLL_OUT event
RendererClassFactory
  mouseRollOverRendererHandler : Function
Handler for MouseEvent.ROLL_OVER event
RendererClassFactory
Public Methods
 MethodDefined By
  
RendererClassFactory(generator:Class)
Create instance of RendererClassFactory - resposible for creating item renderers.
RendererClassFactory
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
RendererClassFactory
  
dispatchEvent(event:Event):Boolean
RendererClassFactory
  
hasEventListener(type:String):Boolean
RendererClassFactory
  
[override] Create new instance of requested object, with added listeners.
RendererClassFactory
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
RendererClassFactory
  
willTrigger(type:String):Boolean
RendererClassFactory
Property Detail
calendarContextproperty
calendarContext:ICalendarContext

Calendar context to be injected into created renderers

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


Implementation
    public function get calendarContext():ICalendarContext
    public function set calendarContext(value:ICalendarContext):void
mouseDoubleClickHandlerproperty 
public var mouseDoubleClickHandler:Function

Handler for MouseEvent.DOUBLE_CLICK event

mouseDownHandlerproperty 
public var mouseDownHandler:Function

Handler for MouseEvent.MOUSE_DOWN event

mouseRollOutRendererHandlerproperty 
public var mouseRollOutRendererHandler:Function

Handler for MouseEvent.ROLL_OUT event

mouseRollOverRendererHandlerproperty 
public var mouseRollOverRendererHandler:Function

Handler for MouseEvent.ROLL_OVER event

Constructor Detail
RendererClassFactory()Constructor
public function RendererClassFactory(generator:Class)

Create instance of RendererClassFactory - resposible for creating item renderers. Each renderer has attached mouse handlers.

Parameters
generator:Class — class
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
newInstance()method 
override public function newInstance():*

Create new instance of requested object, with added listeners.

Returns
* — new instance of requested object
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean