I agree with Derrel. Whenever I create compound controls, I always surface properties and methods of the sub-controls to the parent control. In this way, you don't have to know how a control is build, you just need to know the properties and methods that it provides. I don't believe that you should ever have to reference a child controls properties. If it is an important property or method it should be surfaced in the parent element.

Just my opinion, I could be wrong.

Jim



On 7/6/06, Andreas Ecker <[EMAIL PROTECTED] > wrote:
Hi, Derrell!

> 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.

Well, wouldn't call it silly. ;-) Anyway, but yes, we have plans for
API refinements, particularly before the next release.

>>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.)

You're welcome to look for any potential API improvements. It would be
great if you could share your findings, so that they can be discussed
before committing any major API changes.

If others think there are issues where the API is inconsistent or hard
to grok, please post it to the list (or file a bug report if appropriate).

Thanks,

Andreas

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

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