[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Table with multiple Listeners and Editors

Hello all,
 
i'm just using a simple table to display some data, i would like to make some fields of the table editable, for example in a Table with 5 columns, i would like to make the columns 3 and 4 editable.
 
I found a snipped which does the stuff for one column using a TableEditor
 
http://www.jlab.net/eclipse/doc/3.0/org/eclipse/swt/custom/TableEditor.html
 
i can't figure out, how i can do the same for multiple columns, does anybody know how this works?
 
I was also thinking about using a drop down list for one column, ie. it should allow to choose a value from a pre-defined set. This can be different for each row, for example:
 
i use a list of parameters which are shown in a table, each parameter possibly has a different type
the first row contains a boolean parameter, therefore: in cell number 2 you can select from[true,false]
the second row contains a parameter which uses a value set: in cell number 2 you can select from [1,2,3,5,6]
 
Does anybody know if this is possible with a simple swt table? any hints?
 
Many thanks
 
Andy

--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of The Royal College Of Surgeons in Ireland.

--------------------------------------------------------------------------------------------------------------------