Packagecom.flexcalendar.components.calendar.displayClasses.renderers.defaults
Classpublic class DefaultCalendarDayViewUnavailableSpaceRenderer
InheritanceDefaultCalendarDayViewUnavailableSpaceRenderer Inheritance BaseCalendarItemRenderer Inheritance mx.core.UIComponent

[PRO-LICENCE-REQUIRED] - to use features marked as [PRO-LICENCE-REQUIRED] you need to purchase PRO licence of Flex Calendar Component.

Default item renderer that displays unavailable space (i. e. holidays) in day and multiday view.

Flex Calendar Component creates this type of renderes when you use addItemAsSpace method to add CalendarItem to CalendarItemSet.

Make sure that calendarMode property of FlexCalendar component is set to CalendarMode.LIMITED_EDIT_MODE If it's not in CalendarMode.LIMITED_EDIT_MODE, unavailableSpace is rendered in background and does not interact with regular items.

See also

com.flexcalendar.components.calendar.core.dataModel.ItemType
com.flexcalendar.components.calendar.utils.CalendarMode


Public Properties
 PropertyDefined By
 InheriteditemDetails : ItemDetails
Calendar item associated with this renderer.
BaseCalendarItemRenderer
Protected Properties
 PropertyDefined By
 Inherited_backgroundAlpha : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_backgroundColor : uint
Holds read style value
BaseCalendarItemRenderer
  _backgroundImage : Class
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _backgroundType : String
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
 Inherited_borderAlpha : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_borderColor : uint
Holds read style value
BaseCalendarItemRenderer
 Inherited_borderThickness : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_calendarContext : ICalendarContext
Calendar context injected by factory
BaseCalendarItemRenderer
 Inherited_cornerRadius : Number
Holds read style value
BaseCalendarItemRenderer
  durationLabel : Label
Duration label - displays start and end hours
DefaultCalendarDayViewUnavailableSpaceRenderer
  _durationLabelFormat : String = JJ:NN
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  durationLabelForShortEvents : Label
Duration label for short events - displays only start hour
DefaultCalendarDayViewUnavailableSpaceRenderer
  _gradientAngle : Number
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _gradientColor1 : uint
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _gradientColor2 : uint
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _headerBackgroundAlpha : Number
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _headerBackgroundColor : uint
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _headerHeight : Number
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
 Inherited_itemDetails : ItemDetails
Internal calendar item object, accessed by getter/setter
BaseCalendarItemRenderer
 Inherited_margin : Number
Margin of element.
BaseCalendarItemRenderer
  recurImage : Image
Image indicating recurrence of rendered item
DefaultCalendarDayViewUnavailableSpaceRenderer
 Inherited_rendererAlpha : Number
Holds read style value
BaseCalendarItemRenderer
  _repeatImage : Class
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _resizeIndicatorAlpha : Number
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
  _resizeIndicatorColor : uint
Holds read style value
DefaultCalendarDayViewUnavailableSpaceRenderer
 InheritedsummaryLabel : Text
Summary label
BaseCalendarItemRenderer
 Inherited_textColor : Number
Holds read style value
BaseCalendarItemRenderer
Public Methods
 MethodDefined By
  
Creates new instance of DefaultCalendarDayViewItemRenderer.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
getPositionFunction(x:Number, y:Number):int
[override] Implementation of CalendarItemRenderer interface.
DefaultCalendarDayViewUnavailableSpaceRenderer
 Inherited
BaseCalendarItemRenderer
Protected Methods
 MethodDefined By
 Inherited
Create summary label
BaseCalendarItemRenderer
 Inherited
BaseCalendarItemRenderer
  
[override] Read component style values
DefaultCalendarDayViewUnavailableSpaceRenderer
Styles
 Style Description Defined By
 InheritedType: Number CSS Inheritance: no
Background alpha.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Background color.
BaseCalendarItemRenderer
  
backgroundImage
Type: Class CSS Inheritance: no
Image for background (is backgroundType is set as image) The default value is Embed("assets/unavailableBackground.png");.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
backgroundType
Type: String CSS Inheritance: no
Type of background (solid, gradient or image) The default value is solid.
DefaultCalendarDayViewUnavailableSpaceRenderer
 InheritedType: Number CSS Inheritance: no
