Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list
N/A N/A 
The ``ui.Tree`` class lets you add a tree control to your application.

Call ``Tree.addTreeListener()`` to add a tree listener object to a tree, that
listener object's ``onTreeItemSelected()`` method will be called as the user
clicks on that item in the tree control.  Similarly, the listener object's
``onTreeItemStateChanged()`` method will be called whenever the user opens or
closes a branch of the tree.  Both of these methods have to be defined, even if
you don't use them both.

To open a branch of the tree, call ``TreeItem.setState()`` method.  If the
``state`` parameter is True, the branch of the tree will be opened; if it is
False, the branch of the tree will be closed.
 pyjamas.ui.SimplePanel SimplePanel pyjamas.ui.Tree Tree pyjamas.ui.TreeItem TreeItem pyjamas DOM pyjamas Window TreeDemo N/A SimplePanel N/A __init__ N/A N/A self N/A N/A N/A N/A N/A SimplePanel __init__ self N/A tree N/A Tree N/A N/A N/A tree addTreeListener self N/A s1 N/A N/A self createItem Section 1 N/A N/A N/A s1 addItem N/A N/A self createItem Item 1.1 value 11 N/A N/A N/A s1 addItem N/A N/A self createItem Item 1.2 value 12 N/A s2 N/A N/A self createItem Section 2 N/A N/A N/A s2 addItem N/A N/A self createItem Item 2.1 value 21 N/A N/A N/A s2 addItem N/A N/A self createItem Item 2.2 value 22 N/A N/A N/A s1 setState True fireEvents False N/A N/A N/A s2 setState True fireEvents False N/A N/A N/A tree addItem s1 N/A N/A N/A tree addItem s2 N/A N/A N/A self add tree N/A createItem N/A N/A self label value N/A None N/A N/A item N/A TreeItem label N/A N/A N/A DOM setStyleAttribute N/A N/A item getElement cursor pointer N/A N/A value None N/A N/A N/A N/A item setUserObject value N/A item N/A onTreeItemSelected N/A N/A self item N/A N/A N/A value N/A N/A item getUserObject N/A N/A N/A Window alert N/A You clicked on  N/A str value N/A onTreeItemStateChanged N/A N/A self item N/A N/A N/A N/A N/A