Package | com.adobe.icc.editors.model |
Classe | public class CategoryModel |
Héritage | CategoryModel EventDispatcher Object |
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
CategoryModel
class represents the domain object for the assets of type Category.
Domain objects can be leveraged to build presentation on top of them. They ease the
process of coding views by abstracting all the service calls and maintaining meaningful
states.
Propriété | Défini par | ||
---|---|---|---|
constructor : Object
Référence à l’objet de classe ou à la fonction constructeur d’une occurrence donnée d’un objet. | Object | ||
id : String [lecture seule]
The GUID of the underlying value object. | CategoryModel | ||
isNew : Boolean
Indicates if this Category is new. | CategoryModel | ||
name : String
Name of the category
| CategoryModel | ||
type : int
Type of the category. | CategoryModel | ||
vo : Category
The underlying category value object. | CategoryModel |
Méthode | Défini par | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Enregistre un objet écouteur d’événement auprès d’un objet EventDispatcher afin que l’écouteur soit averti d’un événement. | EventDispatcher | ||
[statique]
Creates the domain object from the corresponding value object. | CategoryModel | ||
Distribue un événement dans le flux d’événements. | EventDispatcher | ||
Vérifie si des écouteurs sont enregistrés auprès de l’objet EventDispatcher pour un type spécifique d’événement. | EventDispatcher | ||
Indique si la propriété spécifiée d’un objet est définie. | Object | ||
Indique si une occurrence de la classe Object figure dans la chaîne de prototype de l’objet spécifié en tant que paramètre. | Object | ||
Indique si la propriété spécifiée existe et est énumérable. | Object | ||
Supprime un écouteur de l’objet EventDispatcher. | EventDispatcher | ||
Saves the underlying value object on the server. | CategoryModel | ||
Définit la disponibilité d’une propriété dynamique pour les opérations en boucle. | Object | ||
Renvoie la représentation de chaîne de cet objet, formatée selon les paramètres régionaux en vigueur. | Object | ||
Renvoie la représentation sous forme de chaîne de l’objet spécifié. | Object | ||
Renvoie la valeur primitive de l’objet spécifié. | Object | ||
Vérifie si un écouteur d’événement est enregistré auprès de cet objet EventDispatcher ou de ses ancêtres pour le type d’événement spécifié. | EventDispatcher |
Evénement | Synthèse | Défini par | ||
---|---|---|---|---|
[Evénement de diffusion] Distribué lorsque l’application Flash Player obtient le focus du système d’exploitation et devient active. | EventDispatcher | |||
[Evénement de diffusion] Distribué lorsque l’application Flash Player ou AIR perd le focus du système d’exploitation et devient inactive. | EventDispatcher | |||
Dispatched when the category is successfully saved. | CategoryModel | |||
Dispatched when a fault occurs while saving the category. | CategoryModel | |||
Dispatched when the current category is requested for save. | CategoryModel |
id | propriété |
isNew | propriété |
isNew:Boolean
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Indicates if this Category is new. New Category objects are existent purely on the client side until they are saved.
Cette propriété peut être utilisée comme source de la liaison de données. Lorsque cette propriété est modifiée, elle distribue l’événement propertyChange
.
Implémentation
public function get isNew():Boolean
public function set isNew(value:Boolean):void
name | propriété |
name:String
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Name of the category
Cette propriété peut être utilisée comme source de la liaison de données. Lorsque cette propriété est modifiée, elle distribue l’événement propertyChange
.
Implémentation
public function get name():String
public function set name(value:String):void
type | propriété |
type:int
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Type of the category. The value is amongst the constants defined in the class CategoryType
Cette propriété peut être utilisée comme source de la liaison de données. Lorsque cette propriété est modifiée, elle distribue l’événement propertyChange
.
Implémentation
public function get type():int
public function set type(value:int):void
Eléments de l’API associés
vo | propriété |
vo:Category
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The underlying category value object.
Implémentation
public function get vo():Category
public function set vo(value:Category):void
createFromVO | () | méthode |
public static function createFromVO(categoryVO:Category):CategoryModel
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Creates the domain object from the corresponding value object.
Value Objects are pure data entities mostly acting as parameters to the server apis. Domain objects are build atop to provide more meaningful business data and behavior thereby enabling faster and convenient UI view development.
Paramètres
categoryVO:Category — The value object of the type Category
|
CategoryModel — The Category domain object corresponding the passed Category value object.
|
save | () | méthode |
public function save():void
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Saves the underlying value object on the server.
Under the hood, separate calls are required for creating a new asset and copying or copying an existing one.
The save() method internally invokes the relevant server calls
on the basis of its current state. The domain object
constructed from the createFromVO()
method would invoke
the "update" api and the domain object starightaway instantiated
on the client would inoke the "create" module api.
Category is somewhat different when compared to other assets. The category object is a "thin" object and thus isn't ever shallow. Moreover, categories cannot be copied.
saveComplete | Evénement |
com.adobe.icc.editors.events.AssetEvent
propriété AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVE_COMPLETE
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatched when the category is successfully saved.
TheAssetEvent.SAVE_COMPLETE
constant defines the value of the
type
property of the event object for a saveComplete
event.
The saveComplete
event is dispatched when the domain object has been
successfully saved on the server. Unlike the saving
event, this is dispatched
in an aysnchronous manner only after the server has responded with a result for the save api
call.
This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.
saveFault | Evénement |
com.adobe.icc.editors.events.AssetEvent
propriété AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVE_FAULT
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatched when a fault occurs while saving the category.
TheAssetEvent.SAVE_FAULT
constant defines the value of the
type
property of the event object for a saveFault
event.
The saveFault
event is dispatched when the server reports an error while
saving the asset on the server. Unlike the saving
event, this is dispatched
in an aysnchronous manner only after the server has responded with a result for the save api
call.
When this event is dispatched, the fault
property contains the fault object
encapsulating the error sent by the server. The fault
property can be used to
determine the faultCode and show an error message accordingly.
This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.
saving | Evénement |
com.adobe.icc.editors.events.AssetEvent
propriété AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVING
Version du langage: | ActionScript 3.0 |
Version du produit: | Bloc de création Asset Composer 9.5 |
Versions du moteur d’exécution: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatched when the current category is requested for save. This event, being bubbling in nature, can be leveraged by the UI to display a progress bar or animation to indicate the save progress.
TheAssetEvent.SAVING
constant defines the value of the
type
property of the event object for a saving
event.
The saving
event is dispatched when the save() method has been
called on the domain object. This event is dispatched before any server api
is invoked but after the domain client validations are complete. This is because
the actual save starts once the client validations are complete.
This event can be used to start a UI animation indicating "save in progress".
Tue Jun 12 2018, 09:30 AM Z