Documentation

Reference
qx:tree (qx.ui.tree.Tree)

The Tree class implements a tree widget, with collapsable and expandable container nodes and terminal leaf nodes. You instantiate a Tree object and then assign the tree a root folder using the qx.ui.tree.Tree#root property.

If you don’t want to show the root item, you can hide it with the qx.ui.tree.Tree#hideRoot property.

The handling of selections within a tree is somewhat distributed between the root tree object and the attached {@link qx.ui.tree.SelectionManager TreeSelectionManager}. To get the currently selected element of a tree use the tree {@link #getSelectedItem getSelectedItem} method and tree {@link #setSelectedItem setSelectedItem} to set it. The TreeSelectionManager handles more coars-grained issues like providing selectAll()/deselectAll() methods.

LGPL, EPL © 2008 QxTransformer | Siarhei Barysiuk & Christian Boulanger.
Site design and illustrations by Siarhei Barysiuk. | Icons by Dry Icons.

qooxdoo