com.adobe.ep.ux.content.handlers

# IAssetHandler - AS3 ADEP Content

Package | com.adobe.ep.ux.content.handlers
Interface | public interface IAssetHandler extends IEventDispatcher
Implementors | BaseAssetHandler, CategoryHandler, ConditionHandler, DataDictionaryHandler, FragmentLayoutHandler, ImageHandler, LayoutHandler, LetterHandler, ListHandler, PermissionBasedAssetHandler, TextHandler

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Interface to be implemented by the component who wants to introduce a new Asset or write a custom handler for an existing asset type

Public Properties

| Property | Defined By
--- | --- | ---
|  | assetActions : IList returns the list of Actions associated with the asset handled by this handler | IAssetHandler
|  | selectedAssets : Array returns the array of currently selected assets | IAssetHandler

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. | IEventDispatcher
|  | dispatchEvent(event:Event):Boolean Dispatches an event into the event flow. | IEventDispatcher
|  | getAssetType():String returns the asset type associated with the asset. | IAssetHandler
|  | handleAction(action:AssetActionEvent):void Called when a user clicks on an action associated with a asset type. | IAssetHandler
|  | hasEventListener(type:String):Boolean Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | IEventDispatcher
|  | initialize():void initialize the Handler. | IAssetHandler
|  | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void Removes a listener from the EventDispatcher object. | IEventDispatcher
|  | willTrigger(type:String):Boolean Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | IEventDispatcher

Property Detail

### assetActions

property

`assetActions:IList`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

returns the list of Actions associated with the asset handled by this handler

Implementation
`public function get assetActions():IList`
`public function set assetActions(value:IList):void`

### selectedAssets

property

`selectedAssets:Array`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

returns the array of currently selected assets

Implementation
`public function get selectedAssets():Array`
`public function set selectedAssets(value:Array):void`
Method Detail

### getAssetType

()
method

`public function getAssetType():String`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

returns the asset type associated with the asset.

Returns

| `String` — Type of asset associated with this handler

### handleAction

()
method

`public function handleAction(action:AssetActionEvent):void`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

Called when a user clicks on an action associated with a asset type.

Parameters

| `action:AssetActionEvent` — The action associated with the asset

### initialize

()
method

`public function initialize():void`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Content 10

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

initialize the Handler. Called when AssetHandlerRegistry is started.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00