public class UberfireSimplePager
extends com.google.gwt.user.cellview.client.AbstractPager
pageSize rows are always rendered even if the "last" page has
less than pageSize rows remain. Forked not sub-classed as
GWTs code is largely private and not open to extension :(| Modifier and Type | Class and Description |
|---|---|
static interface |
UberfireSimplePager.Style
Styles used by this widget.
|
static class |
UberfireSimplePager.TextLocation
The location of the text relative to the paging buttons.
|
| Constructor and Description |
|---|
UberfireSimplePager()
Construct a
SimplePager with the default text location. |
UberfireSimplePager(boolean showFastForwardButton,
boolean showLastPageButton) |
UberfireSimplePager(UberfireSimplePager.TextLocation location)
Construct a
SimplePager with the specified text location. |
UberfireSimplePager(UberfireSimplePager.TextLocation location,
UberfireSimplePagerResources resources,
boolean showFastForwardButton,
int fastForwardRows,
boolean showLastPageButton)
Construct a
SimplePager with the specified resources. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createText() |
int |
getPageSize() |
void |
nextPage() |
protected void |
onRangeOrRowCountChanged() |
void |
previousPage() |
void |
setDisplay(com.google.gwt.view.client.HasRows display) |
void |
setPage(int index) |
void |
setPageSize(int pageSize) |
void |
setPageStart(int index) |
void |
setShowFastFordwardPageButton(boolean showFastFordwardPageButton) |
void |
setShowLastPageButton(boolean showLastPageButton) |
void |
startLoading()
Let the page know that the table is loading.
|
firstPage, getDisplay, getPage, getPageCount, getPageStart, hasNextPage, hasNextPages, hasPage, hasPreviousPage, hasPreviousPages, isRangeLimited, lastPage, lastPageStart, setRangeLimitedclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic UberfireSimplePager()
SimplePager with the default text location.public UberfireSimplePager(UberfireSimplePager.TextLocation location)
SimplePager with the specified text location.location - the location of the text relative to the buttonspublic UberfireSimplePager(boolean showFastForwardButton,
boolean showLastPageButton)
public UberfireSimplePager(UberfireSimplePager.TextLocation location, UberfireSimplePagerResources resources, boolean showFastForwardButton, int fastForwardRows, boolean showLastPageButton)
SimplePager with the specified resources.location - the location of the text relative to the buttonsresources - the UberfireSimplePagerResources to useshowFastForwardButton - if true, show a fast-forward button that advances by a larger
increment than a single pagefastForwardRows - the number of rows to jump when fast forwardingshowLastPageButton - if true, show a button to go the the last pagepublic void setShowLastPageButton(boolean showLastPageButton)
public void setShowFastFordwardPageButton(boolean showFastFordwardPageButton)
public int getPageSize()
getPageSize in class com.google.gwt.user.cellview.client.AbstractPagerpublic void setPageSize(int pageSize)
setPageSize in class com.google.gwt.user.cellview.client.AbstractPagerpublic void nextPage()
nextPage in class com.google.gwt.user.cellview.client.AbstractPagerpublic void previousPage()
previousPage in class com.google.gwt.user.cellview.client.AbstractPagerpublic void setDisplay(com.google.gwt.view.client.HasRows display)
setDisplay in class com.google.gwt.user.cellview.client.AbstractPagerpublic void setPage(int index)
setPage in class com.google.gwt.user.cellview.client.AbstractPagerpublic void setPageStart(int index)
setPageStart in class com.google.gwt.user.cellview.client.AbstractPagerpublic void startLoading()
protected String createText()
protected void onRangeOrRowCountChanged()
onRangeOrRowCountChanged in class com.google.gwt.user.cellview.client.AbstractPagerCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.