包 | com.adobe.icc.dc.domain |
类 | public class BaseModuleInstance |
继承 | BaseModuleInstance EventDispatcher Object |
实现 | IModuleInstance |
子类 | ConditionModuleInstance, ImageModuleInstance, ListModuleInstance, TextModuleInstance |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
属性 | 由以下参数定义 | ||
---|---|---|---|
assignedPosition : int [只读]
The assigned position of the module within its container. | BaseModuleInstance | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
contentVariables : IList [只读]
The set of active variables for the module. | BaseModuleInstance | ||
description : String [只读]
Description associated with this ModuleInstance. | BaseModuleInstance | ||
editable : Boolean [只读]
True if this module is editable in its container (based on the assignment). | BaseModuleInstance | ||
extra : Boolean [只读]
The flag indicating if this module was not assigned while creating the letter. | BaseModuleInstance | ||
hasConflict : Boolean [只读]
The flag indicating if this module is conflicting with its latest version. | BaseModuleInstance | ||
id : String [只读]
Unique identification associated with this ModuleInstance. | BaseModuleInstance | ||
indentationLevel : Number
The level of indentation of the module with respect to the container holding the module instance. | BaseModuleInstance | ||
moduleType : String [只读]
Module type represented by this ModuleInstance: Text,Image,List,Condition
| BaseModuleInstance | ||
moduleVo : DataModule [只读]
The instance of DataModule associated with this module instance. | BaseModuleInstance | ||
name : String [只读]
Name associated with this ModuleInstance. | BaseModuleInstance | ||
newMandatory : Boolean [只读]
The flag indicating if this module was not mandatory earlier but is now mandatory when considering the latest version of the module instance. | BaseModuleInstance | ||
nonEditableOverride : Boolean [只读]
The flag indicating if this module was editable earlier but is now non-editable when considering the latest version of the module instance. | BaseModuleInstance | ||
occur : int
The occurrence index of this content within its parent container. | BaseModuleInstance | ||
optional : Boolean [只读]
True if this module is optional in its container (based on the assignment, not the selected state). | BaseModuleInstance | ||
parentContainer : IContainerInstance [只读]
Parent container instance containing this ModuleInstance
| BaseModuleInstance | ||
preSelected : Boolean [只读]
True if this module is pre-selected/removable in its container (based on the assignment, not the selected state). | BaseModuleInstance | ||
selected : Boolean
Is the module is selected to be included in letter
| BaseModuleInstance | ||
selectedPosition : int
Position of the content in it's container among all the selected contents of the container. | BaseModuleInstance | ||
skipStyle : Boolean [只读]
Skip Style of the module. | BaseModuleInstance | ||
tooltip : String [只读]
Tooltip associated with this ModuleInstance. | BaseModuleInstance | ||
valid : Boolean [只读]
Boolean indicating whether the content is valid
| BaseModuleInstance |
方法 | 由以下参数定义 | ||
---|---|---|---|
BaseModuleInstance(remod:ReloadModule = null)
Constructor. | BaseModuleInstance | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
Refresh should be called when item is selected. | BaseModuleInstance | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
moduleDataChangeHandler(event:ModuleDataEvent):void
Called when the module content's associated data object changes. | BaseModuleInstance |
assignedPosition | 属性 |
contentVariables | 属性 |
description | 属性 |
editable | 属性 |
extra | 属性 |
extra:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The flag indicating if this module was not assigned while creating the letter. For e.g a module added to the letter through Library access will have extra attribute as true.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get extra():Boolean
hasConflict | 属性 |
id | 属性 |
indentationLevel | 属性 |
indentationLevel:Number
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The level of indentation of the module with respect to the container holding the module instance.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get indentationLevel():Number
public function set indentationLevel(value:Number):void
moduleType | 属性 |
moduleVo | 属性 |
moduleVo:DataModule
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The instance of DataModule associated with this module instance.
实现
public function get moduleVo():DataModule
name | 属性 |
newMandatory | 属性 |
newMandatory:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The flag indicating if this module was not mandatory earlier but is now mandatory when considering the latest version of the module instance.
实现
public function get newMandatory():Boolean
nonEditableOverride | 属性 |
nonEditableOverride:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The flag indicating if this module was editable earlier but is now non-editable when considering the latest version of the module instance.
实现
public function get nonEditableOverride():Boolean
occur | 属性 |
occur:int
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The occurrence index of this content within its parent container. If there are multiple instances of the module in the container, each module content instance (for those assigned module instances) will get a unique occurrence index. Once assigned, the occurrence should be retained to idenfity instances of a particular module occurrence (e.g. text module tm is assigned twice to the same target/list therefore each occurrence will be identified as tm0 and tm1, respectfully, but note that if tm1 is cloned 4 times, it remains tm1 in the container's selection as instances of the original tm1 occurrence).
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get occur():int
public function set occur(value:int):void
optional | 属性 |
parentContainer | 属性 |
parentContainer:IContainerInstance
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Parent container instance containing this ModuleInstance
实现
public function get parentContainer():IContainerInstance
preSelected | 属性 |
selected | 属性 |
selected:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Is the module is selected to be included in letter
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selected():Boolean
public function set selected(value:Boolean):void
selectedPosition | 属性 |
selectedPosition:int
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Position of the content in it's container among all the selected contents of the container. -1 if the content is not selected.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selectedPosition():int
public function set selectedPosition(value:int):void
skipStyle | 属性 |
skipStyle:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Skip Style of the module. If this is a List or Condition, the skipChildren
option would decide
whether or not to skip the child modules or not.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get skipStyle():Boolean
tooltip | 属性 |
valid | 属性 |
BaseModuleInstance | () | 构造函数 |
public function BaseModuleInstance(remod:ReloadModule = null)
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constructor.
参数remod:ReloadModule (default = null ) — Reload Module for the case of correspondence reload.
|
moduleDataChangeHandler | () | 方法 |
protected function moduleDataChangeHandler(event:ModuleDataEvent):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called when the module content's associated data
object changes.
Note: Do not add moduleDataChangeHandler at instantiation of BaseModuleInstance because moduleData value may not yet been set.
Plug this handler in sub class initialization.
参数
event:ModuleDataEvent — The ModuleDataEvent event dispatched on module data change.
|
refresh | () | 方法 |
public function refresh():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Refresh should be called when item is selected. This is useful in case when the the item is deselcted. In that case, if there is any change in variable value/ field value etc., those changes may not be propagated to module.
Tue Jun 12 2018, 11:04 AM Z