Class PageSizePager
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.PageSizePager
- All Implemented Interfaces:
HasAttachHandlers
,HasHandlers
,EventListener
,HasVisibility
,IsRenderable
,IsWidget
A simple pager that controls the page size.
-
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.cellview.client.AbstractPager
rangeChangeHandler, rowCountChangeHandler
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionPageSizePager
(int increment) Construct a PageSizePager with a given increment. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
Visible for testing.(package private) boolean
Visible for testing.protected void
Called when the range or row count changes.void
setDisplay
(HasRows display) Set theHasRows
to be paged.void
setPageSize
(int pageSize) Set the page size of the display.Methods inherited from class com.google.gwt.user.cellview.client.AbstractPager
firstPage, getDisplay, getPage, getPageCount, getPageSize, getPageStart, hasNextPage, hasNextPages, hasPage, hasPreviousPage, hasPreviousPages, isRangeLimited, lastPage, lastPageStart, nextPage, previousPage, setPage, setPageStart, setRangeLimited
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
Constructor Details
-
PageSizePager
Construct a PageSizePager with a given increment.- Parameters:
increment
- the amount by which to increase the page size
-
-
Method Details
-
setDisplay
Description copied from class:AbstractPager
Set theHasRows
to be paged.- Overrides:
setDisplay
in classAbstractPager
- Parameters:
display
- theHasRows
- See Also:
-
setPageSize
public void setPageSize(int pageSize) Description copied from class:AbstractPager
Set the page size of the display.- Overrides:
setPageSize
in classAbstractPager
- Parameters:
pageSize
- the new page size- See Also:
-
onRangeOrRowCountChanged
protected void onRangeOrRowCountChanged()Description copied from class:AbstractPager
Called when the range or row count changes. Implement this method to update the pager.- Specified by:
onRangeOrRowCountChanged
in classAbstractPager
-
isShowLessButtonVisible
boolean isShowLessButtonVisible()Visible for testing. -
isShowMoreButtonVisible
boolean isShowMoreButtonVisible()Visible for testing.
-