|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 PageNavigationListener s 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 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.public int getSize()
getSize
in interface ListModel
public void intervalAdded(ListDataEvent e)
intervalAdded
in interface ListDataListener
public void intervalRemoved(ListDataEvent e)
intervalRemoved
in interface ListDataListener
public 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 |