Packagecom.keepcore.calendar.view
Classpublic class CalendarControlBar
InheritanceCalendarControlBar Inheritance mx.containers.HBox

The CalendarControlBar manages the main user navigation in the KCCalendar component. It is composed of previous & next buttons, views buttons (day/weeek/month/year), a KCDateField component and a Today button. Previous & nex buttons allows user to navigate on previous & next time range according to the selected view. Views buttons allows use to change the selected view. The KCDateField component displays a custom label and embed a KCMiniCalendar component that allows user to select a day date or a week. Then, the Today button allows user to focus on today according to the selected view (today in day view, current week in week view and so on...). Note: the CalendarControlBar could be hidden by setting the KCCalendar.controlBarVisible to false.



Public Properties
 PropertyDefined By
  calendar : KCCalendar
[write-only] Set a reference to the controlled KCCalendar component instance.
CalendarControlBar
  dateField : KCDateField
CalendarControlBar
  dateLabel : String
[write-only] Set the KCDateField component label.
CalendarControlBar
  dayButton : Button
CalendarControlBar
  monthButton : Button
CalendarControlBar
  nextButton : Image
CalendarControlBar
  previousButton : Image
CalendarControlBar
  todayButton : Button
CalendarControlBar
  weekButton : Button
CalendarControlBar
  yearButton : Button
CalendarControlBar
Public Methods
 MethodDefined By
  
Constructor.
CalendarControlBar
  
Manages the Today button visibility according to the KCCalendar.todayButtonVisible property.
CalendarControlBar
  
Manages the year view button visibility according to the KCCalendar.yearViewVisible property.
CalendarControlBar
  
styleChanged(styleProp:String):void
[override]
CalendarControlBar
Protected Methods
 MethodDefined By
  
[override] Overidden resourcesChanged method to initialize button labels according to the new resources.
CalendarControlBar
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
CalendarControlBar
Property Detail
calendarproperty
calendar:KCCalendar  [write-only]

Set a reference to the controlled KCCalendar component instance.


Implementation
    public function set calendar(value:KCCalendar):void
dateFieldproperty 
public var dateField:KCDateField

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

dateLabelproperty 
dateLabel:String  [write-only]

Set the KCDateField component label.


Implementation
    public function set dateLabel(value:String):void
dayButtonproperty 
public var dayButton:Button

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

monthButtonproperty 
public var monthButton:Button

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

nextButtonproperty 
public var nextButton:Image

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

previousButtonproperty 
public var previousButton:Image

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

todayButtonproperty 
public var todayButton:Button

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

weekButtonproperty 
public var weekButton:Button

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

yearButtonproperty 
public var yearButton:Button

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

Constructor Detail
CalendarControlBar()Constructor
public function CalendarControlBar()

Constructor.

Method Detail
manageTodayButtonVisibility()method
public function manageTodayButtonVisibility():void

Manages the Today button visibility according to the KCCalendar.todayButtonVisible property.

manageYearButtonVisibility()method 
public function manageYearButtonVisibility():void

Manages the year view button visibility according to the KCCalendar.yearViewVisible property.

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

Overidden resourcesChanged method to initialize button labels according to the new resources.

styleChanged()method 
override public function styleChanged(styleProp:String):void

Parameters

styleProp:String

updateDisplayList()method 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters

unscaledWidth:Number
 
unscaledHeight:Number