套件 | 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, 03:47 PM Z