approaching master detail tables
I need to do a master-detail (containing two tables, clicking on the top one changes the content of the bottom table).
Previously I've done it by having one tablemodel for the master table, listening to a mouse click, retreiving the right data, looking up that data in a hashmap, giving the detail tablmodel access to the new datasource and calling a datachanged event.
It looks like it should be much simpler to do such a thing using filters...but I don't see a way of dynamically inserting/removing filters...only adding a whole filterpipeline.
Secondly, could the treetablemodel have some relevance here?
Finally, do I still have to listen for clicks in the master table, retreieve row information, get the cell that contains the parameter used by the detail table, etc.?
By the way, I accidently discovered the ColumnControlButton...something I was dreading having to implement...wonder what else is hidden in there :)