org.cruxframework.crux.core.client.datasource.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

Deprecated. Use DataProvider instead.

@Deprecated
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
<T extends PagedDataSource<?>>
Pageable<T>
getPageable()
          Deprecated. Retrieves the bound pageable
 void setPageable(Pageable<?> pageable)
          Deprecated. Bind this pager to a Pageable widget
 void update(int currentPage, boolean isLastPage)
          Deprecated. Update the pager after a page navigation on pageable datasource.
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface org.cruxframework.crux.core.client.datasource.pager.HasPageHandlers
addPageHandler
 
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
 

Method Detail

update

void update(int currentPage,
            boolean isLastPage)
Deprecated. 
Update the pager after a page navigation on pageable datasource.

Parameters:
currentPage - current page on datasource
isLastPage - true if this is the last page

setPageable

void setPageable(Pageable<?> pageable)
Deprecated. 
Bind this pager to a Pageable widget

Parameters:
pageable -

getPageable

<T extends PagedDataSource<?>> Pageable<T> getPageable()
Deprecated. 
Retrieves the bound pageable

Returns:
the pageable bound to this pager


Copyright © 2014. All rights reserved.