包 | com.adobe.livecycle.assetmanager.client.managers |
类 | public class SearchManager |
继承 | SearchManager EventDispatcher Object |
实现 | IResponder, ISearchProvider |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
lastQuery : SearchQuery
Returns the search query associated with the result of the last search. | SearchManager | ||
lastResult : ListCollectionView
Returns the result of the last search. | SearchManager | ||
queryType : String = "HQLQuery" [静态]
Specifies the query type to use when IQueryService is called. | SearchManager | ||
showBusyCursor : Boolean
Specifies whether to display a busy cursor while a search is in progress. | SearchManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | SearchManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
This method is called by a service when an error has been received. | SearchManager | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
releaseSearchResults(resultsListView:ListCollectionView, assetDescriptor:com.adobe.livecycle.assetmanager.client.model:AssetTypeDescriptor):void
Releases the search results and does any clean up tasks that are required. | SearchManager | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
This method is called by a service when the return value
has been received. | SearchManager | ||
Searches assets based on the specified search query. | SearchManager | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher | |||
Thrown when SearchManager has completed searching. | SearchManager | |||
Thrown when SearchManager encounters an error during search. | SearchManager |
常量 | 由以下参数定义 | ||
---|---|---|---|
CMS_QUERY_TYPE : String = "CMSQuery" [静态]
Specifies the query type to use when IQueryService is called. | SearchManager |
lastQuery | 属性 |
lastQuery:SearchQuery
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Returns the search query associated with the result of the last search. This function is updated when the lastResults function is updated.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get lastQuery():SearchQuery
public function set lastQuery(value:SearchQuery):void
lastResult | 属性 |
lastResult:ListCollectionView
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Returns the result of the last search.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get lastResult():ListCollectionView
public function set lastResult(value:ListCollectionView):void
queryType | 属性 |
public static var queryType:String = "HQLQuery"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Specifies the query type to use when IQueryService is called.
showBusyCursor | 属性 |
showBusyCursor:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Specifies whether to display a busy cursor while a search is in progress.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get showBusyCursor():Boolean
public function set showBusyCursor(value:Boolean):void
SearchManager | () | 构造函数 |
public function SearchManager()
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor.
fault | () | 方法 |
public function fault(info:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
This method is called by a service when an error has been received.
While info
is typed as Object it is often
(but not always) an mx.rpc.events.FaultEvent.
参数
info:Object |
releaseSearchResults | () | 方法 |
public function releaseSearchResults(resultsListView:ListCollectionView, assetDescriptor:com.adobe.livecycle.assetmanager.client.model:AssetTypeDescriptor):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Releases the search results and does any clean up tasks that are required. For example, disabling automatic synchronization provided by the Data Management Service.
参数
resultsListView:ListCollectionView — Search results to release.
| |
assetDescriptor:com.adobe.livecycle.assetmanager.client.model:AssetTypeDescriptor — AssetTypeDescriptor of the current asset, listed in the results grid.
|
result | () | 方法 |
public function result(data:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
This method is called by a service when the return value
has been received.
While data
is typed as Object, it is often
(but not always) an mx.rpc.events.ResultEvent.
参数
data:Object |
search | () | 方法 |
public function search(query:SearchQuery, resultsListView:ListCollectionView = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Searches assets based on the specified search query.
参数
query:SearchQuery — A SearchQuery object.
| |
resultsListView:ListCollectionView (default = null ) — The results collection to populate.
|
searchComplete | 事件 |
com.adobe.livecycle.assetmanager.client.event.SearchEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Thrown when SearchManager has completed searching.
searchError | 事件 |
mx.rpc.events.FaultEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Thrown when SearchManager encounters an error during search.
CMS_QUERY_TYPE | 常量 |
public static const CMS_QUERY_TYPE:String = "CMSQuery"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Specifies the query type to use when IQueryService is called.
Tue Jun 12 2018, 11:04 AM Z