"Hugh Gibson" <[EMAIL PROTECTED]> writes: > Another big area that needs work here (as far as I can see!) is the issue of > updating additional objects added via the TRS system. > > I have: > > var oTRS = > qx.ui.treefullcontrol.TreeRowStructure.getInstance().newRow(); > // > // Add all the items we need > // > oTRS.addIndent(); // indentation and tree-lines > oTRS.addIcon(sImage, sImage); // Icon > oTRS.addLabel(sTitle); // label > // > // All else should be right justified > // > var oSpacer = new qx.ui.basic.HorizontalSpacer(); > oTRS.addObject(oSpacer, true); > // > // Add the unread counts > // > var oUnread = new qx.ui.basic.Label(sUnread); > -snip- > oTRS.addObject(oUnread, true); > var oTreeFolder = new qx.ui.treefullcontrol.TreeFolder(oTRS) > > Now, it appears that if I have a tree folder that has child folders, then I > have to access the "unread" label using: > > var oUnread = oTreeFolder.getFirstChild().getLastChild(); > > However, if there are no child folders, then I have to access the unread > label using: > > var oUnread = oTreeFolder.getLastChild(); > > This is very poor. AbstractTreeElement has methods getIconObject, > getIndentObject and getLabelObject - I suggest that we add getRowObjects > which returns an array of all objects in the row, as well as > getRowObject(nIndex) which returns the object with index nIndex.
Hi Hugh, I've never tried to do what you're doing, but I agree, if that's the case, it is very poor. Please add an enhancement ticket to bugzilla to improve this. I expect (and am hoping) that TreeFullControl and Tree will eventually be entirely replaced by TreeVirtual. I am working on making TreeVirtual very easy to use, with ready access to the tree data and relationships. Although I stand ready to fix bugs in TreeFullControl, my focus is on TreeVirtual, so I don't know when I'll get to working on enhancements for the older widgets. I will, however, gladly consider patches for improvements! Cheers, Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
