Packagecom.flexcalendar.components.calendar.mouseHandling
Classpublic class BasicDragManager
InheritanceBasicDragManager Inheritance Object
Subclasses DayViewBasicDragManager, MonthViewDragManager



Protected Properties
 PropertyDefined By
  context : ICalendarContext
Calendar's context;
BasicDragManager
  dragStartGlobalPosition : Point
Start position of dragging.
BasicDragManager
  renderersContainer : IRenderersContainer
Container of renderers for that drag manager.
BasicDragManager
  selectedRenderer : ICalendarItemRenderer
Selected renderer.
BasicDragManager
Public Methods
 MethodDefined By
  
BasicDragManager
Protected Methods
 MethodDefined By
  
Add event listeners to grid.
BasicDragManager
  
canAddCalendarItem(event:MouseEvent):Boolean
Check if is allowed to add calendar item.
BasicDragManager
  
createAddedCalendarEventRenderer(event:MouseEvent):void
Create temporary renderer for dropped element to grid.
BasicDragManager
  
dispatchDropEvent(event:DragEvent):void
Dispatch {
BasicDragManager
  
Get selected item set where add calendar item.
BasicDragManager
  
Check if there is available space to add event.
BasicDragManager
  
moveDraggedItemDetails(event:DragEvent):void
Moving dragged component on grid.
BasicDragManager
  
BasicDragManager
  
resizeItemDetails(event:MouseEvent):void
Resize component on grid.
BasicDragManager
Property Detail
contextproperty
protected var context:ICalendarContext

Calendar's context;

dragStartGlobalPositionproperty 
protected var dragStartGlobalPosition:Point

Start position of dragging.

renderersContainerproperty 
protected var renderersContainer:IRenderersContainer

Container of renderers for that drag manager.

selectedRendererproperty 
protected var selectedRenderer:ICalendarItemRenderer

Selected renderer.

Constructor Detail
BasicDragManager()Constructor
public function BasicDragManager()



Method Detail
addEventListeners()method
protected function addEventListeners():void

Add event listeners to grid.

canAddCalendarItem()method 
protected function canAddCalendarItem(event:MouseEvent):Boolean

Check if is allowed to add calendar item.

Parameters

event:MouseEvent

Returns
Boolean — true - is allowed.
createAddedCalendarEventRenderer()method 
protected function createAddedCalendarEventRenderer(event:MouseEvent):void

Create temporary renderer for dropped element to grid.

Parameters

event:MouseEvent — drag event.

dispatchDropEvent()method 
protected function dispatchDropEvent(event:DragEvent):void

Dispatch {

Parameters

event:DragEvent — drag event.

getSelectedItemSet()method 
protected function getSelectedItemSet():ICalendarItemSet

Get selected item set where add calendar item.

Returns
ICalendarItemSet
isAvailableSpace()method 
protected function isAvailableSpace():Boolean

Check if there is available space to add event.

Returns
Boolean — if user can add event in that place.
moveDraggedItemDetails()method 
protected function moveDraggedItemDetails(event:DragEvent):void

Moving dragged component on grid. It's executing when you add to calendar component by drag something outside calendar.

Parameters

event:DragEvent — drag event.

removeSelectedRenderer()method 
protected function removeSelectedRenderer():void

resizeItemDetails()method 
protected function resizeItemDetails(event:MouseEvent):void

Resize component on grid. It's executing when you add to calendar select range on grid.

Parameters

event:MouseEvent — mouse event.