套件 | 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, 03:47 PM Z