套件 | com.adobe.icc.editors.model |
類別 | public class ModuleModel |
繼承 | ModuleModel AssetModel EventDispatcher Object |
子類別 | ConditionModel, ImageModel, ListModel, TextModel |
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
It contains several properties and methods pulled up from the concrete classes. In case, a new module is introduced in the system and a domain class needs to be written for it, this class should be extended even though it's not mandatory.
屬性 | 定義自 | ||
---|---|---|---|
activeEndDate : Date
The activeEndDate of the underlying value object. | AssetModel | ||
activeStartDate : Date
The activeStartDate date of the underlying value object. | AssetModel | ||
category : Category
The Category of the underlying value object. | AssetModel | ||
comment : String
The comment of the underlying value object. | AssetModel | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
crxVersion : String
The crx version of the underlying value object. | AssetModel | ||
dataDictionary : DataDictionary
The typed DataDictionary object being used by this module. | ModuleModel | ||
dataDictionaryName : String
The name of the data dictionary being used by this module. | ModuleModel | ||
description : String
The description of the underlying value object. | AssetModel | ||
extendedProperties : Object
The extended properties of the underlying value object. | AssetModel | ||
id : String
The GUID of the underlying value object. | AssetModel | ||
isNew : Boolean
Indicates if this Asset is new. | AssetModel | ||
lastChangeBy : String
The lastChangeBy property of the underlying value object. | AssetModel | ||
name : String
The name of the underlying value object. | AssetModel | ||
shallow : Boolean
Flag to indicate if the underlying value object is shallow. | ModuleModel | ||
state : int
The state of the underlying value object. | AssetModel | ||
subCategory : Category
The Sub-Category of the underlying value object. | AssetModel | ||
variables : IList [唯讀]
The variables defined within this module. | ModuleModel | ||
version : int
The version of the underlying value object. | AssetModel | ||
vo : *
The value object which this asset domain object is built atop. | AssetModel |
方法 | 定義自 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
[靜態]
Fetches a module by the given id and constructs the domain module object on top of it. | ModuleModel | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Fetches the complete value object via remoting call. | ModuleModel | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Indicates if the underlying value object is shallow. | ModuleModel | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Saves the user edits for any asset. | AssetModel | ||
Sets the data dictionary name to the one specified and also fetches the corresponding
DataDictionary object from the server. | ModuleModel | ||
[靜態]
This method lets you inject a custom implementation of the infrastructure data dictionary service. | ModuleModel | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Runs the client validations and raises events of the type
AssetValidationEvent for notifying validation result. | ModuleModel | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
方法 | 定義自 | ||
---|---|---|---|
Fetches the data dictionary corresponding to the name specified. | ModuleModel |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。 | EventDispatcher | |||
Dispatched when this Module is completely fetched from the server. | ModuleModel |
dataDictionary | 屬性 |
dataDictionary:DataDictionary
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The typed DataDictionary
object being used by this module.
Assigning a value to this property updated the dataDictionaryName
as well but not the other way round.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 ddChange
事件。
實作
public function get dataDictionary():DataDictionary
public function set dataDictionary(value:DataDictionary):void
dataDictionaryName | 屬性 |
dataDictionaryName:String
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The name of the data dictionary being used by this module.
Merely setting this property wouldn't cause the dataDictionary
to be retrieved. If the dataDictionary
needs to be updated,
setDataDictionaryName()
method must be used instead.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 ddNameChange
事件。
實作
public function get dataDictionaryName():String
public function set dataDictionaryName(value:String):void
相關 API 元素
shallow | 屬性 |
shallow:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Flag to indicate if the underlying value object is shallow.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get shallow():Boolean
public function set shallow(value:Boolean):void
variables | 屬性 |
createFromId | () | 方法 |
public static function createFromId(moduleId:String):ModuleModel
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Fetches a module by the given id and constructs the domain module object on top of it.
參數
moduleId:String — The GUID of the module the domain object for which needs to be created.
|
ModuleModel — The module domain object.
|
fetchComplete | () | 方法 |
public function fetchComplete():void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Fetches the complete value object via remoting call. This should be called when the underlying value object is shallow.
fetchDataDictionary | () | 方法 |
protected function fetchDataDictionary():void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Fetches the data dictionary corresponding to the name specified.
isShallow | () | 方法 |
setDataDictionaryName | () | 方法 |
public function setDataDictionaryName(ddName:String, fetchDataDictionary:Boolean = true):void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Sets the data dictionary name to the one specified and also fetches the corresponding DataDictionary object from the server.
參數
ddName:String — Name of the data dictionary
| |
fetchDataDictionary:Boolean (default = true ) — flag to indicate if the corresponding data dictionary object
needs to be fetched from the server.
|
setDataDictRegistryService | () | 方法 |
public static function setDataDictRegistryService(value:DataDictionaryRegistryService):void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
This method lets you inject a custom implementation of the infrastructure data dictionary service.
By default, the class DataDictionaryRegistryServiceImpl
is used as the infrastructure service.
參數
value:DataDictionaryRegistryService — An implementation for DataDictionaryRegistryService.
|
validate | () | 方法 |
public function validate():void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 9.5 |
執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Runs the client validations and raises events of the type
AssetValidationEvent
for notifying validation result.
This method is always called implicitly whenever the save()
method is invoked on any of the concrete module domain classes.
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 this Module is completely fetched from the server. Modules are often kept shallow in the Asset Manager and fetched completely only when necessary. The fetchComplete event is dispatched when the Module has been retrieved completely from the server.
Tue Jun 12 2018, 03:47 PM Z