|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.widgets.client.paging.AbstractPager
public abstract class AbstractPager
Base implementation for a Pager
| 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()
|
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addPageHandler(PageHandler handler)
|
protected void |
checkPageable()
If there is no pageable set, throws IllegalStateException |
protected void |
firstPage()
Moves the pageable's cursor to the first page |
int |
getCurrentPage()
|
int |
getPageCount()
Returns -1 if unknown |
protected void |
goToPage(int page)
Moves the pageable's cursor to the an arbitrary page |
protected abstract void |
hideLoading()
Hides the loading information |
boolean |
isEnabled()
|
boolean |
isLastPage()
|
protected void |
lastPage()
Moves the pageable's cursor to the last page |
protected void |
nextPage()
Moves the pageable's cursor to the next page |
protected abstract void |
onUpdate()
Refreshes the pager |
protected void |
previousPage()
Moves the pageable's cursor to the previous page |
void |
setEnabled(boolean enabled)
|
void |
setPageable(Pageable pageable)
|
protected abstract void |
showLoading()
Shows some information to tell user that operation is in progress |
void |
update(int currentPage,
boolean isLastPage)
|
| 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 |
|---|
public AbstractPager()
| Method Detail |
|---|
public com.google.gwt.event.shared.HandlerRegistration addPageHandler(PageHandler handler)
addPageHandler in interface HasPageHandlersHasPageHandlers.addPageHandler(org.cruxframework.crux.widgets.client.event.paging.PageHandler)
public void update(int currentPage,
boolean isLastPage)
update in interface PagerPager.update(int, boolean)protected abstract void onUpdate()
public final void setPageable(Pageable pageable)
setPageable in interface Pagerpageable - the pageable to setprotected void previousPage()
protected void nextPage()
protected void firstPage()
protected void lastPage()
protected void goToPage(int page)
protected abstract void showLoading()
protected abstract void hideLoading()
public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic final void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledenabled - protected void checkPageable()
IllegalStateException
public int getCurrentPage()
public boolean isLastPage()
public int getPageCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||