[Java-gnome-developer] Objects in TreeView
Brought to you by:
afcowie
From: Marc R. <mar...@gm...> - 2006-11-29 18:02:20
|
Hi, is there any way to store actual objects in a TreeStore instead of the string value? For example, normally I call the setValue() method in the TreeStore, and pass in a tree iter, data column and string value. What I really want to do is stuff a set of objects in a Tree and be able to get the selected object back; somehow, a renderer somewhere would render the object to a string for displaying in the tree cell (similar to how swing works). Is this possible? Marc |