Hi,
I'm trying to build an application with a treeview from where some
items can be dragged to a list with columns, and reorganized within
the list with columns... So far I've figured out that I need to use a
table as "a list with columns" :)
I've managed to get a a table into my application and populated it...
Now I need to be able to reorganize the table using drag and drop...
And I only want users to able to reorganize the rows, not cells... :)
My code so far gives me a table.pane.Pane and the fact that the row
I'm dragging is probably selected so it could, by hack, be extracted
that way (if one knows how to do that)...
this._mytable = new qx.ui.table.Table(this._mytableModel);
this._mytable.setDraggable(true);
this._mytable.setDroppable(true);
this._mytable.addListener("dragstart", function(e) {
e.addAction("move");
alert(e.getOriginalTarget()); //Returns
qx.ui.table.pane.FocusIndicator[6a]
});
this._mytable.addListener("drop", function(e) {
alert(e.getRelatedTarget()); //Returns NULL
alert(e.getOriginalTarget()); //qx.ui.table.pane.Pane[5v]
});
I'm new to qooxdoo but as far as I can see from documentation
getRelatedTarget() was suppose to return something... I've been
searching the maillinglist too without really finding anything...
- I hope someone can help...
Regards Jonas Finnemann Jensen.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel