TreeTable (old impl.)

Top  Previous  Next

 

WARNING: This chapter refers to the original TreeTable implementation, which is now deprecated. In version 3.0, we introduced a more flexible TreeTable framework for dealing with tree-tables in Java, which is contained in the com.sciapp.treetable package. You are encouraged to use this new TreeTable and accompanying classes. We tried, where possible to preserve the class names, so as to facilitate the transition. Due to this fact, one must be careful not to mix classes from the com.sciapp.tree package with classes from the com.sciapp.treetable package.

 

TreeTable is the combination of a tree and a table. You can use this component in order to group several rows of a table in a single row. TreeTable extends AdvancedJTable and therefore inherits all of its methods and properties. See AdvancedJTable for more information. While TreeTable makes it possible to have a tree inside a table, a TreeTableModel is the accompanying table model that creates and maintains a dynamic tree structure. This structure is determined by the underlying data and by special objects, called TreeTableComparators, that define how the grouping of rows should be performed. Finally, the branch nodes (nodes that have children) of the tree structure are called aggregate rows, and their cell values on the table are calculated with the help of Aggregators.