Packagecom.flexcalendar.components.calendar.utils
Classpublic class SpaceReservation
InheritanceSpaceReservation Inheritance Object

This class is responsible for reservation of the space for events



Public Methods
 MethodDefined By
  
SpaceReservation(minimumItemTime:Number)
Create new SpaceReservation
SpaceReservation
  
getPositions():Array
Return array containing item positions, in reservation order.
SpaceReservation
  
Return number of required slots.
SpaceReservation
  
getSizes():Array
Return array containing item sizes, in reservation order.
SpaceReservation
  
reserve(newItemDetails:ItemDetails):void
Reserve space for item.
SpaceReservation
Constructor Detail
SpaceReservation()Constructor
public function SpaceReservation(minimumItemTime:Number)

Create new SpaceReservation

Parameters
minimumItemTime:Number
Method Detail
getPositions()method
public function getPositions():Array

Return array containing item positions, in reservation order.

Returns
Array
getRequiredSlots()method 
public function getRequiredSlots():int

Return number of required slots.

Returns
int
getSizes()method 
public function getSizes():Array

Return array containing item sizes, in reservation order.

Returns
Array
reserve()method 
public function reserve(newItemDetails:ItemDetails):void

Reserve space for item. Items should be passed sorted ascending

Parameters

newItemDetails:ItemDetails — added item