TreeTableModel

Top  Previous  Next

 

TreeTableModel is the model that is indirectly and transparently (through TreeTableModelAdapter) used by a TreeTable. TreeTableModel is an interface that extends javax.swing.tree.TreeModel and that has methods for querying a tree-table structure. It resembles a TableModel in which the methods that bear an integer row argument are replaced with an Object that defines the node at the particular tree branch. In addition, TreeTableModel has methods for determining whether a tree node is an aggregate, footer or header node. This information is supplemental to the model's function. It is basically used when deciding how to draw the cell values by table cell renderers or Style objects.