|
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.Objectcom.sciapp.table.cache.AbstractCache
com.sciapp.table.cache.AbstractTreeTableCache
public abstract class AbstractTreeTableCache
AbstractTreeTableCache is a TreeTableCache that uses a map as the cache store.
Field Summary | |
---|---|
protected CacheableTreeTableModel |
model
the cacheable treetable model |
Fields inherited from class com.sciapp.table.cache.AbstractCache |
---|
chunkSize, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_CACHE_SIZE, maximumCacheSize |
Constructor Summary | |
---|---|
AbstractTreeTableCache(CacheableTreeTableModel model)
Creates an AbstractTreeTableCache. |
|
AbstractTreeTableCache(CacheableTreeTableModel model,
int chunkSize,
int maximumCacheSize)
Creates an AbstractTreeTableCache. |
Method Summary | |
---|---|
Object |
get(Object key)
Retrieves a value from the cache. |
abstract Object |
getObjectAt(Object row,
int column)
Returns the Object found at column of row passed as a parameter. |
Object |
getValueAt(Object row,
int column)
Retrieves the cached value for node at index column. |
boolean |
isValueCached(Object key)
Determines whether the value specificed by key is cached. |
boolean |
isValueCached(Object row,
int column)
Determines whether the value for node at index column exists in the cache. |
void |
put(Object key,
Object value)
Inserts a value in the cache store. |
Object |
remove(Object key)
Removes a value from the cache store. |
void |
removeAll()
Clears the cache. |
void |
setCacheTreeTableModel(CacheableTreeTableModel model)
Assigns a CacheableTreeTableModel that will be used to retrieve the uncached values. |
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 |
Field Detail |
---|
protected CacheableTreeTableModel model
Constructor Detail |
---|
public AbstractTreeTableCache(CacheableTreeTableModel model)
public AbstractTreeTableCache(CacheableTreeTableModel model, int chunkSize, int maximumCacheSize)
Method Detail |
---|
public Object get(Object key)
get
in interface Cache
key
- an object whose associated value is cached.
public abstract Object getObjectAt(Object row, int column)
row
- the row datacolumn
- an index
public Object getValueAt(Object row, int column)
getValueAt
in interface TreeTableCache
row
- the node to considercolumn
- the cell's column index
public boolean isValueCached(Object key)
isValueCached
in interface Cache
key
- an object whose associated value is cached.
public boolean isValueCached(Object row, int column)
isValueCached
in interface TreeTableCache
row
- the node to considercolumn
- the cell's column index
public void put(Object key, Object value)
put
in interface Cache
key
- an object whose associated value is cached.value
- the value to cache.public void removeAll()
removeAll
in interface Cache
public void setCacheTreeTableModel(CacheableTreeTableModel model)
setCacheTreeTableModel
in interface TreeTableCache
model
- the cacheable treetable model that will be used as the source.public Object remove(Object key)
remove
in interface Cache
key
- an object whose associated value is cached.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |