Re: [Java-gnome-developer] Problems with TreeView
Brought to you by:
afcowie
From: Keywan N. T. <li...@pr...> - 2006-07-10 07:16:39
|
Hi, Am Sonntag, den 09.07.2006, 12:19 +0100 schrieb Andrew Cowie: > Assuming you do not have a TreeRowReference kicking around that points > at it, then what you need to do is iterate through the ListStore to find > your row. Thanks. It works know. This was exactly what I need. > Incidentally, this is half the reason one usually stores a > DataColumnObject in the ListStore with a reference to the domain object > we're modelling - easier to just test the result of getValue() == obj. > When I understand you correctly I guess I have did this. > If you're reacting to a selection event, you can get a TreePath from the > Event and from there a TreeIter. If you're reacting to an activate, you > can get a TreeIter right off of the Event... and from there quickly lift > the domain object you're modelling and then carry on with business logic > from there. Unfortunately not. To react on a selection is covered by the tutorial[1]. Maybe I manage to improve it with your example at the and of the week. Do you think this would be a helpful part in the tutorial? Thanks a lot, Keywan [1] http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/TreeViewTutorial -- Keywan Najafi Tonekaboni http://www.prometoys.net people@world:/# apt-get --purge remove dominion After unpacking world will be freed. You are about to do something potentially beneficial To continue type in the phrase 'Yes, do as We say!' |