包 | com.adobe.icc.dc.domain |
类 | public class VariableInstance |
继承 | VariableInstance EventDispatcher Object |
实现 | IDataInstance |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
属性 | 由以下参数定义 | ||
---|---|---|---|
caption : String [只读]
The caption property of the underlying value object. | VariableInstance | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
dataType : String [只读]
Return the field type
| VariableInstance | ||
dataTypeValid : Boolean
True if the variable's value filled by the user fits in well as per the data type of the variable. | VariableInstance | ||
editable : Boolean [只读]
True if the underlying object is editable. | VariableInstance | ||
name : String [只读]
The name property of the underlying value object. | VariableInstance | ||
optional : Boolean [只读]
True if the underlying object is optional. | VariableInstance | ||
subType : String [只读]
The sub type of the data element in case when type of data element specified is ENUM. | VariableInstance | ||
toolTip : String [只读]
The toolTip property of the underlying value object. | VariableInstance | ||
valid : Boolean [只读]
Boolean indicating whether the content is valid
| VariableInstance | ||
value : *
The value of the data element(variable or field) associated with the letter instance. | VariableInstance | ||
valueSet : IList [只读]
The list of value of the data element in case when type of data element specified is ENUM. | VariableInstance |
方法 | 由以下参数定义 | ||
---|---|---|---|
VariableInstance(value:VariableData)
Constructor. | VariableInstance | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Add the given moduleInstance to this VariableInstance, as a source of the associated Variable. | VariableInstance | ||
The function called when the Variable instance is no longer required.It does the clean up like removing event listeners from the dependencies. | VariableInstance | ||
将事件调度到事件流中。 | EventDispatcher | ||
Get the List of IModuleInstances for all modules that this VariableInstance's Variable is derived from. | VariableInstance | ||
Returns the instance of Variable associated with this underlying object. | VariableInstance | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
Refresh should be called when item is selected. | VariableInstance | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
The function to prepare the Variable instance for use. | VariableInstance | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
variableDataChangeHandler(event:VariableDataEvent):void
Called when the variable's value changes (which could be the result of a linked variable/field). | VariableInstance |
caption | 属性 |
dataType | 属性 |
dataTypeValid | 属性 |
dataTypeValid:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
True if the variable's value filled by the user fits in well as per the data type of the variable. for e.g dataTypeValid attribute is false when a string is filled in for a Number-type variable.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get dataTypeValid():Boolean
public function set dataTypeValid(value:Boolean):void
editable | 属性 |
name | 属性 |
optional | 属性 |
subType | 属性 |
toolTip | 属性 |
valid | 属性 |
value | 属性 |
value:*
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The value of the data element(variable or field) associated with the letter instance.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get value():*
public function set value(value:any):void
valueSet | 属性 |
VariableInstance | () | 构造函数 |
public function VariableInstance(value:VariableData)
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constructor.
参数value:VariableData — The VariableData object associated with VariableInstance.
|
addModuleInstance | () | 方法 |
public function addModuleInstance(moduleInstance:IModuleInstance):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Add the given moduleInstance
to this VariableInstance, as a source of the associated Variable.
参数
moduleInstance:IModuleInstance — The IModuleInstance object to be added to this VariableInstance.
|
destroy | () | 方法 |
public function destroy():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The function called when the Variable instance is no longer required.It does the clean up like removing event listeners from the dependencies.
getModuleInstance | () | 方法 |
getVariable | () | 方法 |
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.
setup | () | 方法 |
public function setup():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The function to prepare the Variable instance for use.
variableDataChangeHandler | () | 方法 |
protected function variableDataChangeHandler(event:VariableDataEvent):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Called when the variable's value changes (which could be the result of a linked variable/field).
参数
event:VariableDataEvent — The VariableDataEvent event dispatched on variable data change.
|
Tue Jun 12 2018, 11:04 AM Z