[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: [Q] Table getValueAt(int row, int col), addMouseMotionListener and table contents update/repaint?
|
"Grant Gayed" <ggayed@xxxxxxxxxx> schrieb im Newsbeitrag
news:atv8iv$s9h$1@xxxxxxxxxxxxxxxx
> Valentino,
>
> The example that you refer to (
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/sn
ippits/snippet3.html
> ) will work in any column. If it's not working for you then your table
> probably does not have the SWT.FULL_SELECTION style bit. Without this bit
> then only column 0 is selectable.
Ahhh, yes that's it for this one, you are right, my table didn't used that
style bit (I must have overseen, that in this case only the
SWT.FULL_SELECTION style bit gives the desired result).
> If you think that this should change then you can log a feature request
> with Platform - SWT.
>
Well, I don't know how others feel about the table implementation, but I for
my part miss some more elegant model behind it, which offers/allows right
out of the box a little bit more setup features here. However, maybe it's
all due to the fact, that I'am usually more used to the Swing based JTable
architecture and it's possibilities, instead of SWT/JFace. In other words,
maybe I need some more advanced SWT table examples, which show/demonstrate
it's whole capabilities and how to use these in a flexible manner. - Now
please don't point me to the example code snippets, these were not very
helpful for the sort of table behaviour I had in mind.
Grant, can you give me another hint/exampleon how to dynamically change the
table contents (fill it up with new values and redraw)?
What I want to get close to for a 16 x 16 table (256 cells) is, to fill up
that table with different character codes dependent on a selected encoding
table. Where the encoding table would be selectable from entries in a Combo
box or the like. So that table would resemble a sort of charter map table. -
That's also the reason why I would like to have that unique cell
sizing/resizing for this table, e.g. if the table is resized or it's
view/window fully expanded inside the IDE (by double clicking on it's title
frame), the table should still be a 16 x 16 table, with *no* additional
empty rows/cols but with equally adjusted cells.
Thanks for your comments
-Valentino