> There is a sub-set of methods already that have "Folder" at the end.
> How about filling in the gaps:
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.
Hugh
-------------------------------------------------------------------------
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