Packagecom.flexcalendar.components.calendar
Classpublic class FlexCalendar
InheritanceFlexCalendar Inheritance mx.core.UIComponent

Main Calendar component class. To use component, add FlexCalendar swc to your dependencies.

View the examples



Public Properties
 PropertyDefined By
  acceptItemsInLimitedEditModeAlwaysButInUnavailableSpace : Boolean
Flag that indicates whether items can be placed outside available spaces in limited edit mode.
FlexCalendar
  availableSpaceIsMoreImportantThanUnavailableSpace : Boolean
Flag that indicates whether available space is more important than unavailable space.
FlexCalendar
  backgroundProcessing : Boolean
Flag that determines if there are any remote background operations ongoing.
FlexCalendar
  cacheTimeToLive : Number
Get Time to live in milliseconds for cached items.
FlexCalendar
  calendarDayViewAvailableSpaceRenderer : Class
Calendar available space renderer class.
FlexCalendar
  calendarDayViewContainer : DayViewContainer
[read-only]
FlexCalendar
  calendarDayViewItemRenderer : Class
Calendar item renderer class.
FlexCalendar
  calendarDayViewLongItemRenderer : Class
Calendar item renderer class.
FlexCalendar
  calendarDayViewUnavailableSpaceRenderer : Class
Calendar unavailable space renderer class.
FlexCalendar
  calendarHeader : CalendarHeader
[read-only] Calendar's header object
FlexCalendar
  calendarMode : int
Calendar mode defines rules of calendar items' editing.
FlexCalendar
  calendarMonthViewItemRenderer : Class
Calendar item renderer class.
FlexCalendar
  calendarMonthViewLongItemRenderer : Class
Calendar item renderer class.
FlexCalendar
  columnModeEnabled : Boolean
Flag that indicates whether column mode is enabled or not.
FlexCalendar
  currentDayIndicator : Boolean
If true, current day is highlighted accordingly to styles.
FlexCalendar
  currentTimeIndicator : Boolean
If true, current time indicator is drawn on the day view.
FlexCalendar
  currentTimeIndicatorDelay : Number
Time between refreshing current time indicator position; Default: 60000 (one minute)
FlexCalendar
  dataProvider : ICalendarDataProvider
Calendar data provider instance
FlexCalendar
  dragBetweenColumnsEnabled : Boolean
FLag that indicates whether dragging between columns/calendars is enabled in column mode.
FlexCalendar
  dropUiComponentsEnabled : Boolean
FLag that indicates whether dropped UIComponents can create calendar item.
FlexCalendar
  firstDayOfWeek : int
First day in the week.
FlexCalendar
  granularityMinutes : Number
[write-only]
FlexCalendar
  initialHourPosition : Number
When FlexCalendar instance is created, it will show hours in day/multiday view from to this value.
FlexCalendar
  itemEditor : IItemEditor
Editor for items - invoked when user requests Class instances are created for events in the day and multiday view.
FlexCalendar
  license : String
[write-only] Calendar license key This property is write-only.
FlexCalendar
  minDaysInFirstWeek : int
Minimal number of days in the first week of year.
FlexCalendar
  monthViewContainer : MonthViewContainer
Component containing month subcomponents
FlexCalendar
  readOnly : Boolean
[read-only] Indicates whether entire component is readonly.
FlexCalendar
  realVisibleRange : DateRange
[read-only] This is read-only value of the real visible range, displayed by the calendar component.
FlexCalendar
  snapToGridThreshold : int
[write-only] Snap to grid in the day view threshold, in minutes.
FlexCalendar
  viewType : int
[read-only]
FlexCalendar
  viewTypeStrategy : IViewTypeStrategy
Strategy for determining view type, based on the DateRange value.
FlexCalendar
  visibleHoursEnd : Number
[write-only] Set visible hours range's end hour It's applied only when visibleHoursLimited is set
FlexCalendar
  visibleHoursLimited : Boolean
