org.cruxframework.crux.widgets.client.paging
Interface Pageable

All Known Subinterfaces:
Slider.GeneratedSlider, org.cruxframework.crux.widgets.client.slider.SliderWidget
All Known Implementing Classes:
DeviceAdaptiveGrid, Grid, Slider.InnerNoTouchSlider, Slider.InnerTouchSlider

public interface Pageable

Author:
Thiago da Rosa de Bustamante

Method Summary
 int getPageCount()
          Return the total number of pages
 void goToPage(int page)
          Moves the pageable's cursor to an arbitrary page
 boolean isDataLoaded()
          Checks if pageable data is already available
 void nextPage()
          Moves the pageable's cursor to the next page
 void previousPage()
          Moves the pageable's cursor to the previous page
 void setPager(Pager pager)
          Sets the pager for call back
 

Method Detail

nextPage

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


previousPage

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


getPageCount

int getPageCount()
Return the total number of pages

Returns:
number of pages, -1 if unknown.

setPager

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

Parameters:
pager -

goToPage

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

Parameters:
page - page number

isDataLoaded

boolean isDataLoaded()
Checks if pageable data is already available

Parameters:
page -


Copyright © 2014. All rights reserved.