Posted by kschaefe
on March 25, 2007 at 6:27 PM PDT
I have made an initial checkin into my incubator space of some JXTreeTable fixes (#218/219). /src/kschaefe/218/java contains an updated version of JXTreeTable, TreeTableModel, AbstractTreeTableModel, and DefaultTreeTableModel. In addition, I have added some missing documentation and updated some other documentation of these and some other tree table classes.
hierarchicalColumnClass and DefaultTreeTableModel.pathToRoot(TreeNode, int) have been deprecated.
I have a copy of the JXTreeTable unit tests in /src/kschaefe/218/test. The visual check provides the expected display (with some comments, below). I have added a "cycle tree column" button that demonstrates the ability to move the tree column after the table is created.
This checkin needs to have some additional unit testing, but I think demonstrates that the hierarchical column changes will do the task.
Here's some general problems/concerns/etc:
1. The ability to set the hierarchicalColumn is really nice, but is it really necessary?
2. When moving the hierarchicalColumn the values do not update (doesn't use getValueAt). This is already noted as bugs 339/481.
I'm now working on the unit tests and plans for 339/481. Any comments would be helpful.