|
CachedTableModel |
Top Previous Next |
CachedTableModel provides a caching behaviour for a TableModel. This class uses a DefaultTableCache in order to store the table's rows.
CachedTableModel wraps around a TableModel, passed in the constructor:
ListTableModel uncachedModel = new DefaultListTableModel();
CachedTableModel cacheModel = new CachedTableModel(uncachedModel);
You can also specify the TableCache and/or the chunk size and the maximum cache size at construction time.
public CachedTableModel(ListTableModel model, DefaultTableCache cache);
public CachedTableModel(ListTableModel model, int chunkSize, int maximumCacheSize);