包 | 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, 11:04 AM Z