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
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.

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.