|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.paging.AbstractPageNavigationSupport
public abstract class AbstractPageNavigationSupport
AbstractPageNavigationSupport
is an abstract implementation of PageNavigationSupport
. It
implements almost all the interface methods except getTotalRecordCount
and
setTotalRecordCount
.
Constructor Summary | |
---|---|
AbstractPageNavigationSupport(EventListenerList listenerList)
|
|
AbstractPageNavigationSupport(int pageSize,
EventListenerList listenerList)
|
Method Summary | |
---|---|
void |
addPageNavigationListener(PageNavigationListener l)
Adds a PageNavigationListener to the page. |
void |
firePageNavigationEvent(Object source,
int id,
int oldValue,
int newValue)
Runs each PageNavigationListener 's PageNavigationEventFired method. |
void |
firstPage()
Navigates to the first page. |
int |
getCurrentPage()
Gets the current page. |
int |
getPageCount()
Gets the total page count. |
PageNavigationListener[] |
getPageNavigationListeners()
Returns an array of all the PageNavigationListener s added to this Page with
addPageNavigationListener . |
int |
getPageSize()
Gets the page size. |
void |
lastPage()
Navigates to the last page. |
void |
nextPage()
Navigates to the next page. |
void |
previousPage()
Navigates to the previous page. |
void |
removePageNavigationListener(PageNavigationListener l)
Removes a PageNavigationListener from the page. |
void |
setCurrentPage(int page)
Sets the current page. |
protected void |
setPageCount(int pageCount)
|
void |
setPageSize(int pageSize)
Sets the page size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.paging.PageNavigationSupport |
---|
getTotalRecordCount, setTotalRecordCount |
Constructor Detail |
---|
public AbstractPageNavigationSupport(EventListenerList listenerList)
public AbstractPageNavigationSupport(int pageSize, EventListenerList listenerList)
Method Detail |
---|
public int getPageSize()
PageNavigationSupport
getPageSize
in interface PageNavigationSupport
public void setPageSize(int pageSize)
PageNavigationSupport
setPageSize
in interface PageNavigationSupport
pageSize
- the new page size.public int getCurrentPage()
PageNavigationSupport
getCurrentPage
in interface PageNavigationSupport
public void setCurrentPage(int page)
PageNavigationSupport
setCurrentPage
in interface PageNavigationSupport
page
- the new current page.protected void setPageCount(int pageCount)
public int getPageCount()
PageNavigationSupport
getPageCount
in interface PageNavigationSupport
public void nextPage()
PageNavigationSupport
nextPage
in interface PageNavigationSupport
public void previousPage()
PageNavigationSupport
previousPage
in interface PageNavigationSupport
public void firstPage()
PageNavigationSupport
firstPage
in interface PageNavigationSupport
public void lastPage()
PageNavigationSupport
lastPage
in interface PageNavigationSupport
public void addPageNavigationListener(PageNavigationListener l)
PageNavigationListener
to the page.
addPageNavigationListener
in interface PageNavigationSupport
l
- the PageNavigationListener
to be addedpublic void removePageNavigationListener(PageNavigationListener l)
PageNavigationListener
from the page.
removePageNavigationListener
in interface PageNavigationSupport
l
- the PageNavigationListener
to be removedpublic PageNavigationListener[] getPageNavigationListeners()
PageNavigationListener
s added to this Page
with
addPageNavigationListener
.
getPageNavigationListeners
in interface PageNavigationSupport
PageNavigationListener
s added, or an empty array if no listeners have been addedpublic void firePageNavigationEvent(Object source, int id, int oldValue, int newValue)
PageNavigationListener
's PageNavigationEventFired
method.
firePageNavigationEvent
in interface PageNavigationSupport
source
- of this eventid
- event id.oldValue
- the old value associated with this event.newValue
- the new value associated with this event.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |