Christian Boulanger schrieb:
> I hope in 0.6 you are going to normalize the API names a bit more, in
> 0.5 there is getSelection(), getSelectedItem(), getSelectedElement(),
> that is a bit confusing! And, as others have said before, please
> dispatch all events and provide hooks to all main getters and setters on
> the level of the widget, so that the user never has to work with the
> manager of a widget.
>
Here's a patch to dispatch the changeSelection event on the bound
(native speakers: is it "bound" or "bounded"?) widget in 0.5.3:
Index:
C:/Programme/xampp/htdocs/bibliograph/qooxdoo-0.5/source/script/managers/QxSelectionManager.js
===================================================================
---
C:/Programme/xampp/htdocs/bibliograph/qooxdoo-0.5/source/script/managers/QxSelectionManager.js
(revision 3419)
+++
C:/Programme/xampp/htdocs/bibliograph/qooxdoo-0.5/source/script/managers/QxSelectionManager.js
(working copy)
@@ -1168,6 +1168,10 @@
if (this.hasEventListeners("changeSelection")) {
this.dispatchEvent(new QxDataEvent("changeSelection",
this.getSelectedItems()), true);
};
+
+ if (this.getBoundedWidget().hasEventListeners("changeSelection")) {
+ this.getBoundedWidget().dispatchEvent(new
QxDataEvent("changeSelection", this.getSelectedItems()), true);
+ };
};
proto._hasChanged = function(sOldValue) {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel