Packagecom.flexcalendar.components.calendar.displayClasses.grids
Classpublic class BaseGrid
InheritanceBaseGrid Inheritance mx.core.UIComponent
Implements IRenderersContainer, IGrid
Subclasses DayViewGrid, MonthViewGrid

Base class for Flex Calendar grids (month and day/multiday)



Public Properties
 PropertyDefined By
  visibleItemsDetails : Array
Array of visible ItemsDetails, sorted by start date.
BaseGrid
  visibleSpacesDetails : Array
BaseGrid
Protected Properties
 PropertyDefined By
  _backgroundAlpha : Number
Holds read style value
BaseGrid
  _backgroundColor : uint
Holds read style value
BaseGrid
  _columnLineAlpha : Number
Holds read style value
BaseGrid
  _columnLineColor : uint
Holds read style value
BaseGrid
  _columnLineThickness : Number
Holds read style value
BaseGrid
  context : ICalendarContext
Calendar context - holds calendar configuration parameters, services etc.
BaseGrid
  _currentDayBackgroundAlpha : Number
Holds read style value
BaseGrid
  _currentDayBackgroundColor : uint
Holds read style value
BaseGrid
  _currentDayHighlighted : Boolean
Holds read style value
BaseGrid
  itemRenderersFactory : ClassFactory
Class factory for default item renderers
BaseGrid
  _lineAlpha : Number
Holds read style value
BaseGrid
  _lineColor : uint
Holds read style value
BaseGrid
  _lineThickness : Number
Holds read style value
BaseGrid
  _movingItemAlpha : Number
Holds read style value
BaseGrid
  _visibleItemsDetails : Array
BaseGrid
Public Methods
 MethodDefined By
  
BaseGrid(context:ICalendarContext, itemRenderersFactory:ClassFactory)
This class is abstract and should not be created directly.
BaseGrid
  
pointToDate(point:Point):Date
Convert local point to date, Should be implemented by subcomponents.
BaseGrid
  
removeRenderers(itemDetails:ItemDetails):void
Remove all renderers for item details.
BaseGrid
Protected Methods
 MethodDefined By
  
Adds mouse event for clicking and double-clicking on the component
BaseGrid
  
normalizePoint(point:Point):Point
Normalize point - change minimal position to 0 and maximum to unscaled width or unscaled height.
BaseGrid
  
Function for reading style values.
BaseGrid
Styles
 Style Description Defined By
  
backgroundAlpha
Type: Number CSS Inheritance: no
Background alpha. The default value is 1.
BaseGrid
  
backgroundColor
Type: uint Format: Color CSS Inheritance: no
Background color for days grid The default value is 0xffffff;.
BaseGrid
  
currentDayBackgroundAlpha
Type: Number CSS Inheritance: no
Background alpha for current day. The default value is 0.6.
BaseGrid
  
currentDayBackgroundColor
Type: uint Format: Color CSS Inheritance: no
Background color for current day The default value is 0xfad163;.
BaseGrid
  
currentDayHighlighted
Type: Boolean CSS Inheritance: no
Current day highlighted or not The default value is true.
BaseGrid
  
lineAlpha
Type: Number CSS Inheritance: no
Line alpha The default value is 1;.
BaseGrid
  
lineColor
Type: uint Format: Color CSS Inheritance: no
Color of grid lines The default value is 0xdddddd;.
BaseGrid
  
lineThickness
Type: Number Format: Length CSS Inheritance: no
Grid line thickness The default value is 1;.
BaseGrid
  
movingItemAlpha
Type: Number CSS Inheritance: no
Moving renderer alpha. The default value is 0.8.
BaseGrid
Property Detail
_backgroundAlphaproperty
protected var _backgroundAlpha:Number

Holds read style value

_backgroundColorproperty 
protected var _backgroundColor:uint

Holds read style value

_columnLineAlphaproperty 
protected var _columnLineAlpha:Number

Holds read style value

_columnLineColorproperty 
protected var _columnLineColor:uint

Holds read style value

_columnLineThicknessproperty 
protected var _columnLineThickness:Number

Holds read style value

_currentDayBackgroundAlphaproperty 
protected var _currentDayBackgroundAlpha:Number

Holds read style value

_currentDayBackgroundColorproperty 
protected var _currentDayBackgroundColor:uint

Holds read style value

_currentDayHighlightedproperty 
protected var _currentDayHighlighted:Boolean

Holds read style value

_lineAlphaproperty 
protected var _lineAlpha:Number

Holds read style value

_lineColorproperty 
protected var _lineColor:uint

Holds read style value

_lineThicknessproperty 
protected var _lineThickness:Number

Holds read style value

_movingItemAlphaproperty 
protected var _movingItemAlpha:Number

Holds read style value

_visibleItemsDetailsproperty 
protected var _visibleItemsDetails:Array

contextproperty 
protected var context:ICalendarContext

Calendar context - holds calendar configuration parameters, services etc.

itemRenderersFactoryproperty 
protected var itemRenderersFactory:ClassFactory

Class factory for default item renderers

visibleItemsDetailsproperty 
visibleItemsDetails:Array

Array of visible ItemsDetails, sorted by start date.

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


Implementation
    public function get visibleItemsDetails():Array
    public function set visibleItemsDetails(value:Array):void
visibleSpacesDetailsproperty 
visibleSpacesDetails:Array

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


Implementation
    public function get visibleSpacesDetails():Array
    public function set visibleSpacesDetails(value:Array):void
Constructor Detail
BaseGrid()Constructor
public function BaseGrid(context:ICalendarContext, itemRenderersFactory:ClassFactory)

This class is abstract and should not be created directly.

Parameters
context:ICalendarContext
 
itemRenderersFactory:ClassFactory
Method Detail
addClickHandlers()method
protected function addClickHandlers():void

Adds mouse event for clicking and double-clicking on the component

normalizePoint()method 
protected function normalizePoint(point:Point):Point

Normalize point - change minimal position to 0 and maximum to unscaled width or unscaled height.

Parameters

point:Point — Point to normalize

Returns
Point — normalized point
pointToDate()method 
public function pointToDate(point:Point):Date

Convert local point to date, Should be implemented by subcomponents.

Parameters

point:Point — requested point, in local coordinates

Returns
Date — date object, computed based on point location
readStyleValues()method 
protected function readStyleValues():void

Function for reading style values.

removeRenderers()method 
public function removeRenderers(itemDetails:ItemDetails):void

Remove all renderers for item details.

Parameters

itemDetails:ItemDetails — item which renderers will be removed.