Border alpha.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Border color.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Border thickness.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Corner radius.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: yes
Color of text in the component if it is disabled.
BaseCalendarItemRenderer
  
durationLabelFormat
Type: String CSS Inheritance: no
Formatting style for range label. The default value is "JJ:NN".
DefaultCalendarDayViewUnavailableSpaceRenderer
 InheritedType: String CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Name of the font to use.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: yes
Height of the text, in pixels.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is italic font.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is boldface.
BaseCalendarItemRenderer
  
gradientAngle
Type: Number CSS Inheritance: no
Angle of background gradient. The default value is 220.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
gradientColor1
Type: uint Format: Color CSS Inheritance: no
First gradient color. The default value is 0xCCFFCC.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
gradientColor2
Type: uint Format: Color CSS Inheritance: no
Second gradient color. The default value is 0xFFFFCC.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
headerBackgroundAlpha
Type: Number CSS Inheritance: no
Header background alpha. The default value is 1.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
headerBackgroundColor
Type: uint Format: Color CSS Inheritance: no
Header background color. This value might be overridden by setting property in CalendarItem class The default value is 0x060D5E.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
headerHeight
Type: Number Format: Length CSS Inheritance: no
Header height The default value is 15.
DefaultCalendarDayViewUnavailableSpaceRenderer
 InheritedType: Boolean CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
The number of additional pixels to appear between each character.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Margin of renderer.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: no
Entire renderer alpha value.
BaseCalendarItemRenderer
  
repeatImage
Type: Class CSS Inheritance: no
Repeat image, displayed for repeating items. The default value is com/flexcalendar/components/calendar/assets/repeat.png.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
resizeIndicatorAlpha
Type: Number CSS Inheritance: no
Resize indicator alpha. The default value is 1.
DefaultCalendarDayViewUnavailableSpaceRenderer
  
resizeIndicatorColor
Type: uint Format: Color CSS Inheritance: no
Resize indicator color. The default value is 0xFFFFFF.
DefaultCalendarDayViewUnavailableSpaceRenderer
 InheritedType: String CSS Inheritance: yes
Alignment of text within a container.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Background color.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is underlined.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
BaseCalendarItemRenderer
Property Detail
_backgroundImageproperty
protected var _backgroundImage:Class

Holds read style value

_backgroundTypeproperty 
protected var _backgroundType:String

Holds read style value

_durationLabelFormatproperty 
protected var _durationLabelFormat:String = JJ:NN

Holds read style value

_gradientAngleproperty 
protected var _gradientAngle:Number

Holds read style value

_gradientColor1property 
protected var _gradientColor1:uint

Holds read style value

_gradientColor2property 
protected var _gradientColor2:uint

Holds read style value

_headerBackgroundAlphaproperty 
protected var _headerBackgroundAlpha:Number

Holds read style value

_headerBackgroundColorproperty 
protected var _headerBackgroundColor:uint

Holds read style value

_headerHeightproperty 
protected var _headerHeight:Number

Holds read style value

_repeatImageproperty 
protected var _repeatImage:Class

Holds read style value

_resizeIndicatorAlphaproperty 
protected var _resizeIndicatorAlpha:Number

Holds read style value

_resizeIndicatorColorproperty 
protected var _resizeIndicatorColor:uint

Holds read style value

durationLabelproperty 
protected var durationLabel:Label

Duration label - displays start and end hours

durationLabelForShortEventsproperty 
protected var durationLabelForShortEvents:Label

Duration label for short events - displays only start hour

recurImageproperty 
protected var recurImage:Image

Image indicating recurrence of rendered item

Constructor Detail
DefaultCalendarDayViewUnavailableSpaceRenderer()Constructor
public function DefaultCalendarDayViewUnavailableSpaceRenderer()

Creates new instance of DefaultCalendarDayViewItemRenderer. Should be called by ClassFactory object.

Method Detail
getPositionFunction()method
override public function getPositionFunction(x:Number, y:Number):int

Implementation of CalendarItemRenderer interface.

Parameters

x:Number — x position in component coordinates
 
y:Number — y position in component coordinates

Returns
int — value declared in CalendarRendererPositionFunction class

See also

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

Read component style values