套件 | com.adobe.icc.dc.domain |
類別 | public class TargetInstance |
繼承 | TargetInstance EventDispatcher Object |
實作 | IContainerInstance, IValidation |
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
屬性 | 定義自 | ||
---|---|---|---|
allowFreeText : Boolean [唯讀]
True if the free text can be added to target instance. | TargetInstance | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
contents : IList [唯讀]
List of the contents associated with this Container instance. | TargetInstance | ||
contentVariables : IList [唯讀]
Bindable/Read-only. | TargetInstance | ||
formSomExpression : String [唯讀]
The SOM Expression of the target. | TargetInstance | ||
hasContentRemoved : Boolean [唯讀]
True if the Target has one or more content removed from it, than what was originall assigned. | TargetInstance | ||
isNewTarget : Boolean = false
[Applicable during reload]
True if this is a new container target, that did not exist when the Letter was submitted. | TargetInstance | ||
name : String [唯讀]
The name of the target. | TargetInstance | ||
open : Boolean [唯讀]
True if the container is open to extra content; false if it only allows content that was explicitly assigned to it in the letter. | TargetInstance | ||
order : int [唯讀]
The target's depth-first order. | TargetInstance | ||
ordered : Boolean [唯讀]
True if the container's contents order is fixed; false if its contents can be re-ordered. | TargetInstance | ||
valid : Boolean [唯讀]
Boolean indicating whether the content is valid
| TargetInstance |
方法 | 定義自 | ||
---|---|---|---|
TargetInstance(targetData:com.adobe.icc.dc.data:TargetData, reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget = null)
Constructor. | TargetInstance | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Inserts the specified raw DataModule into the list's contents as extra selected content if list is open. | TargetInstance | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Moves the specified item within the list's content one position in the specified direction. | TargetInstance | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Refresh should be called when item is selected. | TargetInstance | ||
Removes the specified item from the list's collection if the item is found in the collection and is non mandatory
| TargetInstance | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
The function checks for the valid state of the Module instances and accordingly updates the valid flag. | TargetInstance | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
方法 | 定義自 | ||
---|---|---|---|
Everytime when contentVariables list is updated, it removes variable change listeners in old varaibleInstance and add
variable change listeners in new variableInstance. | TargetInstance |
allowFreeText | 屬性 |
contents | 屬性 |
contentVariables | 屬性 |
contentVariables:IList
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Bindable/Read-only. The set of active variables for the module. Empty if there are none.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get contentVariables():IList
formSomExpression | 屬性 |
hasContentRemoved | 屬性 |
hasContentRemoved:Boolean
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
True if the Target has one or more content removed from it, than what was originall assigned. [Relevant when reloading]
實作
public function get hasContentRemoved():Boolean
isNewTarget | 屬性 |
public var isNewTarget:Boolean = false
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
[Applicable during reload] True if this is a new container target, that did not exist when the Letter was submitted.
預設值為 false。
name | 屬性 |
open | 屬性 |
order | 屬性 |
ordered | 屬性 |
valid | 屬性 |
TargetInstance | () | 建構函式 |
public function TargetInstance(targetData:com.adobe.icc.dc.data:TargetData, reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget = null)
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Constructor.
參數targetData:com.adobe.icc.dc.data:TargetData — The TargetData object associated with this TargetInstance.
| |
reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget (default = null ) — Reload Target for the case of correspondence reload.
|
addRawModule | () | 方法 |
public function addRawModule(dataModule:DataModule, position:int = -1):IModuleInstance
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Inserts the specified raw DataModule
into the list's contents as extra selected content if list is open.
參數
dataModule:DataModule — dataModule The module to select/insert.
| |
position:int (default = -1 ) — The absolute position at which to insert the module into the contents list. The dataModule becomes the new element
at that position in the list. If position is less than zero or beyond the end of the list, the content is
appended. If the list is fixed-order, then module is appended at end.
|
IModuleInstance —
|
moveContent | () | 方法 |
public function moveContent(sourceModule:IModuleInstance, moveUp:Boolean):void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Moves the specified item within the list's content one position in the specified direction.
參數
sourceModule:IModuleInstance — The item to move.
| |
moveUp:Boolean — True to move up, false to move down.
|
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.
removeContent | () | 方法 |
public function removeContent(sourceModule:IModuleInstance):void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Removes the specified item from the list's collection if the item is found in the collection and is non mandatory
參數
sourceModule:IModuleInstance — The item to be removed.
|
setContentVariables | () | 方法 |
protected function setContentVariables(value:IList):void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
Everytime when contentVariables list is updated, it removes variable change listeners in old varaibleInstance and add variable change listeners in new variableInstance.
參數
value:IList — The list of VariableInstance objects.
|
validate | () | 方法 |
public function validate():void
語言版本: | ActionScript 3.0 |
產品版本: | Asset Composer Building Block 10.0 |
執行階段版本: | AIR (unsupported), Flash Player 10.2 |
The function checks for the valid state of the Module instances and accordingly updates the valid flag.
Tue Jun 12 2018, 03:47 PM Z