Packagecom.flexcalendar.components.calendar.displayClasses.grids
Classpublic class MonthViewGrid
InheritanceMonthViewGrid Inheritance BaseGrid Inheritance mx.core.UIComponent
Implements IRenderersContainer

Draws grid of days in the month view



Public Properties
 PropertyDefined By
  currentDayHighlighted : Boolean
[write-only]
MonthViewGrid
  firstDay : int
First day in the week.
MonthViewGrid
  visibleItemsDetails : Array
[override] Set array of sorted visible item details.
MonthViewGrid
 InheritedvisibleSpacesDetails : Array
BaseGrid
Protected Properties
 PropertyDefined By
 Inherited_backgroundAlpha : Number
Holds read style value
BaseGrid
 Inherited_backgroundColor : uint
Holds read style value
BaseGrid
 Inherited_columnLineAlpha : Number
Holds read style value
BaseGrid
 Inherited_columnLineColor : uint
Holds read style value
BaseGrid
 Inherited_columnLineThickness : Number
Holds read style value
BaseGrid
 Inheritedcontext : ICalendarContext
Calendar context - holds calendar configuration parameters, services etc.
BaseGrid
 Inherited_currentDayBackgroundAlpha : Number
Holds read style value
BaseGrid
 Inherited_currentDayBackgroundColor : uint
Holds read style value
BaseGrid
 Inherited_currentDayHighlighted : Boolean
Holds read style value
BaseGrid
 InheriteditemRenderersFactory : ClassFactory
Class factory for default item renderers
BaseGrid
 Inherited_lineAlpha : Number
Holds read style value
BaseGrid
 Inherited_lineColor : uint
Holds read style value
BaseGrid
 Inherited_lineThickness : Number
Holds read style value
BaseGrid
  longItemRenderersFactory : ClassFactory
Class factory for default item renderers
MonthViewGrid
  longVisibleItemsDetails : Array
Array of long item details.
MonthViewGrid
 Inherited_movingItemAlpha : Number
Holds read style value
BaseGrid
  normalVisibleItemsDetails : Array
Array of normal item details.
MonthViewGrid
 Inherited_visibleItemsDetails : Array
BaseGrid
Public Methods
 MethodDefined By
  
MonthViewGrid(context:ICalendarContext, itemRenderersFactory:ClassFactory, longItemRenderersFactory:ClassFactory)
Create new instance of MonthViewGrid
MonthViewGrid
  
deleteItemDetails(deletedItemDetails:ItemDetails):void
Delete item details.
MonthViewGrid
  
endDrag():void
Called at the end of the drag
MonthViewGrid
  
layoutMovingItemDetails(movingRenderer:ICalendarItemRenderer, startGlobalPosition:Point, currentGlobalPosition:Point):void
Layout item renderer when item renderer is moved
MonthViewGrid
  
pointToDate(point:Point):Date
[override] Convert local point to date,
MonthViewGrid
  
removeRenderers(itemDetails:ItemDetails):void
[override] Remove all renderers for item details.
MonthViewGrid
  
Request range computation
MonthViewGrid
  
updateItemDetails(updatedItemDetails:ItemDetails):void
Update or create item details.
MonthViewGrid
Protected Methods
 MethodDefined By
 Inherited
Adds mouse event for clicking and double-clicking on the component
BaseGrid
 Inherited
normalizePoint(point:Point):Point
Normalize point - change minimal position to 0 and maximum to unscaled width or unscaled height.
BaseGrid
 Inherited
Function for reading style values.
BaseGrid
Styles
 Style Description Defined By
 InheritedType: Number CSS Inheritance: no
Background alpha.
BaseGrid
 InheritedType: uint Format: Color CSS Inheritance: no
Background color for days grid.
BaseGrid
  
cellHeaderAlpha
Type: Number CSS Inheritance: no
Alpha of cell header The default value is 1.
MonthViewGrid
  
cellHeaderBackground
Type: uint Format: Color CSS Inheritance: no
Color of cell header The default value is 0xF8F9FF;.
MonthViewGrid
  
cellHeaderHeight
Type: Number Format: Length CSS Inheritance: no
Cell header height The default value is 18;.
MonthViewGrid
 InheritedType: Number CSS Inheritance: no
Background alpha for current day.
BaseGrid
 InheritedType: uint Format: Color CSS Inheritance: no
