Packagecom.jwopitz.controls.pagination
Classpublic class PaginatedItemsControlBase
InheritancePaginatedItemsControlBase Inheritance mx.containers.Box
ImplementsIPaginatedItemsControl

PaginatedItemsControlBase is the base class for creating controls for paginated data.

In order to facilitate a variety of design implementations, the developer should extend PaginatedItemsControlBase and add the actual controls for changing the selectedIndex.



Public Properties
 PropertyDefined by
  dataProvider : Object
The set of data to be paginated based on items per page.
PaginatedItemsControlBase
  itemsPerPage : int
The number of items per page of data.
PaginatedItemsControlBase
  selectedIndex : int
The index value of the current set of data represented by the selected items.
PaginatedItemsControlBase
  selectedItems : Array
[read-only] The current set of data represented by the selected index.
PaginatedItemsControlBase
Protected Properties
 PropertyDefined by
  formattedDataProvider : Array
The internal data set used by the component in order to represent the paginated data.
PaginatedItemsControlBase
  pgSets : int
A convenience accessor for subclasses to use in order to calculate the selectedIndex based on various control implementations.
PaginatedItemsControlBase
Protected Methods
 MethodDefined by
  
generateFormattedDataProvider(source:Object):Array
Takes a data source and formats it into a new array based on the itemsPerPage.
PaginatedItemsControlBase
Events
 EventSummaryDefined by
    PaginatedItemsControlBase
    PaginatedItemsControlBase
    PaginatedItemsControlBase
    PaginatedItemsControlBase
Property detail
dataProviderproperty
dataProvider:Object  [read-write]

The set of data to be paginated based on items per page. This value must be of type Array or mx.collections.IList or a runtime error will occur.

This property can be used as the source for data binding.

Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
formattedDataProviderproperty 
protected var formattedDataProvider:Array

The internal data set used by the component in order to represent the paginated data.

itemsPerPageproperty 
itemsPerPage:int  [read-write]

The number of items per page of data.

This property can be used as the source for data binding.

Implementation
    public function get itemsPerPage():int
    public function set itemsPerPage(value:int):void
pgSetsproperty 
protected var pgSets:int

A convenience accessor for subclasses to use in order to calculate the selectedIndex based on various control implementations.

This property can be used as the source for data binding.

selectedIndexproperty 
selectedIndex:int  [read-write]

The index value of the current set of data represented by the selected items.

This property can be used as the source for data binding.

Implementation
    public function get selectedIndex():int
    public function set selectedIndex(value:int):void
selectedItemsproperty 
selectedItems:Array  [read-only]

The current set of data represented by the selected index. Other UI componenets will use this to render the data.

This property can be used as the source for data binding.

Implementation
    public function get selectedItems():Array
Method detail
generateFormattedDataProvider()method
protected function generateFormattedDataProvider(source:Object):Array

Takes a data source and formats it into a new array based on the itemsPerPage.

Parameters
source:Object — The data source to be formatted.

Returns
Array
Event detail
dataProviderChangedevent 
Event object type: flash.events.Event

itemsPerPageChangedevent  
Event object type: flash.events.Event

selectedIndexChangedevent  
Event object type: flash.events.Event

selectedItemsChangedevent  
Event object type: flash.events.Event