org.cruxframework.crux.core.client.dataprovider.pager
Interface Pager
- All Superinterfaces:
- com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.event.shared.HasHandlers, HasPageHandlers, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsWidget
- All Known Implementing Classes:
- AbstractPager
public interface Pager
- extends com.google.gwt.user.client.ui.IsWidget, HasPageHandlers, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasEnabled
A pager is a component to navigate on pages of a Pageable widget.
- Author:
- Thiago da Rosa de Bustamante
|
Method Summary |
|
getPageable()
Retrieves the bound pageable |
void |
setPageable(Pageable<?> pageable)
Bind this pager to a Pageable widget |
void |
update(int currentPage,
boolean isLastPage)
Update the pager after a page navigation on pageable DataProvider. |
| Methods inherited from interface com.google.gwt.user.client.ui.IsWidget |
asWidget |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
| Methods inherited from interface com.google.gwt.user.client.ui.HasVisibility |
isVisible, setVisible |
| Methods inherited from interface com.google.gwt.user.client.ui.HasEnabled |
isEnabled, setEnabled |
update
void update(int currentPage,
boolean isLastPage)
- Update the pager after a page navigation on pageable DataProvider.
- Parameters:
currentPage - current page on DataProviderisLastPage - true if this is the last page
setPageable
void setPageable(Pageable<?> pageable)
- Bind this pager to a Pageable widget
- Parameters:
pageable -
getPageable
<T extends PagedDataProvider<?>> Pageable<T> getPageable()
- Retrieves the bound pageable
- Returns:
- the pageable bound to this pager
Copyright © 2014. All rights reserved.