|
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 com.jidesoft.list.DefaultPageListModel
public class DefaultPageListModel
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
DefaultPageListModel(ListModel model)
|
|
DefaultPageListModel(ListModel model,
int pageSize)
|
Method Summary | |
---|---|
protected CompoundListDataEvent |
createCompoundListDataEvent()
|
void |
fireListDataEvent(ListDataEvent event)
Fires a ListDataEvent. |
int |
getActualIndexAt(int visualRow)
Gets the actual row index in the underlying list that corresponds the specified row index. |
ListModel |
getActualModel()
Gets the underlying list model. |
Object |
getElementAt(int rowIndex)
|
int |
getIndexAt(int actualRow)
Gets the visual row index representing the specified actual row. |
int[] |
getIndexes()
Gets the indexes that maps from the visual row index to the actual row index. |
int |
getTotalRecordCount()
Gets the total record/row count. |
protected void |
reallocateIndexes()
|
void |
setActualModel(ListModel model)
Sets the actual list model. |
void |
setIndexes(int[] indexes)
Sets the indexes of the row mapping. |
void |
setTotalRecordCount(int totalRecordCount)
Sets the total record/row count. |
Methods inherited from class com.jidesoft.list.AbstractPageListModel |
---|
addPageNavigationListener, contentsChanged, firePageNavigationEvent, firstPage, getCurrentPage, getPageCount, getPageNavigationListeners, getPageSize, getSize, intervalAdded, intervalRemoved, lastPage, nextPage, previousPage, removePageNavigationListener, setCurrentPage, setPageCount, setPageSize |
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 |
Constructor Detail |
---|
public DefaultPageListModel(ListModel model)
public DefaultPageListModel(ListModel model, int pageSize)
Method Detail |
---|
public int getActualIndexAt(int visualRow)
ListModelWrapper
getActualIndexAt
in interface ListModelWrapper
public int getIndexAt(int actualRow)
ListModelWrapper
getIndexAt
in interface ListModelWrapper
public ListModel getActualModel()
ListModelWrapper
getActualModel
in interface ListModelWrapper
public void setActualModel(ListModel model)
ListModelWrapper
setActualModel
in interface ListModelWrapper
model
- the list model.public int[] getIndexes()
ListModelWrapper
getIndexes
in interface ListModelWrapper
public void setIndexes(int[] indexes)
ListModelWrapper
setIndexes
in interface ListModelWrapper
public Object getElementAt(int rowIndex)
getElementAt
in interface ListModel
public int getTotalRecordCount()
PageNavigationSupport
getTotalRecordCount
in interface PageNavigationSupport
public void setTotalRecordCount(int totalRecordCount)
PageNavigationSupport
setTotalRecordCount
in interface PageNavigationSupport
totalRecordCount
- the new total row count.protected void reallocateIndexes()
protected CompoundListDataEvent createCompoundListDataEvent()
public void fireListDataEvent(ListDataEvent event)
EventFireListModel
fireListDataEvent
in interface EventFireListModel
event
- the event
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |