Documentation
- qx:row
- qx:label
- qx:application
- qx:splitButton
- qx:toolBarSplitButton
- qx:tabView
- qx:resizer
- qx:comboBox
- qx:textarea
- qx:list
- qx:slider
- qx:checkGroupBox
- qx:contextMenu
- qx:embedHtml
- qx:embedCanvas
- qx:checkBox
- qx:spacer
- qx:toolBarMenuButton
- qx:menuCheckBox
- qx:widget
- qx:toggleButton
- qx:composite
- qx:command
- qx:page
- qx:radioButton
- qx:toolBarPart
- qx:hsplit
- qx:vsplit
- qx:toolTip
- qx:atom
- qx:toolBarRadioButton
- qx:dateChooser
- qx:treeFolder
- qx:groupBox
- qxt:elsif
- qx:selectBox
- qx:listItem
- qxt:else
- qx:menu
- qxt:component
- qxt:property
- qx:toolBar
- qxt:script
- qx:separator
- qx:textField
- qx:embedIframe
- qxt:if
- qx:menuRadioButton
- qx:popup
- qx:slideBar
- qxt:variant
- qx:grow
- qx:tree
- qx:toolBarCheckBox
- qx:treeFile
- qx:vbox
- qx:scroll
- qx:colorSelector
- qx:split
- qx:canvas
- qx:dateField
- qx:spinner
- qxt:subscriber
- qx:menuBarButton
- qx:toolBarButton
- qx:image
- qx:button
- qx:column
- qx:basic
- qx:colorPopup
- qx:repeatButton
- qx:menuBar
- qx:hbox
- qx:grid
- qx:dock
- qx:formMenuButton
- qx:menuButton
- qxt:listener
- qx:stack
- qx:window
- qx:radioGroupBox
- qx:radioGroup
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.
- rootOpenClose
-
Whether the Root should have an open/close button. This may also be used in conjunction with the hideNode property to provide for virtual root nodes. In the latter case, be very sure that the virtual root nodes are expanded programatically, since there will be no open/close button for the user to open them.
Default value: false Possible values: - openMode
-
Control whether clicks or double clicks should open or close the clicked folder.
Default value: "dblclick" Possible values: "click","dblclick","none" - focusable
-
None
Default value: true Possible values:
- appearance
-
None
Default value: "tree" Possible values:
- hideRoot
-
Hide the root (Tree) node. This differs from the visibility property in that this property hides only the root node, not the node’s children.
Default value: false Possible values: - root
-
The root tree item of the tree to display
Default value: null Possible values:
{ u'add': { u'*': u'add/defaultWithPosition.mako',
u'layout': u'add/noParent.mako',
u'qx:application': u'add/qx/application.mako',
u'qx:split': u'add/qx/split.mako',
u'qxt:variant': u'add/noParent.mako'},
u'attributes': {u'*': u'attr/default.mako', u'id': u'', u'qxt:*': u''},
u'body': { u'*': u'body/qx/widget.mako',
u'qxt:component': u'body/qxt/component_root.mako'},
u'data': {u'attr': {}, u'props': {u'class': u'qx.ui.tree.Tree'}},
u'extends': [u'qx:tree', u'qx:widget', u'base']}
LGPL, EPL © 2008 QxTransformer | Siarhei Barysiuk &
Christian Boulanger.
Site design and illustrations by Siarhei Barysiuk. | Icons by Dry Icons.