Packageat.containers
Classpublic class BookmarkDrop
InheritanceBookmarkDrop Inheritance mx.core.UIComponent
Implementsmx.controls.listClasses.IListItemRenderer

The BookmarkDrop component is used inside of the PreCallModule.

It is a visual holder for a bookmark, which can be viewed, edited, and removed.



Public Properties
 PropertyDefined by
  data : Object
The bookmark data that is stored and will be passed on to the slideRenderer.
BookmarkDrop
  editable : Boolean
Rules may prevent the bookmarks from being edited.
BookmarkDrop
  label : String
This is the value for the number of the drop location on the circle.
BookmarkDrop
  sectionColor : uint = 0x000000
Background color for the component that is used if there is data.
BookmarkDrop
Protected Properties
 PropertyDefined by
  circle : PreCallCircle
The circle with the number in the drop list.
BookmarkDrop
  selected : Boolean = false
Flag for the BookmarkDrop to know if it is hovered over (true) or not (false), so it can draw a outline to the background.
BookmarkDrop
  slideRenderer : SlideItemRenderer
The visual representation of the bookmark.
BookmarkDrop
Public Methods
 MethodDefined by
  
Constructor.
BookmarkDrop
  
addBookmark(value:Object):void
Adds the bookmark data to the component.
BookmarkDrop
  
Removes the bookmark from the component.
BookmarkDrop
Protected Methods
 MethodDefined by
  
createDragProxyImage(value:DisplayObject):void
Creates the image used for the drag and drop operation of a bookmark.
BookmarkDrop
  
dragDropHandler(e:DragEvent):void
Handles the drop of a drag and drop event, including setting of the data.
BookmarkDrop
  
dragEnterHandler(e:DragEvent):void
Determines whether or not the component can have selected item dropped on it.
BookmarkDrop
  
dragExitHandler(e:DragEvent):void
Handles the end of a drag and drop cycle.
BookmarkDrop
  
dragSlide(e:MouseEvent):void
Handles the visual representation and start of the dragging operation for an already placed bookmark.
BookmarkDrop
  
mouseDownHandler(e:MouseEvent):void
Handles the MOUSE_DOWN event on the placed bookmark.
BookmarkDrop
  
mouseUpHandler(e:MouseEvent):void
Handles the MOUSE_UP event on the placed bookmark.
BookmarkDrop
Events
 EventSummaryDefined by
   Dispatched when a slide has been removed.BookmarkDrop
   Dispatched when a slide has been added.BookmarkDrop
Property detail
circleproperty
protected var circle:PreCallCircle

The circle with the number in the drop list.

dataproperty 
data:Object  [read-write]

The bookmark data that is stored and will be passed on to the slideRenderer.

Implementation
    public function get data():Object
    public function set data(value:Object):void

See also

editableproperty 
editable:Boolean  [read-write]

Rules may prevent the bookmarks from being edited. The bookmark can be modified if true. Otherwise the bookmark is view-only.

The default value is true.

Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
labelproperty 
label:String  [read-write]

This is the value for the number of the drop location on the circle.

The default value is "".

Implementation
    public function get label():String
    public function set label(value:String):void

See also

sectionColorproperty 
public var sectionColor:uint = 0x000000

Background color for the component that is used if there is data.

This is passed to the component from the database

.

The default value is 0x000000.

selectedproperty 
protected var selected:Boolean = false

Flag for the BookmarkDrop to know if it is hovered over (true) or not (false), so it can draw a outline to the background.

The default value is false.

slideRendererproperty 
protected var slideRenderer:SlideItemRenderer

The visual representation of the bookmark.

Constructor detail
BookmarkDrop()constructor
public function BookmarkDrop()

Constructor.

Method detail
addBookmark()method
public function addBookmark(value:Object):void

Adds the bookmark data to the component.

addBookmark also modifies sectionColor based on the data passed in. Event listeners are also added.

Parameters
value:Object — The slide data
createDragProxyImage()method 
protected function createDragProxyImage(value:DisplayObject):void

Creates the image used for the drag and drop operation of a bookmark.

Parameters
value:DisplayObject — The object to make the image of
dragDropHandler()method 
protected function dragDropHandler(e:DragEvent):void

Handles the drop of a drag and drop event, including setting of the data.

Parameters
e:DragEvent — The DragEvent

See also

mx.events.DragEvent
dragEnterHandler()method 
protected function dragEnterHandler(e:DragEvent):void

Determines whether or not the component can have selected item dropped on it.

Parameters
e:DragEvent — The DragEvent

See also

mx.events.DragEvent
dragExitHandler()method 
protected function dragExitHandler(e:DragEvent):void

Handles the end of a drag and drop cycle.

Parameters
e:DragEvent — The DragEvent

See also

mx.events.DragEvent
dragSlide()method 
protected function dragSlide(e:MouseEvent):void

Handles the visual representation and start of the dragging operation for an already placed bookmark.

Parameters
e:MouseEvent — The MouseEvent handler
mouseDownHandler()method 
protected function mouseDownHandler(e:MouseEvent):void

Handles the MOUSE_DOWN event on the placed bookmark.

Parameters
e:MouseEvent — The MouseEvent
mouseUpHandler()method 
protected function mouseUpHandler(e:MouseEvent):void

Handles the MOUSE_UP event on the placed bookmark.

Parameters
e:MouseEvent — The MouseEvent
removeBookmark()method 
public function removeBookmark():void

Removes the bookmark from the component.

Event detail
removeSlideevent 
Event object type: at.events.PreCallModuleEvent
PreCallModuleEvent.type property = at.events.PreCallModuleEvent.REMOVE_SLIDE

Dispatched when a slide has been removed. Typically to update the PreCallModule.

Dispatched when slides are removed by user interaction.

slideAddedevent  
Event object type: at.events.PreCallModuleEvent
PreCallModuleEvent.type property = at.events.PreCallModuleEvent.SLIDE_ADDED

Dispatched when a slide has been added. Typically to update the PreCallModule.

Dispatched when the slide is added to a call.