Packagecom.adobe.portfolio.utils
Classpublic class AttachmentCollection
InheritanceAttachmentCollection Inheritance mx.collections.ListCollectionView

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

The AttachmentCollection class extends ListCollectionView to support a collection of IAttachment objects. Its source list can be changed dynamically so that the same object can effectively be redirected to different collections with minimal overhead for clients.



Public Properties
 PropertyDefined By
  hostItems : IList
[write-only]
AttachmentCollection
Public Methods
 MethodDefined By
  
AttachmentCollection(source:IList = null)
Constructor
AttachmentCollection
Protected Methods
 MethodDefined By
  
Listener to handle a change in the field value of an attachment.
AttachmentCollection
  
onHostItemsChanged(evt:CollectionEvent):void
Listener to handle collection change events on the hostItems, and propogate them to this collection.
AttachmentCollection
  
onOurItemsChanged(evt:CollectionEvent):void
Listener to handle collection change events on the attachment collection.
AttachmentCollection
Property Detail
hostItemsproperty
hostItems:IList  [write-only]


Implementation
    public function set hostItems(value:IList):void
Constructor Detail
AttachmentCollection()Constructor
public function AttachmentCollection(source:IList = null)

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

Constructor

Parameters
source:IList (default = null)
Method Detail
onFieldValueChanged()method
protected function onFieldValueChanged(evt:FieldValueChangedEvent):void

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

Listener to handle a change in the field value of an attachment. Uses the internal sort function to resort the collection based on the new field value.

Parameters

evt:FieldValueChangedEvent

onHostItemsChanged()method 
protected function onHostItemsChanged(evt:CollectionEvent):void

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

Listener to handle collection change events on the hostItems, and propogate them to this collection.

Parameters

evt:CollectionEvent

onOurItemsChanged()method 
protected function onOurItemsChanged(evt:CollectionEvent):void

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

Listener to handle collection change events on the attachment collection. Adds field listeners to the new attachments.

Parameters

evt:CollectionEvent