|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.sciapp.table.ListTableMap
com.sciapp.table.cache.CachedListTableModel
public class CachedListTableModel
CachedListTableModel wraps around a ListTableModel in order to provide for a caching mechanism.
| Field Summary | |
|---|---|
protected DefaultTableCache |
cache
the cache |
| Fields inherited from class com.sciapp.table.ListTableMap |
|---|
tableModel |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
CachedListTableModel(ListTableModel model)
Creates a CachedListTableModel. |
|
CachedListTableModel(ListTableModel model,
DefaultTableCache cache)
Creates a CachedListTableModel. |
|
CachedListTableModel(ListTableModel model,
int chunkSize,
int maximumCacheSize)
Creates a CachedListTableModel. |
|
| Method Summary | |
|---|---|
DefaultTableCache |
getTableCache()
Returns the cache store that is caching the underlying list table model. |
List |
getUncachedRows(int from,
int to)
Retrieves the rows from the table model by specifying a row interval. |
Object |
getValueAt(int row,
int column)
Returns tableModel.getValueAt |
boolean |
isCountCached()
Determines whether the row count has been evaluated. |
boolean |
isRangedModel()
Determines whether the cache model can fetch data in ranges. |
boolean |
isValueCached(int row,
int column)
Determines whether the value at the specified cell has been evaluated. |
void |
setTableCache(DefaultTableCache cache)
Assigns the cache store that will be used for caching the underlying list table model. |
void |
tableChanged(TableModelEvent e)
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed. |
| Methods inherited from class com.sciapp.table.ListTableMap |
|---|
addReorderListener, addRow, addRows, clear, fireRowsMapped, fireRowsReordered, getCellValue, getColumnClass, getColumnCount, getColumnName, getInnerModel, getModel, getRowCount, getRows, isCellEditable, removeReorderListener, removeRow, removeRows, rowsReordered, setModel, setValueAt |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from interface com.sciapp.table.ListTableModel |
|---|
fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged |
| Field Detail |
|---|
protected DefaultTableCache cache
| Constructor Detail |
|---|
public CachedListTableModel(ListTableModel model)
public CachedListTableModel(ListTableModel model,
int chunkSize,
int maximumCacheSize)
public CachedListTableModel(ListTableModel model,
DefaultTableCache cache)
| Method Detail |
|---|
public DefaultTableCache getTableCache()
public List getUncachedRows(int from,
int to)
getUncachedRows in interface CacheableTableModelfrom - the starting rowto - the ending row
public Object getValueAt(int row,
int column)
getValueAt in interface TableModelgetValueAt in class ListTableMaprow - the row whose value is to be queriedcolumn - the column whose value is to be queried
public boolean isCountCached()
isCountCached in interface CacheableTableModelpublic boolean isRangedModel()
isRangedModel in interface CacheableTableModel
public boolean isValueCached(int row,
int column)
isValueCached in interface CacheableTableModelrow - the cell's row indexcolumn - the cell's column index
public void setTableCache(DefaultTableCache cache)
cache - the cache store to assignpublic void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenertableChanged in class ListTableMap
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||