[write-only] Determines whether visible hours are limited to those in specified range (between visibleHoursStart and visibleHoursEnd)
FlexCalendar
  visibleHoursStart : Number
[write-only] Set visible hours range's start hour It's applied only when visibleHoursLimited is set
FlexCalendar
  visibleRange : DateRange
Displayed DateRange instance.
FlexCalendar
  wheelScrollSpeed : Number
Wheel scrolling speed.
FlexCalendar
Protected Properties
 PropertyDefined By
  _backgroundProcessing : Boolean = false
Flag that determines if there are any remote background operations ongoing.
FlexCalendar
  context : CalendarContext
Calendar context - holds calendar configuration parameters, services etc.
FlexCalendar
  currentRenderer : ICalendarItemRenderer = null
Renderer selected by mouse movement, or null if none
FlexCalendar
  dayViewContainer : DayViewContainer
Component containing day/multiday subcomponents
FlexCalendar
  dayViewDragManager : DayViewDragManager
Day view manager instance, for handling move and resize in day view
FlexCalendar
  dayViewHeaderDragManager : DayViewHeaderDragManager
Day view header manager instance, for handling move in header of the day view
FlexCalendar
  header : CalendarHeader
Calendars header
FlexCalendar
  monthViewDragManager : MonthViewDragManager
Month view drag manager instance, for handling move events in month view
FlexCalendar
  visibleItemsDetails : Array
Array of currently visible items, sorted by start time
FlexCalendar
Public Methods
 MethodDefined By
  
Creates FlexCalendar instance
FlexCalendar
  
deleteItemDetails(deletedItemDetails:ItemDetails):void
Delete item detail.
FlexCalendar
  
Invalidate cache in data provider.
FlexCalendar
  
refresh(itemThatCausesTheRefresh:ICalendarItem = null):void
Refresh calendar after data modification.
FlexCalendar
  
This method is called from calendar item sets to force FlexCalendar instance to refresh its background processing flag based on all calendarItemSet flags.
FlexCalendar
  
updateItemDetails(updatedItemDetails:ItemDetails):void
Update and create item detail, redraw item on grid.
FlexCalendar
Protected Methods
 MethodDefined By
  
Creates alarm observer
FlexCalendar
  
Creates calendar context object
FlexCalendar
  
Create instance of CalendarCursorManager for handling cursor changes over item renderers.
FlexCalendar
  
Creates container for day view
FlexCalendar
  
Create instance of DayViewDragManager for handling mouse drag & drop events in day view.
FlexCalendar
  
Create instance of DayViewDragManager for handling mouse drag & drop events in day view.
FlexCalendar
  
Creates header
FlexCalendar
  
Creates container for the month view.
FlexCalendar
  
Create instance of MonthViewDragManager for handling mouse drag & drop events in the month view.
FlexCalendar
  
Creates view type strategy
FlexCalendar
  
FlexCalendar
Events
 Event Summary Defined By
  Dispatched for calendar items, when event alarm time is reachedFlexCalendar
  Dispatched when something was dropped to calendar's grid to create new calendar event.FlexCalendar
  Dispatched when calendar item is addedFlexCalendar
  Dispatched when calendar item is modifiedFlexCalendar
  Dispatched when calendar item is removedFlexCalendar
  Dispatched when any of calendar item set's metadata has changed.FlexCalendar
  Dispatched when user clicks on the free calendar spaceFlexCalendar
  Dispatched when user double clicks on the free calendar spaceFlexCalendar
  Dispatched when user clicks on editable calendar item rendererFlexCalendar
  Dispatched when user double clicks on the calendar item rendererFlexCalendar
  Dispatched when user clicks on the calendar space item rendererFlexCalendar
  Dispatched when user double clicks on the calendar space item rendererFlexCalendar
  Dispatched when error occurs during retrieving events from remote service.FlexCalendar
  Dispatched when events were successfully retrieved from remote service for given period of time.FlexCalendar
  Dispatched when user clicks on read only calendar item rendererFlexCalendar
