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