1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from pyjamas import DOM
16 from pyjamas import Factory
17 from SimplePanel import SimplePanel
18 from __pyjamas__ import console
19
20 -class TreeContentPanel(SimplePanel):
21 - def __init__(self, element, **kwargs):
22 self.tree_item = None
23 SimplePanel.__init__(self, element, **kwargs)
24
25 - def getTreeItem(self):
27
28 - def setTreeItem(self, tree_item):
29 self.tree_item = tree_item
30
31 - def setParent(self, widget):
32
33 console.error("Cannot directly setParent on a WidgetTreeItem's ContentPanel")
34
35 - def treeSetParent(self, widget):
37
38
39
40