[Java-gnome-developer] Help using DataColumnObject
Brought to you by:
afcowie
From: Manuel L. <man...@co...> - 2005-04-02 04:31:10
|
I have a a tree with the following columns: protected DataColumnPixbuf _dataImg; protected DataColumnPixbuf _dataStatus; protected DataColumnString _dataName; protected DataColumnObject _dataEntry; ... _dataStatus = new DataColumnPixbuf(); _dataImg = new DataColumnPixbuf(); _dataName = new DataColumnString(); _dataEntry = new DataColumnObject(); _treeStore = new TreeStore(new DataColumn[] { _dataStatus, _dataImg, _dataName, _dataEntry }); and setting the value using (This is just an example) _treeStore.setValue(result, _dataEntry, new Long(1)); But every time try to get the value back, I'm getting null; public void treeViewEvent(TreeViewEvent event) { TreeIter current = event.getTreeIter(); Object testing = _treeStore.getValue(current, _dataEntry); System.out.println(testing ); } Is there anything especial I need to to do to make it works ? |