org.cruxframework.crux.core.client.datasource.pager
Class AbstractPager

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.cruxframework.crux.core.client.datasource.pager.AbstractPager
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasPageHandlers, Pager

Deprecated. Use DataProvider instead.

@Deprecated
public abstract class AbstractPager
extends com.google.gwt.user.client.ui.Composite
implements Pager

Base implementation for a Pager

Author:
Gesse S. F. Dafe, Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractPager()
          Deprecated.  
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addPageHandler(PageHandler handler)
          Deprecated.  
protected  void checkPageable()
          Deprecated. If there is no pageable set, raises an error
protected  void firstPage()
          Deprecated. Moves the pageable's cursor to the first page
 int getCurrentPage()
          Deprecated.  
<T extends PagedDataSource<?>>
Pageable<T>
getPageable()
          Deprecated. Retrieves the bound pageable
 int getPageCount()
          Deprecated. Returns -1 if unknown
protected  void goToPage(int page)
          Deprecated. Moves the pageable's cursor to the an arbitrary page
protected abstract  void hideLoading()
          Deprecated. Hides the loading information
 boolean isEnabled()
          Deprecated.  
 boolean isLastPage()
          Deprecated.  
protected  void lastPage()
          Deprecated. Moves the pageable's cursor to the last page
protected  void nextPage()
          Deprecated. Moves the pageable's cursor to the next page
protected abstract  void onUpdate()
          Deprecated. Refreshes the pager
protected  void previousPage()
          Deprecated. Moves the pageable's cursor to the previous page
 void setEnabled(boolean enabled)
          Deprecated.  
 void setPageable(Pageable<?> pageable)
          Deprecated. Bind this pager to a Pageable widget
protected abstract  void showLoading()
          Deprecated. Shows some information to tell user that operation is in progress
 void update(int currentPage, boolean isLastPage)
          Deprecated. Update the pager after a page navigation on pageable datasource.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

AbstractPager

public AbstractPager()
Deprecated. 
Method Detail

addPageHandler

public com.google.gwt.event.shared.HandlerRegistration addPageHandler(PageHandler handler)
Deprecated. 
Specified by:
addPageHandler in interface HasPageHandlers

update

public void update(int currentPage,
                   boolean isLastPage)
Deprecated. 
Description copied from interface: Pager
Update the pager after a page navigation on pageable datasource.

Specified by:
update in interface Pager
Parameters:
currentPage - current page on datasource
isLastPage - true if this is the last page

setPageable

public void setPageable(Pageable<?> pageable)
Deprecated. 
Description copied from interface: Pager
Bind this pager to a Pageable widget

Specified by:
setPageable in interface Pager
Parameters:
pageable - the pageable to set

isEnabled

public boolean isEnabled()
Deprecated. 
Specified by:
isEnabled in interface com.google.gwt.user.client.ui.HasEnabled
Returns:
the enabled

setEnabled

public final void setEnabled(boolean enabled)
Deprecated. 
Specified by:
setEnabled in interface com.google.gwt.user.client.ui.HasEnabled
Parameters:
enabled -

getPageable

public <T extends PagedDataSource<?>> Pageable<T> getPageable()
Deprecated. 
Description copied from interface: Pager
Retrieves the bound pageable

Specified by:
getPageable in interface Pager
Returns:
the pageable

getCurrentPage

public int getCurrentPage()
Deprecated. 
Returns:
the currentPage

isLastPage

public boolean isLastPage()
Deprecated. 
Returns:
the isLastPage

getPageCount

public int getPageCount()
Deprecated. 
Returns -1 if unknown


checkPageable

protected void checkPageable()
Deprecated. 
If there is no pageable set, raises an error


previousPage

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


nextPage

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


firstPage

protected void firstPage()
Deprecated. 
Moves the pageable's cursor to the first page


lastPage

protected void lastPage()
Deprecated. 
Moves the pageable's cursor to the last page


goToPage

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


showLoading

protected abstract void showLoading()
Deprecated. 
Shows some information to tell user that operation is in progress


hideLoading

protected abstract void hideLoading()
Deprecated. 
Hides the loading information


onUpdate

protected abstract void onUpdate()
Deprecated. 
Refreshes the pager



Copyright © 2014. All rights reserved.