Packagecom.adobe.portfolio.managers
Classpublic class AttachmentDropManager
InheritanceAttachmentDropManager Inheritance Object

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The AttachmentDropManager class provides support for dropping IAttachments to the UI Component classes. Any UI Component that registers with this class gets the platform attachment drop support. This class is based on the Spark List drag drop code.

MXML SyntaxexpandedHide MXML Syntax

The <s:AttachmentDragManager> has the following tag attributes:

	  <s:AttachmentDragManager
	    Properties
	    dropTarget="null"
	    targetPath="null"
	  />
	  

See also

spark.skins.spark.List


Public Properties
 PropertyDefined By
  dropTarget : UIComponent
This contains the UI Component registered by the caller as the drop target.
AttachmentDropManager
  targetPath : IAttachment
This contains the target folder to which the attachment will be added.
AttachmentDropManager
Public Methods
 MethodDefined By
  
Constructor.
AttachmentDropManager
Protected Methods
 MethodDefined By
  
dragDropHandler(event:DragEvent):void
Handles DragEvent.DRAG_DROP events.
AttachmentDropManager
  
dragEnterHandler(event:DragEvent):void
Handles DragEvent.DRAG_ENTER events.
AttachmentDropManager
  
dragExitHandler(event:DragEvent):void
Handles DragEvent.DRAG_EXIT events.
AttachmentDropManager
  
dragOverHandler(event:DragEvent):void
Handles DragEvent.DRAG_OVER events.
AttachmentDropManager
Public Constants
 ConstantDefined By
  DRAG_DROP_ATTACHMENTS : String = attachments
[static] The AttachmentDragManager.DRAG_DROP_ATTACHMENTS constant defines the value of the format property for the Attachment drag data.
AttachmentDropManager
  DRAG_DROP_ITEMS : String = itemsByIndex
[static] The AttachmentDragManager.DRAG_DROP_ITEMS constant defines the value of the format property for the default set of List drag and drop items.
AttachmentDropManager
Property Detail
dropTargetproperty
dropTarget:UIComponent

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

This contains the UI Component registered by the caller as the drop target.

If you set this property, the UI component that is set is enabled as a drop target for attachments. If this is set to null or to a different UI component, the previous UI component is unregistered as a drop target.

The default value is null.


Implementation
    public function get dropTarget():UIComponent
    public function set dropTarget(value:UIComponent):void
targetPathproperty 
targetPath:IAttachment

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

This contains the target folder to which the attachment will be added.

If this value is null then the attachment is added to the root folder.

The default value is null.


Implementation
    public function get targetPath():IAttachment
    public function set targetPath(value:IAttachment):void
Constructor Detail
AttachmentDropManager()Constructor
public function AttachmentDropManager()

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Constructor.

Method Detail
dragDropHandler()method
protected function dragDropHandler(event:DragEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Handles DragEvent.DRAG_DROP events.

Parameters

event:DragEvent — The DragEvent object.

See also

mx.utils.ObjectUtil
mx.utils.UIDUtil
dragEnterHandler()method 
protected function dragEnterHandler(event:DragEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Handles DragEvent.DRAG_ENTER events. This method determines if the DragSource object contains valid elements and uses the DragManager.showDropFeedback() method to set up the UI feedback.

Parameters

event:DragEvent — The DragEvent object.

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

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Handles DragEvent.DRAG_EXIT events. This method hides the UI feedback by calling the hideDropFeedback() method.

Parameters

event:DragEvent — The DragEvent object.

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

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Handles DragEvent.DRAG_OVER events. This method determines if the DragSource object contains valid elements and uses the showDropFeedback() method to set up the UI feedback.

Parameters

event:DragEvent — The DragEvent object.

Constant Detail
DRAG_DROP_ATTACHMENTSConstant
public static const DRAG_DROP_ATTACHMENTS:String = attachments

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The AttachmentDragManager.DRAG_DROP_ATTACHMENTS constant defines the value of the format property for the Attachment drag data.

DRAG_DROP_ITEMSConstant 
public static const DRAG_DROP_ITEMS:String = itemsByIndex

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The AttachmentDragManager.DRAG_DROP_ITEMS constant defines the value of the format property for the default set of List drag and drop items.