包 | com.adobe.icc.editors.handlers |
类 | public class CategoryHandler |
继承 | CategoryHandler EventDispatcher Object |
实现 | IAssetHandler |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
属性 | 由以下参数定义 | ||
---|---|---|---|
assetActions : IList
The list of AssetAction objects maintained by this handler. | CategoryHandler | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
currentAction : AssetAction
The action that the handler is currently executing. | CategoryHandler | ||
selectedAssets : Array
The array of category value objects currently selected by the user. | CategoryHandler | ||
workingAsset : CategoryModel
The Category Domain Object that the handler is currently working with. | CategoryHandler |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | CategoryHandler | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
Returns the asset type handled by this handler. | CategoryHandler | ||
This method is invoked by the asset manager framework whenever user requests an action
on an object of type category. | CategoryHandler | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
Called by the asset manager framework giving the handlers a chance to initialize themselves. | CategoryHandler | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
Called internally when this handler is handling an action of type Create. | CategoryHandler | ||
Called internally when this handler is handling an action of type Delete. | CategoryHandler | ||
Called internally when this handler is handling an action of type Edit. | CategoryHandler | ||
handles the default Action(AssetActionEvent.ACTIN_DEFAULT) such as Item double click on search results grid. | CategoryHandler | ||
Called internally when this handler is handling an action of type View. | CategoryHandler |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when an handling of an action is complete. | CategoryHandler | |||
assetActionsChanged event is thrown by the Handler when the selected item in results viewer change and it updates the correct handler selected assets. | CategoryHandler | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when an action handled by this handler requires an editor window to be launched. | CategoryHandler |
常量 | 由以下参数定义 | ||
---|---|---|---|
ACTION_CREATE : String = "Create" [静态]
Constant for the name of the action related to creation of an asset. | CategoryHandler | ||
ACTION_DELETE : String = "Delete" [静态]
Constant for the name of the action related to deletion of an asset. | CategoryHandler | ||
ACTION_EDIT : String = "Edit" [静态]
Constant for the name of the action related to editing of an asset. | CategoryHandler | ||
ACTION_VIEW : String = "View" [静态]
Constant for the name of the action related to viewing of an asset. | CategoryHandler | ||
ACTION_VIEW_DEPENDENCY : String = "ViewDependency" [静态]
Constant for the name of the action related to view dependencies of an asset. | CategoryHandler | ||
ASSET_TYPE : String = "Category" [静态]
Constant for the Asset Type handled by this handler. | CategoryHandler |
assetActions | 属性 |
assetActions:IList
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The list of AssetAction objects maintained by this handler. This list is used by the asset manager framework to determine which action to enable. The asset manager framework looks for the value of the enabled flag in the AssetAction object to determine the same and handler updates the flags everytime the list of selected assets changes.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get assetActions():IList
public function set assetActions(value:IList):void
currentAction | 属性 |
currentAction:AssetAction
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The action that the handler is currently executing. This is useful in cases when the editor needs to know the action that the working asset is being acted upon. For instance, the editor might need to disable some of the fields if it is a view action.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get currentAction():AssetAction
public function set currentAction(value:AssetAction):void
selectedAssets | 属性 |
selectedAssets:Array
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The array of category value objects currently selected by the user. This is set by the asset manager framework everytime a user selects or deselects an item of type category.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selectedAssets():Array
public function set selectedAssets(value:Array):void
workingAsset | 属性 |
workingAsset:CategoryModel
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The Category Domain Object that the handler is currently working with. The handler creates this domain object from the shallow value object that it receives from the asset manager framework. The working asset is used by the asset editor to display the asset to the user in a desired presentation format.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get workingAsset():CategoryModel
public function set workingAsset(value:CategoryModel):void
CategoryHandler | () | 构造函数 |
public function CategoryHandler()
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constructor.
createCategory | () | 方法 |
protected function createCategory():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Create. The default implementation creates a new category domain object, assigns it as the working asset and dispatches the launchEditor event so that the framework can display the editor window to the user. This method can be extended to override the creation behavior of this handler. For instance, if creation requires some preprocessing or some checks that need to be made, the same can be done by overriding this method.
deleteCategories | () | 方法 |
protected function deleteCategories(showWaring:Boolean = true):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Delete. The default implementation iteratively deletes all the selected category value objects. A confirmation Alert dialog is shown to the user but can be curbed by setting the showWarning flag value to false. Deletion does not require creation of a domain object. Hence, the delete action has no impact on the value of working asset. Moreover, the launchEditor event is never dispatched while handling the delete action.
参数
showWaring:Boolean (default = true ) — Should the warning dialog be shown before deleting the Category.
|
editCategory | () | 方法 |
protected function editCategory():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Edit. The default implementation creates a new category domain object from the selected category value object.
getAssetType | () | 方法 |
public function getAssetType():String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Returns the asset type handled by this handler. This is used by the asset manager framework to route actions to appropriate handlers.
返回String — the asset type handled by this handler
|
handleAction | () | 方法 |
public function handleAction(event:AssetActionEvent):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
This method is invoked by the asset manager framework whenever user requests an action on an object of type category. This method is called for all the actions requested by the user. The action handling is internally routed to the correcting templatized methods like createLayout(), editLayout() etc.
参数
event:AssetActionEvent — The event object of type AssetActionEvent that is raised by the asset manager framework
|
handleDefaultAction | () | 方法 |
protected function handleDefaultAction(event:AssetActionEvent):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
handles the default Action(AssetActionEvent.ACTIN_DEFAULT) such as Item double click on search results grid. If user has edit permission, then asset is opened in edit mode. otherwise if user has view peermission then asset is opened in view mode.
参数
event:AssetActionEvent — AssetActionEvent containing the action information.
|
initialize | () | 方法 |
public function initialize():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called by the asset manager framework giving the handlers a chance to initialize themselves.
viewCategory | () | 方法 |
protected function viewCategory():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type View. The default implementation creates a new category domain object from the selected category value object, assigns it as the working asset and dispatches the launchEditor event so that the framework can display the editor window to the user. This method can be extended to override the "view" behavior of this handler. For instance, if viewing action requires some preprocessing or some checks that need to be made, the same can be done by overriding this method.
assetActionComplete | 事件 |
com.adobe.livecycle.assetmanager.client.event.AssetActionCompleteEvent
属性 AssetActionCompleteEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionCompleteEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when an handling of an action is complete. This can be used by the framework or the application to perform any additional activities e.g. display of a toast, alert box etc.
assetActionsChanged | 事件 |
com.adobe.livecycle.assetmanager.client.event.AssetActionsChangeEvent
属性 AssetActionsChangeEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionsChangeEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
assetActionsChanged event is thrown by the Handler when the selected item in results viewer change and it updates the correct handler selected assets. It is redispatched by the AssetHandlerRegistry and finally handled by AssetManagerView
launchEditor | 事件 |
com.adobe.livecycle.assetmanager.client.event.AssetActionEvent
属性 AssetActionEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when an action handled by this handler requires an editor window to be launched. Create/View/Edit/Copy are the actions that require displaying the editor window to the user.
ACTION_CREATE | 常量 |
public static const ACTION_CREATE:String = "Create"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to creation of an asset.
ACTION_DELETE | 常量 |
public static const ACTION_DELETE:String = "Delete"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to deletion of an asset.
ACTION_EDIT | 常量 |
public static const ACTION_EDIT:String = "Edit"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to editing of an asset.
ACTION_VIEW | 常量 |
public static const ACTION_VIEW:String = "View"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to viewing of an asset.
ACTION_VIEW_DEPENDENCY | 常量 |
public static const ACTION_VIEW_DEPENDENCY:String = "ViewDependency"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to view dependencies of an asset.
ASSET_TYPE | 常量 |
public static const ASSET_TYPE:String = "Category"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constant for the Asset Type handled by this handler.
Tue Jun 12 2018, 11:04 AM Z