包 | com.adobe.icc.editors.managers |
类 | public class CategoryManager |
继承 | CategoryManager EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
CategoryManager
class helps retrieve and maintain
the list of categories and sub-categories existing in the system.
CategoryManager
is a singleton class that acts as
the source of truth for listing the categories in the system. For
performance reasons, all application components should query the
CategoryManager
instead of querying the server directly for
categories.
The CategoryManager
caches the category and
sub-category and saves redundant server calls. The maintained lists
are auto-updated via LCDS server-push whenever a new category is
added or an existing category is updated locally or on remote clients.
属性 | 由以下参数定义 | ||
---|---|---|---|
allCategories : IList
The aggregated list of all the categories present in the system. | CategoryManager | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
mainCategories : ListCollectionView
The list of categories existing in the system
| CategoryManager | ||
subCategories : ListCollectionView
The list of sub-categories existing in the system
| CategoryManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
Fetches the categories from the backend server. | CategoryManager | ||
[静态]
Gets the single instance of the CategoryManager class. | CategoryManager | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when the list of categories and subcategories have been successfully fetched from the server. | CategoryManager |
allCategories | 属性 |
allCategories:IList
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The aggregated list of all the categories present in the system. This list includes both categories and sub-categories.
实现
public function get allCategories():IList
public function set allCategories(value:IList):void
mainCategories | 属性 |
mainCategories:ListCollectionView
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The list of categories existing in the system
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get mainCategories():ListCollectionView
public function set mainCategories(value:ListCollectionView):void
subCategories | 属性 |
subCategories:ListCollectionView
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The list of sub-categories existing in the system
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get subCategories():ListCollectionView
public function set subCategories(value:ListCollectionView):void
fetchCategories | () | 方法 |
public function fetchCategories():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Fetches the categories from the backend server.
This method must be explicitly called at least once,
by the user application so as to let the CategoryManager
obtain the list of categories and sub-categories from the server.
Subsequent category updates or creations, either locally or remotely, are automatically pushed to the list properties.
getInstance | () | 方法 |
public static function getInstance():CategoryManager
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Gets the single instance of the CategoryManager class. This object manages the category and sub-category lists.
返回CategoryManager — An object of type CategoryManager.
|
fetchComplete | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the list of categories and subcategories
have been successfully fetched from the server. The fetch request
can be made by invoking the fetchCategories()
method
of this class. This event is dispatched when the asynchronous server
call completes.
Tue Jun 12 2018, 11:04 AM Z