Styles
 Style Description Defined By
  
addCursor
Type: Class CSS Inheritance: no
Cursor image to indicate that item can be added. The default value is com/flexcalendar/components/calendar/assets/add.png.
FlexCalendar
  
backgroundAlpha
Type: Number CSS Inheritance: no
Background alpha. The default value is 1.
FlexCalendar
  
backgroundColor
Type: uint Format: Color CSS Inheritance: no
Background color for days grid The default value is 0xffffff;.
FlexCalendar
  
blockCursor
Type: Class CSS Inheritance: no
Cursor image for block indicator. The default value is com/flexcalendar/components/calendar/assets/block.png.
FlexCalendar
  
borderColor
Type: uint Format: Color CSS Inheritance: no
Border color The default value is 0xbbccff.
FlexCalendar
  
headerHeight
Type: Number Format: Length CSS Inheritance: no
Height of the header The default value is 30.
FlexCalendar
  
headerVisible
Type: Boolean CSS Inheritance: no
Visibility of the header The default value is true.
FlexCalendar
  
moveCursor
Type: Class CSS Inheritance: no
Cursor image for moving items. The default value is com/flexcalendar/components/calendar/assets/move.png.
FlexCalendar
  
resizeCursor
Type: Class CSS Inheritance: no
Cursor image for resizing items. The default value is com/flexcalendar/components/calendar/assets/resize.png.
FlexCalendar
Property Detail
_backgroundProcessingproperty
protected var _backgroundProcessing:Boolean = false

Flag that determines if there are any remote background operations ongoing. It's value is determined by all of it's calendarItemSets. When any of calendarItemSet's backgroundProcessing flag is set it can be assumed that this flag is set as well.

acceptItemsInLimitedEditModeAlwaysButInUnavailableSpaceproperty 
acceptItemsInLimitedEditModeAlwaysButInUnavailableSpace:Boolean

Flag that indicates whether items can be placed outside available spaces in limited edit mode.

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


Implementation
    public function get acceptItemsInLimitedEditModeAlwaysButInUnavailableSpace():Boolean
    public function set acceptItemsInLimitedEditModeAlwaysButInUnavailableSpace(value:Boolean):void
availableSpaceIsMoreImportantThanUnavailableSpaceproperty 
availableSpaceIsMoreImportantThanUnavailableSpace:Boolean

Flag that indicates whether available space is more important than unavailable space.

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


Implementation
    public function get availableSpaceIsMoreImportantThanUnavailableSpace():Boolean
    public function set availableSpaceIsMoreImportantThanUnavailableSpace(value:Boolean):void
backgroundProcessingproperty 
backgroundProcessing:Boolean

Flag that determines if there are any remote background operations ongoing. It's value is determined by all of it's calendarItemSets. When any of calendarItemSet's backgroundProcessing flag is set it can be assumed that this flag is set as well.

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


Implementation
    public function get backgroundProcessing():Boolean
    public function set backgroundProcessing(value:Boolean):void
cacheTimeToLiveproperty 
cacheTimeToLive:Number

Get Time to live in milliseconds for cached items. It is possible to force invalidate cache for entire FlexCalendar or for any of CalendarItemSet individually.


Implementation
    public function get cacheTimeToLive():Number
    public function set cacheTimeToLive(value:Number):void
calendarDayViewAvailableSpaceRendererproperty 
calendarDayViewAvailableSpaceRenderer:Class

Calendar available space renderer class. Class instances are created for special spaces in the day.


Implementation
    public function get calendarDayViewAvailableSpaceRenderer():Class
    public function set calendarDayViewAvailableSpaceRenderer(value:Class):void
calendarDayViewContainerproperty 
calendarDayViewContainer:DayViewContainer  [read-only]


Implementation
    public function get calendarDayViewContainer():DayViewContainer
calendarDayViewItemRendererproperty 
calendarDayViewItemRenderer:Class

