org.cruxframework.crux.core.client.datasource
Interface PagedDataSource<E>

All Superinterfaces:
DataSource<E>
All Known Subinterfaces:
MeasurablePagedDataSource<E>, MeasurableRemoteDataSource<E>, RemoteDataSource<E>, StreamingDataSource<E>
All Known Implementing Classes:
LocalPagedDataSource, RemotePagedDataSource, RemoteStreamingDataSource

public interface PagedDataSource<E>
extends DataSource<E>

A DataSource that supports pagination


Method Summary
 int getCurrentPage()
           
 int getCurrentPageSize()
           
 int getPageSize()
           
 int getRecordIndex(E boudObject)
           
 boolean hasNextPage()
           
 boolean hasPreviousPage()
           
 boolean nextPage()
           
 boolean previousPage()
           
 void selectRecord(int index, boolean selected)
           
 void setPageSize(int pageSize)
           
 
Methods inherited from interface org.cruxframework.crux.core.client.datasource.DataSource
clearChanges, cloneDTO, copyValueToWidget, firstRecord, getBoundObject, getBoundObject, getColumnDefinitions, getNewRecords, getRecord, getRemovedRecords, getSelectedRecords, getUpdatedRecords, getValue, getValue, hasNextRecord, hasPreviousRecord, insertRecord, nextRecord, previousRecord, removeRecord, reset, setColumnDefinitions, setValue, sort, sort, updateState
 

Method Detail

hasNextPage

boolean hasNextPage()

nextPage

boolean nextPage()

hasPreviousPage

boolean hasPreviousPage()

previousPage

boolean previousPage()

getPageSize

int getPageSize()

setPageSize

void setPageSize(int pageSize)

getCurrentPageSize

int getCurrentPageSize()

getCurrentPage

int getCurrentPage()

getRecordIndex

int getRecordIndex(E boudObject)

selectRecord

void selectRecord(int index,
                  boolean selected)


Copyright © 2014. All rights reserved.