Not matter what I passed it always returns null.
On Fri, 2005-04-01 at 23:31 -0500, Manuel Ledesma wrote:
> 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 ?
|