包 | com.adobe.solutions.exm.authoring.domain.variable |
接口 | public interface IVariableProvider extends IEventDispatcher |
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | IEventDispatcher | ||
将事件调度到事件流中。 | IEventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | IEventDispatcher | ||
Fires an asynchronous operation for retrieving the list of all variables available for use inside expressions
during authoring. | IVariableProvider | ||
从 EventDispatcher 对象中删除侦听器。 | IEventDispatcher | ||
Fires an asynchronous operation for retrieving the list of available variables which match the given search term. | IVariableProvider | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | IEventDispatcher |
事件
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
Dispatched when the provider encounters an error retrieving a list of variables. | IVariableProvider | |||
Dispatched when the provider successfully retrieves a list of variables. | IVariableProvider |
方法详细信息
listVariables | () | 方法 |
public function listVariables():String
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Fires an asynchronous operation for retrieving the list of all variables available for use inside expressions during authoring. Returns immediately and causes the current object to later dispatch one of the following events:
- If the operation completes successfuly, an event with name "variableProviderEvent" of type VariableProviderEvent. The 'variables' property of the event will be a reference to the list of available variables (IVariable objects). The 'requestId' property of the event will be the same as the value returned by this method, which is a unique string that calling code can use for correlating calls to this method with events dispatched later.
- If the operation errors out, an event with name "variableProviderError" of type RequestAwareErrorEvent. The 'requestId' property of the event will be the same as the value returned by this method, while the 'error' property will contain the actual error thrown by the operation.
String — A unique request ID which calling code can use for correlating invocations of this method
with events dispatched later.
|
searchVariables | () | 方法 |
public function searchVariables(searchTerm:String):String
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Fires an asynchronous operation for retrieving the list of available variables which match the given search term. Returns immediately and causes the current object to later dispatch one of the following events:
- If the operation completes successfuly, an event with name "variableProviderEvent" of type VariableProviderEvent. The 'variables' property of the event will be a reference to the list of matching variables (IVariable objects). The 'requestId' property of the event will be the same as the value returned by this method, which is a unique string that calling code can use for correlating calls to this method with events dispatched later.
- If the operation errors out, an event with name "variableProviderError" of type RequestAwareErrorEvent. The 'requestId' property of the event will be the same as the value returned by this method, while the 'error' property will contain the actual error thrown by the operation.
参数
searchTerm:String — The search term to be used for filtering variables.
|
String — A unique request ID which calling code can use for correlating invocations of this method
with events dispatched later.
|
事件详细信息
variableProviderError | 事件 |
事件对象类型:
com.adobe.solutions.exm.authoring.domain.RequestAwareErrorEvent
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the provider encounters an error retrieving a list of variables.
variableProviderEvent | 事件 |
事件对象类型:
com.adobe.solutions.exm.authoring.domain.variable.VariableProviderEvent
语言版本: | ActionScript 3.0 |
产品版本: | Expression Manager Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the provider successfully retrieves a list of variables.
Tue Jun 12 2018, 11:04 AM Z