Background color for current day.
BaseGrid
  
currentDayCellHeaderAlpha
Type: Number CSS Inheritance: no
Alpha of cell header for current day The default value is 1.
MonthViewGrid
  
currentDayCellHeaderBackground
Type: uint Format: Color CSS Inheritance: no
Color of cell header for current day The default value is 0xF8F9FF;.
MonthViewGrid
 InheritedType: Boolean CSS Inheritance: no
Current day highlighted or not.
BaseGrid
  
dragHighlightAlpha
Type: Number CSS Inheritance: no
Drag highlight alpha The default value is 0.5.
MonthViewGrid
  
dragHighlightColor
Type: uint Format: Color CSS Inheritance: no
Drag highlight color The default value is 0xD1D4DF;.
MonthViewGrid
  
excessIndicatorHeight
Type: Number Format: Lenght CSS Inheritance: no
Excess indicator height, visible when there are more items than can be shown at once. There CSS property .flexCalendarExcessIndicator set for each label on the excess indicator.s The default value is 16;.
MonthViewGrid
 InheritedType: Number CSS Inheritance: no
Line alpha.
BaseGrid
 InheritedType: uint Format: Color CSS Inheritance: no
Color of grid lines.
BaseGrid
 InheritedType: Number Format: Length CSS Inheritance: no
Grid line thickness.
BaseGrid
 InheritedType: Number CSS Inheritance: no
Moving renderer alpha.
BaseGrid
  
rendererHeight
Type: Number Format: Lenght CSS Inheritance: no
Renderer height The default value is 18;.
MonthViewGrid
Property Detail
currentDayHighlightedproperty
currentDayHighlighted:Boolean  [write-only]


Implementation
    public function set currentDayHighlighted(value:Boolean):void
firstDayproperty 
firstDay:int

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


Implementation
    public function get firstDay():int
    public function set firstDay(value:int):void
longItemRenderersFactoryproperty 
protected var longItemRenderersFactory:ClassFactory

Class factory for default item renderers

longVisibleItemsDetailsproperty 
protected var longVisibleItemsDetails:Array

Array of long item details.

normalVisibleItemsDetailsproperty 
protected var normalVisibleItemsDetails:Array

Array of normal item details.

visibleItemsDetailsproperty 
visibleItemsDetails:Array[override]

Set array of sorted visible item details.


Implementation
    public function get visibleItemsDetails():Array
    public function set visibleItemsDetails(value:Array):void
Constructor Detail
MonthViewGrid()Constructor
public function MonthViewGrid(context:ICalendarContext, itemRenderersFactory:ClassFactory, longItemRenderersFactory:ClassFactory)

Create new instance of MonthViewGrid

Parameters
context:ICalendarContext — item renderers factory for this view
 
itemRenderersFactory:ClassFactory
 
longItemRenderersFactory:ClassFactory
Method Detail
deleteItemDetails()method
public function deleteItemDetails(deletedItemDetails:ItemDetails):void

Delete item details.

Parameters

deletedItemDetails:ItemDetails — item to delete.

endDrag()method 
public function endDrag():void

Called at the end of the drag

layoutMovingItemDetails()method 
public function layoutMovingItemDetails(movingRenderer:ICalendarItemRenderer, startGlobalPosition:Point, currentGlobalPosition:Point):void

Layout item renderer when item renderer is moved

Parameters

movingRenderer:ICalendarItemRenderer — item renderer to layout
 
startGlobalPosition:Point — start click position, in global coordinates
 
currentGlobalPosition:Point — current mouse positon, in global coordinates

pointToDate()method 
override public function pointToDate(point:Point):Date

Convert local point to date,

Parameters

point:Point — requested point, in local coordinates

Returns
Date — date object, computed based on point location
removeRenderers()method 
override public function removeRenderers(itemDetails:ItemDetails):void

Remove all renderers for item details.

Parameters

itemDetails:ItemDetails — item which renderers will be removed.

requestRange()method 
public function requestRange(requestedRange:DateRange):DateRange

Request range computation

Parameters

requestedRange:DateRange

Returns
DateRange — computed range - in this case returns first month of requested range
updateItemDetails()method 
public function updateItemDetails(updatedItemDetails:ItemDetails):void

Update or create item details. Move renderers in new place and redraw layout.

Parameters

updatedItemDetails:ItemDetails — item to update.