Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.cache
Class DefaultTreeTableCache

java.lang.Object
  extended by com.sciapp.table.cache.AbstractCache
      extended by com.sciapp.table.cache.AbstractTreeTableCache
          extended by com.sciapp.table.cache.DefaultTreeTableCache
All Implemented Interfaces:
Cache, TreeTableCache

public class DefaultTreeTableCache
extends AbstractTreeTableCache

DefaultTreeTableCache assumes that the row objects are an Object array. Therefore, the getObjectAt method casts the supplied object to an array and returns the element specified by the column parameter.


Field Summary
 
Fields inherited from class com.sciapp.table.cache.AbstractTreeTableCache
model
 
Fields inherited from class com.sciapp.table.cache.AbstractCache
chunkSize, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_CACHE_SIZE, maximumCacheSize
 
Constructor Summary
DefaultTreeTableCache(CacheableTreeTableModel model)
          Creates a DefaultTreeTableCache.
DefaultTreeTableCache(CacheableTreeTableModel model, int chunkSize, int maximumCacheSize)
          Creates a DefaultTreeTableCache.
 
Method Summary
 Object getObjectAt(Object rowObject, int column)
          Returns the Object found at column of row passed as a parameter.
 
Methods inherited from class com.sciapp.table.cache.AbstractTreeTableCache
get, getValueAt, isValueCached, isValueCached, put, remove, removeAll, setCacheTreeTableModel
 
Methods inherited from class com.sciapp.table.cache.AbstractCache
setChunkSize, setMaximumCacheSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeTableCache

public DefaultTreeTableCache(CacheableTreeTableModel model)
Creates a DefaultTreeTableCache.


DefaultTreeTableCache

public DefaultTreeTableCache(CacheableTreeTableModel model,
                             int chunkSize,
                             int maximumCacheSize)
Creates a DefaultTreeTableCache.

Method Detail

getObjectAt

public Object getObjectAt(Object rowObject,
                          int column)
Returns the Object found at column of row passed as a parameter.

Specified by:
getObjectAt in class AbstractTreeTableCache
Parameters:
rowObject - the row data
column - an index
Returns:
the object found at column of the row data row

Copyright © 2005 Scientific Applications. All Rights Reserved.