Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.cache
Interface CacheableTreeTableModel

All Superinterfaces:
TreeModel, TreeTableModel
All Known Implementing Classes:
AbstractColumnFilterMapper.ColumnFilterTreeTableModel, AbstractDatabaseTreeTableModel, DefaultDatabaseTreeTableModel, DefaultFilterTreeTableModel, DefaultSortTreeTableModel, DirectoryTreeTableModel, LevelFilterMapper.DoubleTreeTableModelMap, NodeTreeTableModelMap, TreeTableColumnModelMap, TreeTableModelMap

public interface CacheableTreeTableModel
extends TreeTableModel

CacheableTreeTableModel defines methods for retrieving the non-cached data of a TreeTableModel.


Field Summary
 
Fields inherited from interface com.sciapp.treetable.TreeTableModel
CHANGE_COLUMN_SOURCE
 
Method Summary
 List getUncachedChildren(Object parent, int from, int to)
          Retrieves the leaf rows from the treetable model by specifying a row interval.
 int getUncachedGroupCount(Object node)
          Retrieves the children count for node.
 List getUncachedGroups(Object parent, int from, int to)
          Retrieves the branch rows from the treetable model by specifying a row interval.
 boolean isCountCached(Object node)
          Determines whether the children count for node has been evaluated.
 boolean isRangedModel()
          Determines whether the cache model can fetch data in ranges.
 boolean isValueCached(Object node, int column)
          Determines whether the value for node at index column has been evaluated.
 
Methods inherited from interface com.sciapp.treetable.TreeTableModel
getColumnClass, getColumnCount, getColumnName, getValueAt, isAggregate, isCellEditable, isFooter, isHeader, setValueAt
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Method Detail

getUncachedChildren

List getUncachedChildren(Object parent,
                         int from,
                         int to)
Retrieves the leaf rows from the treetable model by specifying a row interval. The following condition must be true: from >= to. The List returned must contain the row elements starting at from. However, the List may contain less elements than those specified in the range.

Parameters:
from - the starting row
to - the ending row
parent - the parent node
Returns:
a list of objects, each element of which contains a row from the treetable model

getUncachedGroupCount

int getUncachedGroupCount(Object node)
Retrieves the children count for node.

Parameters:
node - the node for which the children count we want to retrieve.
Returns:
the node's children count.

getUncachedGroups

List getUncachedGroups(Object parent,
                       int from,
                       int to)
Retrieves the branch rows from the treetable model by specifying a row interval. The following condition must be true: from >= to. The List returned must contain the row elements starting at from. However, the List may contain less elements than those specified in the range.

Parameters:
from - the starting row
to - the ending row
parent - the parent node
Returns:
a list of objects, each element of which contains a row from the treetable model

isCountCached

boolean isCountCached(Object node)
Determines whether the children count for node has been evaluated.

Returns:
true if the node's children count has already been evaluated.

isValueCached

boolean isValueCached(Object node,
                      int column)
Determines whether the value for node at index column has been evaluated.

Parameters:
node - the node to consider
column - the cell's column index
Returns:
true if the value has already been evaluated

isRangedModel

boolean isRangedModel()
Determines whether the cache model can fetch data in ranges.

Returns:
true if the cache model can fetch ranged data.

Copyright © 2005 Scientific Applications. All Rights Reserved.