Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.cache
Interface TreeTableCache

All Superinterfaces:
Cache
All Known Implementing Classes:
AbstractDatabaseTreeTableModel.DefaultTreeTableAggregateRowCache, AbstractGroupCache, AbstractTreeTableCache, DefaultGroupCache, DefaultTreeTableCache

public interface TreeTableCache
extends Cache

TableCache defines a cache suitable for caching treetables.


Method Summary
 Object getValueAt(Object node, int column)
          Retrieves the cached value for node at index column.
 boolean isValueCached(Object node, int column)
          Determines whether the value for node at index column exists in the cache.
 void setCacheTreeTableModel(CacheableTreeTableModel model)
          Assigns a CacheableTreeTableModel that will be used to retrieve the uncached values.
 
Methods inherited from interface com.sciapp.table.cache.Cache
get, isValueCached, put, remove, removeAll
 

Method Detail

getValueAt

Object getValueAt(Object node,
                  int column)
Retrieves the cached value for node at index column. If the value is not cached, this method retrieves the uncached value and inserts it in the cache store.

Parameters:
node - the node to consider
column - the cell's column index
Returns:
the cached value

isValueCached

boolean isValueCached(Object node,
                      int column)
Determines whether the value for node at index column exists in the cache.

Parameters:
node - the node to consider
column - the cell's column index
Returns:
true if the value is cached

setCacheTreeTableModel

void setCacheTreeTableModel(CacheableTreeTableModel model)
Assigns a CacheableTreeTableModel that will be used to retrieve the uncached values.

Parameters:
model - the cacheable treetable model that will be used as the source.

Copyright © 2005 Scientific Applications. All Rights Reserved.