public class SimplePager extends AbstractPager
Modifier and Type | Class and Description |
---|---|
static interface |
SimplePager.ImageButtonsConstants
Constant for labeling the simple pager navigational
ImageButton s |
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.DebugIdImplEnabled
DEBUG_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, setRangeLimited
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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, unsinkEvents
public 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 AbstractPager
public int getPage()
getPage
in class AbstractPager
public int getPageCount()
getPageCount
in class AbstractPager
public boolean hasNextPage()
hasNextPage
in class AbstractPager
public boolean hasNextPages(int pages)
hasNextPages
in class AbstractPager
public boolean hasPage(int index)
hasPage
in class AbstractPager
public boolean hasPreviousPage()
hasPreviousPage
in class AbstractPager
public boolean hasPreviousPages(int pages)
hasPreviousPages
in class AbstractPager
public void lastPage()
lastPage
in class AbstractPager
public void lastPageStart()
lastPageStart
in class AbstractPager
public void nextPage()
nextPage
in class AbstractPager
public void previousPage()
previousPage
in class AbstractPager
public void setDisplay(HasRows display)
setDisplay
in class AbstractPager
public void setPage(int index)
setPage
in class AbstractPager
public void setPageSize(int pageSize)
setPageSize
in class AbstractPager
public void setPageStart(int index)
setPageStart
in class AbstractPager
public void startLoading()
protected String createText()
protected void onRangeOrRowCountChanged()
onRangeOrRowCountChanged
in class AbstractPager
public int getFastForwardRows()
public void setFastForwardRows(int fastForwardRows)
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.