CacheableTreeTableModel

Top  Previous  Next

 

CacheableTreeTableModel contains methods for determining whether the children count or the column values of a tree node have been retrieved (cached). These are:

 

public boolean isCountCached(Object node);

public boolean isValueCached(Object node, int column);

 

In addition, the method:

 

public boolean isRangedModel();

 

, determines whether or not the model can fetch data in ranges.

 

Finally, the methods:

 

public java.util.List getUncachedGroups(Object parent, int from, int to);

public java.util.List getUncachedChildren(Object parent, int from, int to);

public int getUncachedGroupCount(Object node);

 

, retrieve the cell values and children count from the treetable model by specifying a row interval. In our framework, these methods are used by a Cache (TreeTableCache) object.