|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.jidesoft.list.AbstractPageListModel
public abstract class AbstractPageListModel
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AbstractPageListModel()
|
|
AbstractPageListModel(int pageSize)
|
|
| Method Summary | |
|---|---|
void |
addPageNavigationListener(PageNavigationListener l)
Adds a PageNavigationListener to the page. |
void |
contentsChanged(ListDataEvent e)
|
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. |
int |
getSize()
|
void |
intervalAdded(ListDataEvent e)
|
void |
intervalRemoved(ListDataEvent e)
|
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 javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| 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 |
| Methods inherited from interface javax.swing.ListModel |
|---|
getElementAt |
| Constructor Detail |
|---|
public AbstractPageListModel()
public AbstractPageListModel(int pageSize)
| 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.public int getSize()
getSize in interface ListModelpublic void intervalAdded(ListDataEvent e)
intervalAdded in interface ListDataListenerpublic void intervalRemoved(ListDataEvent e)
intervalRemoved in interface ListDataListenerpublic void contentsChanged(ListDataEvent e)
contentsChanged in interface ListDataListener
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||