|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 PageNavigationListeners 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 PageNavigationSupportpublic void setPageSize(int pageSize)
PageNavigationSupport
setPageSize in interface PageNavigationSupportpageSize - the new page size.public int getCurrentPage()
PageNavigationSupport
getCurrentPage in interface PageNavigationSupportpublic void setCurrentPage(int page)
PageNavigationSupport
setCurrentPage in interface PageNavigationSupportpage - the new current page.protected void setPageCount(int pageCount)
public int getPageCount()
PageNavigationSupport
getPageCount in interface PageNavigationSupportpublic void nextPage()
PageNavigationSupport
nextPage in interface PageNavigationSupportpublic void previousPage()
PageNavigationSupport
previousPage in interface PageNavigationSupportpublic void firstPage()
PageNavigationSupport
firstPage in interface PageNavigationSupportpublic void lastPage()
PageNavigationSupport
lastPage in interface PageNavigationSupportpublic void addPageNavigationListener(PageNavigationListener l)
PageNavigationListener to the page.
addPageNavigationListener in interface PageNavigationSupportl - the PageNavigationListener to be addedpublic void removePageNavigationListener(PageNavigationListener l)
PageNavigationListener from the page.
removePageNavigationListener in interface PageNavigationSupportl - the PageNavigationListener to be removedpublic PageNavigationListener[] getPageNavigationListeners()
PageNavigationListeners added to this Page with
addPageNavigationListener .
getPageNavigationListeners in interface PageNavigationSupportPageNavigationListeners added, or an empty array if no listeners have been added
public void firePageNavigationEvent(Object source,
int id,
int oldValue,
int newValue)
PageNavigationListener's PageNavigationEventFired method.
firePageNavigationEvent in interface PageNavigationSupportsource - 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 | ||||||||