I need a file chooser dialog, so I'm making one...
So I need a table to stuff the directory listing into, and Table looks like it ought to be right for it. But, it seems to be only row-oriented -- doesn't seem you can select an individual cell, selecting activates the whole row. And the selected method returns a list of selected rows.
I understand not all APIs are incomplete; which direction is it going? Is Table going to extend to allow cell-by-cell selection, or do I need to go with GridPane and load it with Labels?
Actually Table seems right for its intended purpose, columns being fields and rows being records; I'm just trying to warp it into being a Grid.
andyWed 27 May 2009
I think the current row-oriented model is the way it should work.
KevinKelleyWed 27 May 2009
I wouldn't want to take away from how it does work, but I wonder if the api could be extended a little bit, maybe, to allow cell-select as an option maybe.
Table is so close in appearance to being right for things that look like a spreadsheet (grid layout, cell-selectable, could select whole row or whole column with click on header), that it seems a shame to have to use something completely different.
tompalmerWed 27 May 2009
Found this on the topic. Interesting that SWT isn't aiming for spreadsheet ideas here. I haven't studied in detail.
Why doesn't FileDialog work, by the way? Note, I haven't really used fwt at all. I'm just wondering.
qualidafialWed 27 May 2009
SWT usually doesn't aim for the high-level UI constructs--their stated goal is to deliver fast, efficient access to the native UI of the windowing system.
Check out JFace for cell editing and other higher level UI constructs.
KevinKelley Wed 27 May 2009
I need a file chooser dialog, so I'm making one...
So I need a table to stuff the directory listing into, and Table looks like it ought to be right for it. But, it seems to be only row-oriented -- doesn't seem you can select an individual cell, selecting activates the whole row. And the
selected
method returns a list of selected rows.I understand not all APIs are incomplete; which direction is it going? Is Table going to extend to allow cell-by-cell selection, or do I need to go with GridPane and load it with Labels?
Actually Table seems right for its intended purpose, columns being fields and rows being records; I'm just trying to warp it into being a Grid.
andy Wed 27 May 2009
I think the current row-oriented model is the way it should work.
KevinKelley Wed 27 May 2009
I wouldn't want to take away from how it does work, but I wonder if the api could be extended a little bit, maybe, to allow cell-select as an option maybe.
Table is so close in appearance to being right for things that look like a spreadsheet (grid layout, cell-selectable, could select whole row or whole column with click on header), that it seems a shame to have to use something completely different.
tompalmer Wed 27 May 2009
Found this on the topic. Interesting that SWT isn't aiming for spreadsheet ideas here. I haven't studied in detail.
Why doesn't FileDialog work, by the way? Note, I haven't really used fwt at all. I'm just wondering.
qualidafial Wed 27 May 2009
SWT usually doesn't aim for the high-level UI constructs--their stated goal is to deliver fast, efficient access to the native UI of the windowing system.
Check out JFace for cell editing and other higher level UI constructs.
qualidafial Wed 27 May 2009
See also Nebula
KevinKelley Thu 28 May 2009
uhh... does stupidity count? I don't know how I missed it.