パッケージ | com.adobe.icc.editors.model |
クラス | public class CategoryModel |
継承 | CategoryModel EventDispatcher Object |
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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.
プロパティ | 定義元 | ||
---|---|---|---|
constructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。 | Object | ||
id : String [読み取り専用]
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 |
メソッド | 定義元 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。 | EventDispatcher | ||
[静的]
Creates the domain object from the corresponding value object. | CategoryModel | ||
イベントをイベントフローに送出します。 | EventDispatcher | ||
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 | EventDispatcher | ||
オブジェクトに指定されたプロパティが定義されているかどうかを示します。 | Object | ||
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。 | Object | ||
指定されたプロパティが存在し、列挙できるかどうかを示します。 | Object | ||
EventDispatcher オブジェクトからリスナーを削除します。 | EventDispatcher | ||
Saves the underlying value object on the server. | CategoryModel | ||
ループ処理に対するダイナミックプロパティの可用性を設定します。 | Object | ||
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。 | Object | ||
指定されたオブジェクトのストリング表現を返します。 | Object | ||
指定されたオブジェクトのプリミティブな値を返します。 | Object | ||
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 | EventDispatcher |
イベント | 概要 | 定義元 | ||
---|---|---|---|---|
[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。 | EventDispatcher | |||
[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。 | 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 | プロパティ |
isNew | プロパティ |
isNew:Boolean
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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.
このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 propertyChange
イベントが送出されます。
実装
public function get isNew():Boolean
public function set isNew(value:Boolean):void
name | プロパティ |
name:String
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Name of the category
このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 propertyChange
イベントが送出されます。
実装
public function get name():String
public function set name(value:String):void
type | プロパティ |
type:int
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Type of the category. The value is amongst the constants defined in the class CategoryType
このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 propertyChange
イベントが送出されます。
実装
public function get type():int
public function set type(value:int):void
関連する API エレメント
vo | プロパティ |
createFromVO | () | メソッド |
public static function createFromVO(categoryVO:Category):CategoryModel
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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.
パラメーター
categoryVO:Category — The value object of the type Category
|
CategoryModel — The Category domain object corresponding the passed Category value object.
|
save | () | メソッド |
public function save():void
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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 | イベント |
com.adobe.icc.editors.events.AssetEvent
プロパティ AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVE_COMPLETE
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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 | イベント |
com.adobe.icc.editors.events.AssetEvent
プロパティ AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVE_FAULT
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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 | イベント |
com.adobe.icc.editors.events.AssetEvent
プロパティ AssetEvent.type =
com.adobe.icc.editors.events.AssetEvent.SAVING
言語バージョン: | ActionScript 3.0 |
製品バージョン: | Asset Composer Building Block 9.5 |
ランタイムバージョン: | 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, 10:34 AM Z