Storing data in TreeItem [message #455094] |
Fri, 06 May 2005 08:13 |
Eclipse User |
|
|
|
Originally posted by: akan.aiqa.com
Hi,
Briefly: Can I store an object in a TreeItem ?
I want to get the unique id of the TreeItem selected by the user so I
want to store a number and the text (displayed in the TreeItem) in a
simple object.
For example when user selects "Car" I want to get the value "12" which
is a values of the primary key field in the table of vehicles.
thanks,
aiQa
|
|
|
|
Re: Storing data in TreeItem [message #455099 is a reply to message #455095] |
Fri, 06 May 2005 12:32 |
Eclipse User |
|
|
|
Originally posted by: akan.aiqa.com
Konstantin Scheglov wrote:
> aiQa :
>
> See setData(key, value) in Widget
thanks,
Because setData, getData methods are inherited from widget class every
widget can store an object. This is excellent. I haven`t looked at the
inherited methods section in the api documentation so did`t see these
emthods.
aiQa
|
|
|
Powered by
FUDForum. Page generated in 0.03375 seconds