Packagecom.augiemarcello.utils
Classpublic class PaginateData

The Pagination class is used to organizing information in a view. For instance, data in a datagrid may be paginated such that 20 records appear only at one time.



Public Methods
 MethodDefined by
  
getPaginatedData(collection:ArrayCollection, lowLimit:int, highLimit:int):ArrayCollection
Loops through Collection specified by high low values and Displays Corresponding Data
PaginateData
  
paginate(collection:ArrayCollection, container:*, pageLimit:int):void
Sets intial references for Pagination
PaginateData
Method detail
getPaginatedData()method
public function getPaginatedData(collection:ArrayCollection, lowLimit:int, highLimit:int):ArrayCollection

Loops through Collection specified by high low values and Displays Corresponding Data

Parameters
collection:ArrayCollection — collection: The main collection to get paginated data from
 
lowLimit:int — lowLimit: the start of the displayed data
 
highLimit:int — highLimit: the end of the displayed data

Returns
ArrayCollection — ArrayCollection: An ArrayCollection of filtered data
paginate()method 
public function paginate(collection:ArrayCollection, container:*, pageLimit:int):void

Sets intial references for Pagination

Parameters
collection:ArrayCollection — collection: An Array Collection containing data for Pagination
 
container:* — container: The container to add button instances to.
 
pageLimit:int — pageLimit: The limit of data to be displayed at one time