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