|
||||||||||
| 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
com.google.gwt.user.cellview.client.AbstractPager<T>
T - the type of the PagingListView being controlledpublic abstract class AbstractPager<T>
An abstract pager that exposes many methods useful for paging.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
AbstractPager(PagingListView<T> view)
|
|
| Method Summary | |
|---|---|
void |
firstPage()
Go to the first page. |
int |
getPage()
Get the current page index. |
int |
getPageCount()
Get the number of pages based on the data size. |
int |
getPageSize()
Get the page size. |
int |
getPageStart()
Get the page start index. |
PagingListView<T> |
getPagingListView()
Get the PagingListView being paged. |
boolean |
hasNextPage()
Returns true if there is enough data such that a call to nextPage() will succeed in moving the starting point of the table
forward. |
boolean |
hasNextPages(int pages)
Returns true if there is enough data to display a given number of additional pages. |
boolean |
hasPage(int index)
Returns true if there is enough data such that the specified page is within range. |
boolean |
hasPreviousPage()
Returns true if there is enough data such that a call to previousPage() will succeed in moving the starting point of the
table backward. |
boolean |
hasPreviousPages(int pages)
Returns true if there is enough data to display a given number of previous pages. |
boolean |
isRangeLimited()
Check if the page should be limited to the actual data size. |
void |
lastPage()
Go to the last page. |
void |
lastPageStart()
Set the page start to the last index that will still show a full page. |
void |
nextPage()
Advance the starting row by 'pageSize' rows. |
void |
onRangeOrSizeChanged(PagingListView<T> listView)
|
void |
previousPage()
Move the starting row back by 'pageSize' rows. |
void |
setPage(int index)
Go to a specific page. |
void |
setPageSize(int pageSize)
Set the page size of the view. |
void |
setPageStart(int index)
Set the page start index. |
void |
setRangeLimited(boolean isRangeLimited)
Set whether or not the page range should be limited to the actual data size. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
isAttached, onBrowserEvent |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPager(PagingListView<T> view)
| Method Detail |
|---|
public void firstPage()
public int getPage()
previousPage() can be called.
public int getPageCount()
public int getPageSize()
public int getPageStart()
public PagingListView<T> getPagingListView()
PagingListView being paged.
PagingListViewpublic boolean hasNextPage()
nextPage() will succeed in moving the starting point of the table
forward.
public boolean hasNextPages(int pages)
public boolean hasPage(int index)
public boolean hasPreviousPage()
previousPage() will succeed in moving the starting point of the
table backward.
public boolean hasPreviousPages(int pages)
public boolean isRangeLimited()
public void lastPage()
public void lastPageStart()
public void nextPage()
public void onRangeOrSizeChanged(PagingListView<T> listView)
onRangeOrSizeChanged in interface PagingListView.Pager<T>public void previousPage()
public void setPage(int index)
index - the page indexpublic void setPageSize(int pageSize)
pageSize - the new page sizepublic void setPageStart(int index)
index - the indexpublic void setRangeLimited(boolean isRangeLimited)
isRangeLimited -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||