public class SimplePager extends AbstractPager
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimplePager.ImageButtonsConstants
Constant for labeling the simple pager navigational
ImageButtons |
static interface |
SimplePager.Resources
A ClientBundle that provides styles for this widget.
|
static class |
SimplePager.TextLocation
The location of the text relative to the paging buttons.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Constructor and Description |
|---|
SimplePager()
Construct a
SimplePager with the default text location. |
SimplePager(SimplePager.TextLocation location)
Construct a
SimplePager with the specified text location. |
SimplePager(SimplePager.TextLocation location,
boolean showFastForwardButton,
boolean showLastPageButton)
Construct a
SimplePager with the default resources, fast forward
rows and default image button names. |
SimplePager(SimplePager.TextLocation location,
boolean showFastForwardButton,
int fastForwardRows,
boolean showLastPageButton)
Construct a
SimplePager with the default resources and default
image button names. |
SimplePager(SimplePager.TextLocation location,
SimplePager.Resources resources,
boolean showFastForwardButton,
int fastForwardRows,
boolean showLastPageButton)
Construct a
SimplePager with the specified resources and default
image button names. |
SimplePager(SimplePager.TextLocation location,
SimplePager.Resources resources,
boolean showFastForwardButton,
int fastForwardRows,
boolean showLastPageButton,
SimplePager.ImageButtonsConstants imageButtonConstants)
Construct a
SimplePager with the specified resources. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createText()
Get the text to display in the pager that reflects the state of the
pager.
|
void |
firstPage() |
int |
getFastForwardRows() |
int |
getPage() |
int |
getPageCount() |
boolean |
hasNextPage() |
boolean |
hasNextPages(int pages) |
boolean |
hasPage(int index) |
boolean |
hasPreviousPage() |
boolean |
hasPreviousPages(int pages) |
void |
lastPage() |
void |
lastPageStart() |
void |
nextPage() |
protected void |
onRangeOrRowCountChanged() |
void |
previousPage() |
void |
setDisplay(HasRows display) |
void |
setFastForwardRows(int fastForwardRows) |
void |
setPage(int index) |
void |
setPageSize(int pageSize) |
void |
setPageStart(int index) |
void |
startLoading()
Let the page know that the table is loading.
|
getDisplay, getPageSize, getPageStart, isRangeLimited, setRangeLimitedgetWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElementaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic SimplePager()
SimplePager with the default text location.@UiConstructor public SimplePager(SimplePager.TextLocation location)
SimplePager with the specified text location.location - the location of the text relative to the buttonspublic SimplePager(SimplePager.TextLocation location, boolean showFastForwardButton, boolean showLastPageButton)
SimplePager with the default resources, fast forward
rows and default image button names.location - the location of the text relative to the buttonsshowFastForwardButton - if true, show a fast-forward button that advances by a larger
increment than a single pageshowLastPageButton - if true, show a button to go the the last pagepublic SimplePager(SimplePager.TextLocation location, boolean showFastForwardButton, int fastForwardRows, boolean showLastPageButton)
SimplePager with the default resources and default
image button names.location - the location of the text relative to the buttonsshowFastForwardButton - 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 SimplePager(SimplePager.TextLocation location, SimplePager.Resources resources, boolean showFastForwardButton, int fastForwardRows, boolean showLastPageButton, SimplePager.ImageButtonsConstants imageButtonConstants)
SimplePager with the specified resources.location - the location of the text relative to the buttonsresources - the SimplePager.Resources 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 pageimageButtonConstants - Constants that contain the image button namespublic SimplePager(SimplePager.TextLocation location, SimplePager.Resources resources, boolean showFastForwardButton, int fastForwardRows, boolean showLastPageButton)
SimplePager with the specified resources and default
image button names.location - the location of the text relative to the buttonsresources - the SimplePager.Resources 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 firstPage()
firstPage in class AbstractPagerpublic int getPage()
getPage in class AbstractPagerpublic int getPageCount()
getPageCount in class AbstractPagerpublic boolean hasNextPage()
hasNextPage in class AbstractPagerpublic boolean hasNextPages(int pages)
hasNextPages in class AbstractPagerpublic boolean hasPage(int index)
hasPage in class AbstractPagerpublic boolean hasPreviousPage()
hasPreviousPage in class AbstractPagerpublic boolean hasPreviousPages(int pages)
hasPreviousPages in class AbstractPagerpublic void lastPage()
lastPage in class AbstractPagerpublic void lastPageStart()
lastPageStart in class AbstractPagerpublic void nextPage()
nextPage in class AbstractPagerpublic void previousPage()
previousPage in class AbstractPagerpublic void setDisplay(HasRows display)
setDisplay in class AbstractPagerpublic void setPage(int index)
setPage in class AbstractPagerpublic void setPageSize(int pageSize)
setPageSize in class AbstractPagerpublic void setPageStart(int index)
setPageStart in class AbstractPagerpublic void startLoading()
protected String createText()
protected void onRangeOrRowCountChanged()
onRangeOrRowCountChanged in class AbstractPagerpublic int getFastForwardRows()
public void setFastForwardRows(int fastForwardRows)
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.