Packagecom.flexcalendar.components.calendar.displayClasses.headers
Classpublic class CalendarHeader
InheritanceCalendarHeader Inheritance mx.core.UIComponent

Draws calendar header



Protected Properties
 PropertyDefined By
  context : ICalendarContext
Calendar context - holds calendar configuration parameters, services etc.
CalendarHeader
  dayButton : Button
Day button - selects single day
CalendarHeader
  monthButton : Button
Month button - selects one month
CalendarHeader
  nextButton : Button
Next button - select next period of time.
CalendarHeader
  previousButton : Button
Previous button - select previous period of time.
CalendarHeader
  rangeLabel : Label
Label displaying selected range
CalendarHeader
  todayButton : Button
Today button - selects current date
CalendarHeader
  weekButton : Button
Week button - selects single week
CalendarHeader
  workingWeekButton : Button
Working week button - selects week from Monday to Friday
CalendarHeader
Public Methods
 MethodDefined By
  
Creates calendar header instance
CalendarHeader
Protected Methods
 MethodDefined By
  
Create day button and add event handler
CalendarHeader
  
Create month button and add event handler
CalendarHeader
  
Create next button and add event handler
CalendarHeader
  
Create previous button and add event handler
CalendarHeader
  
Create range label
CalendarHeader
  
Create today button and add click event handler
CalendarHeader
  
Create week button and add event handler
CalendarHeader
  
Create week button and add event handler
CalendarHeader
  
Reads style values
CalendarHeader
Styles
 Style Description Defined By
  
backgroundAlpha
Type: Number CSS Inheritance: no
Background alpha. The default value is 1.
CalendarHeader
  
backgroundColor
Type: uint Format: Color CSS Inheritance: no
Header color The default value is 0xbbccff.
CalendarHeader
  
btnFontSize
Type: Number Format: Length CSS Inheritance: no
Size of buttons The default value is 12.
CalendarHeader
  
btnFontWeight
Type: String CSS Inheritance: no
Weight of the buttons' font The default value is normal.
CalendarHeader
  
btnskin
Type: Class CSS Inheritance: no
Image for buttons. The default value is com/flexcalendar/components/calendar/assets/modern/btn.png.
CalendarHeader
  
btnskinDown
Type: Class CSS Inheritance: no
Image for buttons. (state down) The default value is com/flexcalendar/components/calendar/assets/modern/btn.png.
CalendarHeader
  
btnskinOver
Type: Class CSS Inheritance: no
Image for buttons. (state over) The default value is com/flexcalendar/components/calendar/assets/modern/btn.png.
CalendarHeader
  
dayButtonVisible
Type: Boolean CSS Inheritance: no
Visibility of "Day" button The default value is true.
CalendarHeader
  
dayButtonWidth
Type: Number Format: Length CSS Inheritance: no
Width of "Day" button The default value is 90.
CalendarHeader
  
labelFormat
Type: String CSS Inheritance: no
Formatting style for range label. If set, this value overrides localized value. The default value is undefined.
CalendarHeader
  
monthButtonVisible
Type: Boolean CSS Inheritance: no
Visibility of "Month" button The default value is true.
CalendarHeader
  
monthButtonWidth
Type: Number Format: Length CSS Inheritance: no
Width of "Month" button The default value is 90.
CalendarHeader
  
navigationButtonsWidth
Type: Number Format: Length CSS Inheritance: no
Width of "navigation" button The default value is 30.
CalendarHeader
  
nextskin
Type: Class CSS Inheritance: no
Image for next time period button. The default value is com/flexcalendar/components/calendar/assets/nextskin.png.
CalendarHeader
  
nextskinDown
Type: Class CSS Inheritance: no
Image for next time period button. (state down) The default value is com/flexcalendar/components/calendar/assets/nextskin.png.
CalendarHeader
  
nextskinOver
Type: Class CSS Inheritance: no
Image for next time period button. (state over) The default value is com/flexcalendar/components/calendar/assets/nextskin.png.
CalendarHeader
  
prevskin
Type: Class CSS Inheritance: no
Image for previous time period button. The default value is com/flexcalendar/components/calendar/assets/prevskin.png.
CalendarHeader
  
prevskinDown
Type: Class CSS Inheritance: no
Image for previous time period button. (state down) The default value is com/flexcalendar/components/calendar/assets/prevskin.png.
CalendarHeader
  
prevskinOver
Type: Class CSS Inheritance: no
Image for previous time period button. (state over) The default value is com/flexcalendar/components/calendar/assets/prevskin.png.
CalendarHeader
  
rangeLabelColor
Type: uint Format: Color CSS Inheritance: no
Color of the range label The default value is .
CalendarHeader
  
rightButtonsPadding
Type: Number Format: Length CSS Inheritance: no
Right buttons padding The default value is -1.
CalendarHeader
  
todayButtonVisible
Type: Boolean CSS Inheritance: no
Visibility of "Today" button The default value is true.
CalendarHeader
  
todayButtonWidth
Type: Number Format: Length CSS Inheritance: no
Width of "Today" button The default value is 90.
CalendarHeader
  
vPadding
Type: Number Format: Length CSS Inheritance: no
Top and bottom padding The default value is 5.
CalendarHeader
  
weekButtonVisible
Type: Boolean CSS Inheritance: no
Visibility of "Week" button The default value is true.
CalendarHeader
  
weekButtonWidth
Type: Number Format: Length CSS Inheritance: no
Width of "Week" button The default value is 90.
CalendarHeader
  
workingWeekButtonVisible
Type: Boolean CSS Inheritance: no
Visibility of "Working week" button The default value is true.
CalendarHeader
  
workingWeekButtonWidth
Type: Number Format: Length CSS Inheritance: no
Width of "Working week" button The default value is 120.
CalendarHeader
Property Detail
contextproperty
protected var context:ICalendarContext

Calendar context - holds calendar configuration parameters, services etc.

dayButtonproperty 
protected var dayButton:Button

Day button - selects single day

monthButtonproperty 
protected var monthButton:Button

Month button - selects one month

nextButtonproperty 
protected var nextButton:Button

Next button - select next period of time. This component has style name "calendarNextPeriodButton"

previousButtonproperty 
protected var previousButton:Button

Previous button - select previous period of time. This component has style name "calendarPreviousPeriodButton"

rangeLabelproperty 
protected var rangeLabel:Label

Label displaying selected range

todayButtonproperty 
protected var todayButton:Button

Today button - selects current date

weekButtonproperty 
protected var weekButton:Button

Week button - selects single week

workingWeekButtonproperty 
protected var workingWeekButton:Button

Working week button - selects week from Monday to Friday

Constructor Detail
CalendarHeader()Constructor
public function CalendarHeader(context:ICalendarContext, calendar:FlexCalendar)

Creates calendar header instance

Parameters
context:ICalendarContext — ICalendarContext instance
 
calendar:FlexCalendar — FlexCalendar instance
Method Detail
createDayButton()method
protected function createDayButton():void

Create day button and add event handler

createMonthButton()method 
protected function createMonthButton():void

Create month button and add event handler

createNextButton()method 
protected function createNextButton():void

Create next button and add event handler

createPreviousButton()method 
protected function createPreviousButton():void

Create previous button and add event handler

createRangeLabel()method 
protected function createRangeLabel():void

Create range label

createTodayButton()method 
protected function createTodayButton():void

Create today button and add click event handler

createWeekButton()method 
protected function createWeekButton():void

Create week button and add event handler

createWorkingWeekButton()method 
protected function createWorkingWeekButton():void

Create week button and add event handler

readStyleValues()method 
protected function readStyleValues():void

Reads style values