Paquete | com.adobe.icc.editors.managers |
Clase | public class CategoryManager |
Herencia | CategoryManager EventDispatcher Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | 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.
Propiedad | Definido por | ||
---|---|---|---|
allCategories : IList
The aggregated list of all the categories present in the system. | CategoryManager | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
mainCategories : ListCollectionView
The list of categories existing in the system
| CategoryManager | ||
subCategories : ListCollectionView
The list of sub-categories existing in the system
| CategoryManager |
Método | Definido por | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Fetches the categories from the backend server. | CategoryManager | ||
[estática]
Gets the single instance of the CategoryManager class. | CategoryManager | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Evento | Resumen | Definido por | ||
---|---|---|---|---|
[evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos. | EventDispatcher | |||
[evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos. | EventDispatcher | |||
Dispatched when the list of categories and subcategories have been successfully fetched from the server. | CategoryManager |
allCategories | propiedad |
allCategories:IList
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | 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.
Implementación
public function get allCategories():IList
public function set allCategories(value:IList):void
mainCategories | propiedad |
mainCategories:ListCollectionView
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
The list of categories existing in the system
Esta propiedad se puede utilizar como origen para la vinculación de datos. Cuando se modifica esta propiedad, distribuye el evento propertyChange
.
Implementación
public function get mainCategories():ListCollectionView
public function set mainCategories(value:ListCollectionView):void
subCategories | propiedad |
subCategories:ListCollectionView
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
The list of sub-categories existing in the system
Esta propiedad se puede utilizar como origen para la vinculación de datos. Cuando se modifica esta propiedad, distribuye el evento propertyChange
.
Implementación
public function get subCategories():ListCollectionView
public function set subCategories(value:ListCollectionView):void
fetchCategories | () | método |
public function fetchCategories():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | 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 | () | método |
public static function getInstance():CategoryManager
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
Gets the single instance of the CategoryManager class. This object manages the category and sub-category lists.
Valor devueltoCategoryManager — An object of type CategoryManager.
|
fetchComplete | Evento |
flash.events.Event
propiedad Event.type =
flash.events.Event
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | 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, 02:12 PM Z