org.cruxframework.crux.core.client.datasource.pager
Interface Pageable<T extends PagedDataSource<?>>

All Superinterfaces:
HasDataSource<T>, com.google.gwt.user.client.ui.IsWidget
All Known Implementing Classes:
AbstractPageable

Deprecated. Use DataProvider instead.

@Deprecated
public interface Pageable<T extends PagedDataSource<?>>
extends HasDataSource<T>, com.google.gwt.user.client.ui.IsWidget

Define a base interface for classes that are capable to be paged by a Pager.

Author:
Thiago da Rosa de Bustamante

Method Summary
 int getPageCount()
          Deprecated. Return the total number of pages
 void goToPage(int page)
          Deprecated. Moves the pageable's cursor to an arbitrary page
 boolean isDataLoaded()
          Deprecated. Checks if pageable data is already available
 void nextPage()
          Deprecated. Moves the pageable's cursor to the next page
 void previousPage()
          Deprecated. Moves the pageable's cursor to the previous page
 void setPager(Pager pager)
          Deprecated. Sets the pager for call back
 
Methods inherited from interface org.cruxframework.crux.core.client.datasource.HasDataSource
getDataSource, setDataSource
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 

Method Detail

nextPage

void nextPage()
Deprecated. 
Moves the pageable's cursor to the next page


previousPage

void previousPage()
Deprecated. 
Moves the pageable's cursor to the previous page


getPageCount

int getPageCount()
Deprecated. 
Return the total number of pages

Returns:
number of pages, -1 if unknown.

setPager

void setPager(Pager pager)
Deprecated. 
Sets the pager for call back

Parameters:
pager -

goToPage

void goToPage(int page)
Deprecated. 
Moves the pageable's cursor to an arbitrary page

Parameters:
page - page number

isDataLoaded

boolean isDataLoaded()
Deprecated. 
Checks if pageable data is already available

Parameters:
page -


Copyright © 2014. All rights reserved.