Calendar item renderer class. Class instances are created for events in the day and multiday view.


Implementation
    public function get calendarDayViewItemRenderer():Class
    public function set calendarDayViewItemRenderer(value:Class):void
calendarDayViewLongItemRendererproperty 
calendarDayViewLongItemRenderer:Class

Calendar item renderer class. Class instances are created for long events in the day and multiday view and displayed in the header.


Implementation
    public function get calendarDayViewLongItemRenderer():Class
    public function set calendarDayViewLongItemRenderer(value:Class):void
calendarDayViewUnavailableSpaceRendererproperty 
calendarDayViewUnavailableSpaceRenderer:Class

Calendar unavailable space renderer class. Class instances are created for special spaces in the day.


Implementation
    public function get calendarDayViewUnavailableSpaceRenderer():Class
    public function set calendarDayViewUnavailableSpaceRenderer(value:Class):void
calendarHeaderproperty 
calendarHeader:CalendarHeader  [read-only]

Calendar's header object


Implementation
    public function get calendarHeader():CalendarHeader
calendarModeproperty 
calendarMode:int

Calendar mode defines rules of calendar items' editing.

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


Implementation
    public function get calendarMode():int
    public function set calendarMode(value:int):void

See also

calendarMonthViewItemRendererproperty 
calendarMonthViewItemRenderer:Class

Calendar item renderer class. Class instances are created for events in the month view.


Implementation
    public function get calendarMonthViewItemRenderer():Class
    public function set calendarMonthViewItemRenderer(value:Class):void
calendarMonthViewLongItemRendererproperty 
calendarMonthViewLongItemRenderer:Class

Calendar item renderer class. Class instances are created for events in the month view.


Implementation
    public function get calendarMonthViewLongItemRenderer():Class
    public function set calendarMonthViewLongItemRenderer(value:Class):void
columnModeEnabledproperty 
columnModeEnabled:Boolean

Flag that indicates whether column mode is enabled or not.

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


Implementation
    public function get columnModeEnabled():Boolean
    public function set columnModeEnabled(value:Boolean):void
contextproperty 
context:CalendarContext

Calendar context - holds calendar configuration parameters, services etc.

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


Implementation
    protected function get context():CalendarContext
    protected function set context(value:CalendarContext):void
currentDayIndicatorproperty 
currentDayIndicator:Boolean

If true, current day is highlighted accordingly to styles. Default is true.

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


Implementation
    public function get currentDayIndicator():Boolean
    public function set currentDayIndicator(value:Boolean):void
currentRendererproperty 
protected var currentRenderer:ICalendarItemRenderer = null

Renderer selected by mouse movement, or null if none

currentTimeIndicatorproperty 
currentTimeIndicator:Boolean

If true, current time indicator is drawn on the day view. Default is true.

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


Implementation
    public function get currentTimeIndicator():Boolean
    public function set currentTimeIndicator(value:Boolean):void
currentTimeIndicatorDelayproperty 
currentTimeIndicatorDelay:Number

Time between refreshing current time indicator position; Default: 60000 (one minute)

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


Implementation
    public function get currentTimeIndicatorDelay():Number
    public function set currentTimeIndicatorDelay(value:Number):void
dataProviderproperty 
dataProvider:ICalendarDataProvider

Calendar data provider instance


Implementation
    public function get dataProvider():ICalendarDataProvider
    public function set dataProvider(value:ICalendarDataProvider):void
dayViewContainerproperty 
protected var dayViewContainer:DayViewContainer

Component containing day/multiday subcomponents

dayViewDragManagerproperty 
protected var dayViewDragManager:DayViewDragManager

Day view manager instance, for handling move and resize in day view

dayViewHeaderDragManagerproperty 
protected var dayViewHeaderDragManager:DayViewHeaderDragManager

Day view header manager instance, for handling move in header of the day view

dragBetweenColumnsEnabledproperty 
dragBetweenColumnsEnabled:Boolean

