Packagecom.flexcalendar.components.calendar.utils
Classpublic class CalendarMode
InheritanceCalendarMode Inheritance Object

Enumeration-pretending class that contains possible modes of Flex Calendar Component



Public Methods
 MethodDefined By
  
Throws error - should not be called.
CalendarMode
Public Constants
 ConstantDefined By
  FREE_EDIT_MODE : int = 0
[static] FREE_EDIT_MODE means that user can add, move, resize any item in any time.
CalendarMode
  LIMITED_EDIT_MODE : int = 1
[static] [PRO-LICENCE-REQUIRED] - to use features marked as [PRO-LICENCE-REQUIRED] you need to purchase PRO licence of Flex Calendar Component.
CalendarMode
  READ_ONLY_MODE : int = 2
[static] READ_ONLY_MODE means that user can only view the calendar.
CalendarMode
Constructor Detail
CalendarMode()Constructor
public function CalendarMode()

Throws error - should not be called.

Constant Detail
FREE_EDIT_MODEConstant
public static const FREE_EDIT_MODE:int = 0

FREE_EDIT_MODE means that user can add, move, resize any item in any time. There is no time limits - items can be added everywhere. Items marked as read only are naturally locked. If special spaces are added and Flex Calendar Component is working in FREE_EDIT_MODE, spaces are out of interaction. Component displays spaces in background in defined places, but they do not influence on regular items. In this mode you can use spaces to mark and describe some special time in the schedule.

LIMITED_EDIT_MODEConstant 
public static const LIMITED_EDIT_MODE:int = 1

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

LIMITED_EDIT_MODE means that user can add, move, resize any item only in special spaces. Those spaces may be created by adding CalendarItem to CalendarItemSet using addItemAsSpace() method. There are two possible types of special spaces that may be added (ItemType.UNAVAILABLE_SPACE and ItemType.AVAILABLE_SPACE). In LIMITED_EDIT_MODE calendarItems may be placed inside spaces added as (ItemType.AVAILABLE_SPACE)) only. You may need to mark some space as unavailable (i. e. holiday) - add space as (ItemType.UNAVAILABLE_SPACE) to achieve this behaviour.

See also


Example
adding calendarItem as special space
           var itemSet:CalendarItemSet = new CalendarItemSet();
           itemSet.addItemAsSpace(new CalendarItem(start, end, "Holidays", desc, readOnly, rendererColors), ItemType.UNAVAILABLE_SPACE);
      itemSet.addItemAsSpace(new CalendarItem(start1, end1, "Working hours", desc, readOnly, rendererColors), ItemType.AVAILABLE_SPACE);
          
READ_ONLY_MODEConstant 
public static const READ_ONLY_MODE:int = 2

READ_ONLY_MODE means that user can only view the calendar. No actions are allowed.