Christian Boulanger <[EMAIL PROTECTED]> writes:

> lv.addEventListener('click', function(e){
>
>    var row = this.getPane().getSelectedItems()[0];
>     alert ("ID = " + row.id.text);
> },this);

Sebastian, Andreas, et al,

This seems silly.  The fact that there is a ListViewPane object embedded in a
ListView object is purely an internal architectural issue.  The user shouldn't
need to know or care.  The user should operate purely on the ListView object,
and if, internally, information needs to be retrieved from a ListViewPane or
some other internal object, the ListView object should query the internal
object for the information.

>From a user perspective, this should be something like:

    lv.addEventListener('click', function(e){

       // no getPane(), and no user knowlege of 'row' structure
       alert("ID = " + this.getSelectedItems()[0].getText());
    },this);

Is there some reason that you _want_ it to work the way it does, or is it
merely historical?  Unless there's a reason to keep it this way, I may look
into cleaning up the user-visible architecture in 'namespaces'.  (I suspect
this is not limited to ListView, too.)

Cheers,

Derrell

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

Reply via email to