FLag that indicates whether dragging between columns/calendars is enabled in column mode.

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


Implementation
    public function get dragBetweenColumnsEnabled():Boolean
    public function set dragBetweenColumnsEnabled(value:Boolean):void
dropUiComponentsEnabledproperty 
dropUiComponentsEnabled:Boolean

FLag that indicates whether dropped UIComponents can create calendar item.

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


Implementation
    public function get dropUiComponentsEnabled():Boolean
    public function set dropUiComponentsEnabled(value:Boolean):void
firstDayOfWeekproperty 
firstDayOfWeek:int

First day in the week. As default, Sunday (0) is set. 0 for Sunday, 1 for Monday, and so on.

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


Implementation
    public function get firstDayOfWeek():int
    public function set firstDayOfWeek(value:int):void
granularityMinutesproperty 
granularityMinutes:Number  [write-only]


Implementation
    public function set granularityMinutes(value:Number):void
headerproperty 
protected var header:CalendarHeader

Calendars header

initialHourPositionproperty 
initialHourPosition:Number

When FlexCalendar instance is created, it will show hours in day/multiday view from to this value. As default, this value is set to 7

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


Implementation
    public function get initialHourPosition():Number
    public function set initialHourPosition(value:Number):void
itemEditorproperty 
itemEditor:IItemEditor

Editor for items - invoked when user requests Class instances are created for events in the day and multiday view.


Implementation
    public function get itemEditor():IItemEditor
    public function set itemEditor(value:IItemEditor):void
licenseproperty 
license:String  [write-only]

Calendar license key This property is write-only.


Implementation
    public function set license(value:String):void
minDaysInFirstWeekproperty 
minDaysInFirstWeek:int

Minimal number of days in the first week of year. Default value: 1. The value must be in the range 1 to 7. Two values seems to be most common: - 1 - The first week is week that contains Jan 1st. - 4 - The first week is the week that contains Jan 4th. This is recommended in ISO 8601:2000 standard and used in: AT BE CA CD CH DE DK FI FR IT LI LT LU MC MT NL NO SE SK

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


Implementation
    public function get minDaysInFirstWeek():int
    public function set minDaysInFirstWeek(value:int):void
monthViewContainerproperty 
public var monthViewContainer:MonthViewContainer

Component containing month subcomponents

monthViewDragManagerproperty 
protected var monthViewDragManager:MonthViewDragManager

Month view drag manager instance, for handling move events in month view

readOnlyproperty 
readOnly:Boolean  [read-only]

Indicates whether entire component is readonly. If it's readonly user can not modify it.


Implementation
    public function get readOnly():Boolean
realVisibleRangeproperty 
realVisibleRange:DateRange  [read-only]

This is read-only value of the real visible range, displayed by the calendar component. It can differ from visibleRange. For example, when requested visibleRange value is more than one week, month view is displayed, with start date before requested start date and end date after requested end date.

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


Implementation
    public function get realVisibleRange():DateRange
snapToGridThresholdproperty 
snapToGridThreshold:int  [write-only]

Snap to grid in the day view threshold, in minutes. Default value is 30 minutes.


Implementation
    public function set snapToGridThreshold(value:int):void

See also

viewTypeproperty 
viewType:int  [read-only]


Implementation
    public function get viewType():int
viewTypeStrategyproperty 
public var viewTypeStrategy:IViewTypeStrategy

Strategy for determining view type, based on the DateRange value.

See also

visibleHoursEndproperty 
visibleHoursEnd:Number  [write-only]

Set visible hours range's end hour It's applied only when visibleHoursLimited is set


Implementation
    public function set visibleHoursEnd(value:Number):void
visibleHoursLimitedproperty 
visibleHoursLimited:Boolean  [write-only]

Determines whether visible hours are limited to those in specified range (between visibleHoursStart and visibleHoursEnd)


Implementation
    public function set visibleHoursLimited(value:Boolean):void
visibleHoursStartproperty 
visibleHoursStart:Number  [write-only]

Set visible hours range's start hour It's applied only when visibleHoursLimited is set


Implementation
    public function set visibleHoursStart(value:Number):void
visibleItemsDetailsproperty 
protected var visibleItemsDetails:Array

Array of currently visible items, sorted by start time

visibleRangeproperty 
visibleRange:DateRange

Displayed DateRange instance. Selected view is determined using ViewTypeStrategy, by default:

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


Implementation
    public function get visibleRange():DateRange
    public function set visibleRange(value:DateRange):void
wheelScrollSpeedproperty 
wheelScrollSpeed:Number

Wheel scrolling speed. Default value: 50.0

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


Implementation
    public function get wheelScrollSpeed():Number
    public function set wheelScrollSpeed(value:Number):void
Constructor Detail
FlexCalendar()Constructor
public function FlexCalendar()

Creates FlexCalendar instance

Method Detail
createAlarmObserver()method
protected function createAlarmObserver():void

Creates alarm observer

createCalendarContext()method 
protected function createCalendarContext():void

Creates calendar context object

createCalendarCursorManager()method 
protected function createCalendarCursorManager():void

Create instance of CalendarCursorManager for handling cursor changes over item renderers.

createDayViewContainer()method 
protected function createDayViewContainer():void

Creates container for day view

createDayViewDragManager()method 
protected function createDayViewDragManager():void

Create instance of DayViewDragManager for handling mouse drag & drop events in day view.

createDayViewHeaderDragManager()method 
protected function createDayViewHeaderDragManager():void

Create instance of DayViewDragManager for handling mouse drag & drop events in day view.

createHeader()method 
protected function createHeader():void

Creates header

createMonthViewContainer()method 
protected function createMonthViewContainer():void

Creates container for the month view.

createMonthViewDragManager()method 
protected function createMonthViewDragManager():void

Create instance of MonthViewDragManager for handling mouse drag & drop events in the month view.

createViewTypeStrategy()method 
protected function createViewTypeStrategy():void

Creates view type strategy

deleteItemDetails()method 
public function deleteItemDetails(deletedItemDetails:ItemDetails):void

Delete item detail.

Parameters

deletedItemDetails:ItemDetails — deleted item details.

invalidateCache()method 
public function invalidateCache():void

Invalidate cache in data provider.

refresh()method 
public function refresh(itemThatCausesTheRefresh:ICalendarItem = null):void

Refresh calendar after data modification.

Parameters

itemThatCausesTheRefresh:ICalendarItem (default = null)

refreshBackgroundProcessingFlag()method 
public function refreshBackgroundProcessingFlag():void

This method is called from calendar item sets to force FlexCalendar instance to refresh its background processing flag based on all calendarItemSet flags.

setCalendarContextToRenderersFactories()method 
protected function setCalendarContextToRenderersFactories():void

updateItemDetails()method 
public function updateItemDetails(updatedItemDetails:ItemDetails):void

Update and create item detail, redraw item on grid.

Parameters

updatedItemDetails:ItemDetails — updated item details.

Event Detail
calendarAlarmEvent Event
Event Object Type: com.flexcalendar.components.calendar.events.AlarmEvent

Dispatched for calendar items, when event alarm time is reached

calendarDropEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarDragEvent

Dispatched when something was dropped to calendar's grid to create new calendar event.

calendarItemAddedEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarItemAddedEvent

Dispatched when calendar item is added

calendarItemModificationEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarItemModificationEvent

Dispatched when calendar item is modified

calendarItemRemovedEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarItemRemovedEvent

Dispatched when calendar item is removed

calendarItemSetMetadataUpdatedEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarItemSetMetadataUpdatedEvent

Dispatched when any of calendar item set's metadata has changed.

calendarMouseClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user clicks on the free calendar space

calendarMouseDoubleClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user double clicks on the free calendar space

calendarRendererMouseClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user clicks on editable calendar item renderer

calendarRendererMouseDoubleClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user double clicks on the calendar item renderer

calendarSpaceRendererMouseClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user clicks on the calendar space item renderer

calendarSpaceRendererMouseDoubleClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user double clicks on the calendar space item renderer

getEventsForDateRangeErrorEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.GetEventsForDateRangeErrorEvent

Dispatched when error occurs during retrieving events from remote service.

getEventsForDateRangeSuccessEvent Event  
Event Object Type: com.flexcalendar.components.calendar.events.GetEventsForDateRangeSuccessEvent

Dispatched when events were successfully retrieved from remote service for given period of time.

readonlyCalendarRendererMouseClick Event  
Event Object Type: com.flexcalendar.components.calendar.events.CalendarMouseEvent

Dispatched when user clicks on read only calendar item renderer

Examples
Simple usage:
 <?xml version="1.0" encoding="utf-8"?>
 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:flexcalendar="com.flexcalendar.components.calendar.*"
 backgroundColor="0xFFFFFF"
 minHeight="500" minWidth="700">
 <flexcalendar:FlexCalendar id="flexCalendar" width="100%" height="100%" />
 </mx:Application>
 
Creating own data provider and displaying sample items. Tip: you can change date of the created calendar item!
 <?xml version="1.0" encoding="utf-8"?>
 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:flexcalendar="com.flexcalendar.components.calendar.*"
 backgroundColor="0xFFFFFF"
 minHeight="500" minWidth="700"
 initialize="initHandler()">
 <mx:Script>
 <![CDATA[
 import com.flexcalendar.components.calendar.core.dataModel.CalendarDataProvider;
 import com.flexcalendar.components.calendar.core.dataModel.CalendarItem;
 import com.flexcalendar.components.calendar.core.dataModel.CalendarItemSet;
 [Bindable]
 public var dataProvider:CalendarDataProvider;
 public function initHandler():void
 {
     var dp:CalendarDataProvider = new CalendarDataProvider();
     var itemSet:CalendarItemSet = new CalendarItemSet();
     var calendarItem:CalendarItem = new CalendarItem(new Date(2010, 11, 21, 10), new Date(2010, 11, 21, 11), "Sample item");
     itemSet.addItem(calendarItem);
     dp.addItemSet(itemSet);
     dataProvider = dp;
 }
 ]]>
 </mx:Script>
 <flexcalendar:FlexCalendar id="flexCalendar" dataProvider="{dataProvider}" width="100%" height="100%" />
 </mx:Application>
 
Using item editor implementation - in this example DefaultItemEditor included with this lib. Flex Calendar comes with two item editor implementations: DefaultItemEditor and BaloonItemEditor (the one shown on the demo version at our site).
 <?xml version="1.0" encoding="utf-8"?>
 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:flexcalendar="com.flexcalendar.components.calendar.*"
 backgroundColor="0xFFFFFF"
 minHeight="500" minWidth="700">
 <mx:Script>
 <![CDATA[
 import com.flexcalendar.components.calendar.editor.DefaultItemEditor;
 ]]>
 </mx:Script>
 <flexcalendar:FlexCalendar id="flexCalendar" itemEditor="{new DefaultItemEditor(flexCalendar)}" width="100%" height="100%" />
 </mx:Application>
 
Setting calendar component into mode where editing is limited to defined spaces
 <?xml version="1.0" encoding="utf-8"?>
 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:flexcalendar="com.flexcalendar.components.calendar.*"
 backgroundColor="0xFFFFFF"
 minHeight="500" minWidth="700">
 <mx:Script>
 <![CDATA[
 import com.flexcalendar.components.calendar.editor.DefaultItemEditor;
 import com.flexcalendar.components.calendar.utils.CalendarMode;
 ]]>
 </mx:Script>
 <flexcalendar:FlexCalendar id="flexCalendar" calendarMode="{CalendarMode.LIMITED_EDIT_MODE}" width="100%" height="100%" />
 </mx:Application>
 
For more examples see description of other classes.