java.lang.Object | |||||
↳ | com.google.gwt.user.client.ui.UIObject | ||||
↳ | com.google.gwt.user.client.ui.Widget | ||||
↳ | com.google.gwt.user.client.ui.Composite | ||||
↳ | com.google.gwt.user.cellview.client.AbstractPager | ||||
↳ | com.google.gwt.user.cellview.client.SimplePager |
A pager for controlling a HasRows
that only supports simple page
navigation.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimplePager.Resources | A ClientBundle that provides images for this widget. | ||||||||||
SimplePager.Style | Styles used by this widget. | ||||||||||
SimplePager.TextLocation | The location of the text relative to the paging buttons. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
SimplePager with the default text location. | |||||||||||
Construct a
SimplePager with the specified text location. | |||||||||||
Construct a
SimplePager with the specified resources. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Go to the first page.
| |||||||||||
Get the current page index. | |||||||||||
Get the number of pages based on the data size.
| |||||||||||
Returns true if there is enough data such that a call to
nextPage() will succeed in moving the starting point of the table
forward. | |||||||||||
Returns true if there is enough data to display a given number of
additional pages.
| |||||||||||
Returns true if there is enough data such that the specified page is within
range.
| |||||||||||
Returns true if there is enough data such that a call to
previousPage() will succeed in moving the starting point of the
table backward. | |||||||||||
Returns true if there is enough data to display a given number of previous
pages.
| |||||||||||
Go to the last page.
| |||||||||||
Set the page start to the last index that will still show a full page.
| |||||||||||
Advance the starting row by 'pageSize' rows.
| |||||||||||
Move the starting row back by 'pageSize' rows.
| |||||||||||
Set the
HasRows to be paged. | |||||||||||
Go to a specific page.
| |||||||||||
Set the page size of the display.
| |||||||||||
Set the page start index.
| |||||||||||
Let the page know that the table is loading.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the text to display in the pager that reflects the state of the pager.
| |||||||||||
Called when the range or row count changes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.cellview.client.AbstractPager
| |||||||||||
From class
com.google.gwt.user.client.ui.Composite
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
|
Construct a SimplePager
with the specified text location.
location | the location of the text relative to the buttons |
---|
Construct a SimplePager
with the specified resources.
location | the location of the text relative to the buttons |
---|---|
resources | the SimplePager.Resources to use |
showFastForwardButton | if true, show a fast-forward button that advances by a larger increment than a single page |
fastForwardRows | the number of rows to jump when fast forwarding |
showLastPageButton | if true, show a button to go the the last page |
Go to the first page.
Get the current page index.
Since the page start index can be set to any value, its possible to be
between pages. In this case, the return value is the number of times
previousPage()
can be called.
Get the number of pages based on the data size.
Returns true if there is enough data such that a call to
nextPage()
will succeed in moving the starting point of the table
forward.
Returns true if there is enough data to display a given number of additional pages.
pages | the number of pages to query |
---|
pages
next pages
Returns true if there is enough data such that the specified page is within range.
index | the page index |
---|
Returns true if there is enough data such that a call to
previousPage()
will succeed in moving the starting point of the
table backward.
Returns true if there is enough data to display a given number of previous pages.
pages | the number of previous pages to query |
---|
pages
previous pages
Go to the last page.
Set the page start to the last index that will still show a full page.
Advance the starting row by 'pageSize' rows.
Move the starting row back by 'pageSize' rows.
Go to a specific page.
index | the page index |
---|
Set the page size of the display.
pageSize | the new page size |
---|
Set the page start index.
index | the index |
---|
Let the page know that the table is loading. Call this method to clear all data from the table and hide the current range when new data is being loaded into the table.
Get the text to display in the pager that reflects the state of the pager.
Called when the range or row count changes. Implement this method to update the pager.