| Package | org.granite.tide.collections |
| Class | public class PagedQuery |
| Inheritance | PagedQuery PagedCollection mx.collections.ListCollectionView |
| Implements | IComponent, org.granite.tide.IPropertyHolder |
| Subclasses | PagedQuery |
resultCount resultList firstResult maxResultsThe name of the remote service can be overriden by setting the remoteComponentName property. The name of the remote method can by set by the remoteMethodName property.
| Property | Defined by | ||
|---|---|---|---|
![]() | beforeFindCall : Function = null | PagedCollection | |
![]() | dispatchReplaceOnResult : Boolean | PagedCollection | |
![]() | dispatchResetOnInit : Boolean | PagedCollection | |
![]() | elementClass : Class | PagedCollection | |
| filter : Object | PagedQuery | ||
| filterClass : Class [write-only]
| PagedQuery | ||
![]() | length : int
Get total number of elements
| PagedCollection | |
![]() | list : IList | PagedCollection | |
![]() | maxResults : int
Set the page size.
| PagedCollection | |
| meta_name : String [read-only]
| PagedQuery | ||
| methodName : String [write-only]
| PagedQuery | ||
![]() | multipleSort : Boolean = true | PagedCollection | |
| object : Object [read-only]
IPropertyHolder interface
| PagedQuery | ||
| remoteComponentClass : Class [write-only]
| PagedQuery | ||
| remoteComponentName : String [write-only]
| PagedQuery | ||
![]() | sort : Sort | PagedCollection | |
![]() | throwIPEDuringResponders : Boolean = false | PagedCollection | |
![]() | triggerRefreshOnIPEWithoutResponder : Boolean = false | PagedCollection | |
![]() | uidProperty : String = "uid" | PagedCollection | |
| usePage : Boolean [write-only]
| PagedQuery | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | _clientMax : int | PagedCollection | |
![]() | _clientMaxSet : Boolean = false | PagedCollection | |
| _component : Component = null | PagedQuery | ||
![]() | _context : BaseContext = null | PagedCollection | |
![]() | _initializing : Boolean = false | PagedCollection | |
| _methodName : String = "find" | PagedQuery | ||
| _methodNameSet : Boolean = false | PagedQuery | ||
| _usePage : Boolean = false | PagedQuery | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
clear():void
Clear collection content
| PagedCollection | |
![]() |
dispatchEvent(event:Event):Boolean
| PagedCollection | |
![]() |
fullRefresh():Boolean
Force refresh of collection when filter/sort have been changed
| PagedCollection | |
![]() |
getItemAt(index:int, prefetch:int = 0):Object
Override of getItemAt with ItemPendingError management
| PagedCollection | |
![]() |
getItemIndex(obj:Object):int
Override of getItemIndex
| PagedCollection | |
|
meta_clear():void
| PagedQuery | ||
|
meta_init(componentName:String, context:BaseContext):void
| PagedQuery | ||
|
meta_propertyResultHandler(propName:String, event:ResultEvent):void
| PagedQuery | ||
![]() |
refresh():Boolean
Refresh collection with new filter/sort parameters
| PagedCollection | |
| Method | Defined by | ||
|---|---|---|---|
|
doFind(filter:Object, first:int, max:int, sort:Sort, findResponder:PagedCollectionResponder):void
| PagedQuery | ||
|
find(first:int, last:int, merge:Boolean = false):void
Trigger a results query for the current filter
| PagedQuery | ||
|
getResult(event:TideResultEvent, first:int, max:int):Object
| PagedQuery | ||
![]() |
itemUpdateHandler(event:PropertyChangeEvent):void
| PagedCollection | |
![]() |
startTrackUpdates(item:Object):void
| PagedCollection | |
![]() |
stopTrackUpdates(item:Object):void
| PagedCollection | |
| _component | property |
protected var _component:Component = null
| filter | property |
filter:Object [read-write]This property can be used as the source for data binding.
Implementation public function get filter():Object
public function set filter(value:Object):void
| filterClass | property |
filterClass:Class [write-only]This property can be used as the source for data binding.
Implementation public function set filterClass(value:Class):void
| meta_name | property |
meta_name:String [read-only]This property can be used as the source for data binding.
Implementation public function get meta_name():String
| _methodName | property |
protected var _methodName:String = "find"
| methodName | property |
methodName:String [write-only]This property can be used as the source for data binding.
Implementation public function set methodName(value:String):void
| _methodNameSet | property |
protected var _methodNameSet:Boolean = false
| object | property |
object:Object [read-only]IPropertyHolder interface
This property can be used as the source for data binding.
Implementation public function get object():Object
| remoteComponentClass | property |
remoteComponentClass:Class [write-only]This property can be used as the source for data binding.
Implementation public function set remoteComponentClass(value:Class):void
| remoteComponentName | property |
remoteComponentName:String [write-only]This property can be used as the source for data binding.
Implementation public function set remoteComponentName(value:String):void
| _usePage | property |
protected var _usePage:Boolean = false
| usePage | property |
usePage:Boolean [write-only]This property can be used as the source for data binding.
Implementation public function set usePage(value:Boolean):void
| doFind | () | method |
protected function doFind(filter:Object, first:int, max:int, sort:Sort, findResponder:PagedCollectionResponder):voidParameters
filter:Object |
|
first:int |
|
max:int |
|
sort:Sort |
|
findResponder:PagedCollectionResponder |
| find | () | method |
protected override function find(first:int, last:int, merge:Boolean = false):voidTrigger a results query for the current filter
Parametersfirst:int — : index of first required result
|
|
last:int — : index of last required result
|
|
merge:Boolean (default = false) — : should merge result with current wrapped list
|
| getResult | () | method |
protected override function getResult(event:TideResultEvent, first:int, max:int):ObjectParameters
event:TideResultEvent |
|
first:int |
|
max:int |
Object |
| meta_clear | () | method |
public function meta_clear():void
| meta_init | () | method |
public override function meta_init(componentName:String, context:BaseContext):voidParameters
componentName:String |
|
context:BaseContext |
| meta_propertyResultHandler | () | method |
public function meta_propertyResultHandler(propName:String, event:ResultEvent):voidParameters
propName:String |
|
event:ResultEvent |