westor <[EMAIL PROTECTED]> writes:
> I successful implemnted the treevirtual class. But I have some more
> questions:
>
> 1. How can I check if an existing node is a tree or a leaf?
The documentation for SimpleTreeDataModel is your friend. It defines the
structure of a node. One of my plans, when I get around to it, is to make it
much easier to access some of the node details via individual function calls,
which will make the class considerably more user friendly. For the time
being, just reference the node properties.
> 2. At the start of my Application, the root node should be open and filled
> wth elements. With the "old" treefullcontrol class I did this in this
> manner:
>
> var t = new qx.ui.treefullcontrol.Tree(trs);
> t.addEventListener("appear", function(e) {
> var parent = this.getFirstVisibleChildOfFolder ();
> this.setSelectedElement(parent);
> parent.open(true);
> });
> t.addEventListener("treeOpenWhileEmpty", function(e) {
> // add elements...
> }
>
> How can I do this with the treevirtual class?
Almost identically. The event data you'll get is the node which was opened.
var t = new qx.ui.treevirtual.Tree( [ "My Tree" ] );
t.addEventListener("treeOpenWhileEmpty",
function(e)
{
var node = e.getData();
var hierarchy = this.getHierarchy(node.nodeId);
var path = hierarchy.join("/");
// call RPC or whatever to populate node's children
},
t);
> 3. Display of Icons in Internet Explorer is a little bit strangely. Looks
> like they having dotted frames shortly after mouse over. Is this a bug or a
> feature? ;-)
I don't see this in IE6. What version of IE are you using?
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