Den 08.06.2011 15:38, skrev Greg Brown:
You might just be able to use the renderer as the drag representation (not
necessarily the one that is attached to the TreeView, but a new instance
populated with the drag content).
That would mean I have to call render(Object node, Path path, int rowIndex,
TreeView treeView, boolean expanded, boolean selected, TreeView.NodeCheckState
checkState, boolean highlighted, boolean disabled), right? I think that will
take some conciderable effort to set up.
There's nothing really to set up. You just need to call render(), passing the
appropriate values (most of which you can either hard-code or get from the tree
view itself).
I understand. It seems like more work/code than the first alternative,
but nice to know :)