包 | com.adobe.icc.editors.model |
类 | public class AssetModel |
继承 | AssetModel EventDispatcher Object |
子类 | FragmentLayoutModel, LayoutModel, LetterModel, ModuleModel |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
This class is supposedly abstract and should not be instantiated as is.
To work on a particular asset, its corresponding domain model class must
be used e.g. TextModel
, LayoutModel
etc.
It contains several properties and methods pulled up from the concrete classes. In case, a new asset 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 | ||
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 | ||
state : int
The state of the underlying value object. | AssetModel | ||
subCategory : Category
The Sub-Category of the underlying value object. | AssetModel | ||
version : int
The version of the underlying value object. | AssetModel | ||
vo : *
The value object which this asset domain object is built atop. | AssetModel |
属性 | 由以下参数定义 | ||
---|---|---|---|
isCopy : Boolean
Indicates that the object is a copy of an existing Asset. | AssetModel | ||
oldId : String
Id of the Asset which was cloned to create this copy. | AssetModel | ||
preferencesManager : PreferencesManager
To manage user preferences for category, subcategory and data dictionary. | AssetModel |
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
Saves the user edits for any asset. | AssetModel | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when this Asset is completely fetched from the server. | AssetModel |
activeEndDate | 属性 |
activeEndDate:Date
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The activeEndDate of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get activeEndDate():Date
public function set activeEndDate(value:Date):void
activeStartDate | 属性 |
activeStartDate:Date
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The activeStartDate date of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get activeStartDate():Date
public function set activeStartDate(value:Date):void
category | 属性 |
category:Category
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The Category of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 categoryChange
事件。
实现
public function get category():Category
public function set category(value:Category):void
comment | 属性 |
comment:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The comment of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get comment():String
public function set comment(value:String):void
crxVersion | 属性 |
crxVersion:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The crx version of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get crxVersion():String
public function set crxVersion(value:String):void
description | 属性 |
description:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The description of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get description():String
public function set description(value:String):void
extendedProperties | 属性 |
extendedProperties:Object
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The extended properties of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 extendedPropertiesChange
事件。
实现
public function get extendedProperties():Object
public function set extendedProperties(value:Object):void
id | 属性 |
isCopy | 属性 |
protected var isCopy:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Indicates that the object is a copy of an existing Asset.
isNew | 属性 |
public var isNew:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Indicates if this Asset is new. New Asset objects are existent purely on the client side until they are saved.
lastChangeBy | 属性 |
lastChangeBy:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The lastChangeBy property of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 fetchComplete
事件。
实现
public function get lastChangeBy():String
public function set lastChangeBy(value:String):void
name | 属性 |
oldId | 属性 |
protected var oldId:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Id of the Asset which was cloned to create this copy. This is applicable only when this Asset is a copy of an existing Asset.
preferencesManager | 属性 |
protected var preferencesManager:PreferencesManager
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
To manage user preferences for category, subcategory and data dictionary.
state | 属性 |
subCategory | 属性 |
subCategory:Category
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The Sub-Category of the underlying value object.
此属性可用作数据绑定的源。修改此属性后,将调度 categoryChange
事件。
实现
public function get subCategory():Category
public function set subCategory(value:Category):void
version | 属性 |
vo | 属性 |
vo:*
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The value object which this asset domain object is built atop. The type of the value object corresponds to the type of the domain object.
此属性可用作数据绑定的源。修改此属性后,将调度 valueObjectChange
事件。
实现
public function get vo():*
public function set vo(value:any):void
save | () | 方法 |
public function save():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Saves the user edits for any asset.
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 Asset is completely fetched from the server. Assets are often kept shallow in the Asset Manager and fetched completely only when necessary. The fetchComplete event is dispatched when the Asset has been retrieved completely from the server.
Tue Jun 12 2018, 11:04 AM Z