Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CTableTree - communicating with custom cell
CTableTree - communicating with custom cell [message #568730] Fri, 17 November 2006 14:51
Eclipse UserFriend
Originally posted by: boo123.gmail.com

hi group,

i am having some trouble figuring out how i should talk to my custom cell.
since the cells are passed over as class array, i never get to the actual
objects to attach some data (or set them as listeners or something like
that).

i have all the data i need in the class that creates the tabletree. the
custom cell needs access to this data when its created (to display the
data) and when the custom cell is changed (to update the data).

how should i pass the data to the custom cell?
i dont have access to the object directly. usually i'd use the
widget.setData(string, object) method to attach some arbitrary data, which
in this case aint possible either, since createTitleContents() is called
upon object creation, which is before i am able to attach any data to the
CTableTreeItem.

in an older thread (variable CTableTreeCell) which i think discusses a
similar problem, Jeremy Dowdall said that update() should be used to delay
the contentcreation, but neither of the update-methods ever gets called.
or am i supposed to (get them) call(ed) manually ?

Here is a simple example of what i mean:
TableTreeTest contains the data i want to be displayed (and updated) and
TextCell contains the Text-field where it should be displayed. The problem
now is: get the data to TextCell.createTitleContents :)
http://rapidshare.com/files/3723562/TableTreeTest.zip.html (1.2kb, zip)

thanks,
Ulrich.

any help is appreciated.
Previous Topic:Grid Plans
Next Topic:CTableTree - communicating with custom cell
Goto Forum:
  


Current Time: Sat Apr 27 04:14:45 GMT 2024

Powered by FUDForum. Page generated in 0.06755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top