Package pyjamas :: Module ui :: Class Tree
[hide private]
[frames] | no frames]

Class Tree

source code

UIObject --+    
           |    
      Widget --+
               |
              Tree

A standard hierarchical tree widget. The tree contains a hierarchy of TreeItems that the user can open, close, and select.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, widget) source code
 
addFocusListener(self, listener) source code
 
addItem(self, item) source code
 
addKeyboardListener(self, listener) source code
 
addMouseListener(self, listener) source code
 
addTreeListener(self, listener) source code
 
clear(self) source code
 
ensureSelectedItemVisible(self) source code
 
getImageBase(self) source code
 
getItem(self, index) source code
 
getItemCount(self) source code
 
getSelectedItem(self) source code
 
getTabIndex(self) source code
 
__iter__(self) source code
 
onBrowserEvent(self, event) source code
 
remove(self, widget) source code
 
removeFocusListener(self, listener) source code
 
removeItem(self, item) source code
 
removeItems(self) source code
 
removeKeyboardListener(self, listener) source code
 
removeTreeListener(self, listener) source code
 
setAccessKey(self, key) source code
 
setFocus(self, focus) source code
 
setImageBase(self, baseUrl) source code
 
setSelectedItem(self, item, fireEvents=True) source code
 
setTabIndex(self, index) source code
 
treeItemIterator(self) source code
 
collectElementChain(self, chain, hRoot, hElem) source code
 
elementClicked(self, root, hElem) source code
 
findDeepestOpenChild(self, item) source code
 
findItemByChain(self, chain, idx, root) source code
 
moveFocus(self, selection) source code
 
moveSelectionDown(self, sel, dig) source code
 
moveSelectionUp(self, sel, climb) source code
 
onSelection(self, item, fireEvents) source code
 
onAttach(self)
Called when this widget has an element, and that element is on the document's DOM tree, and we have a parent widget.
source code
 
onDetach(self)
Called when this widget is being removed from the DOM tree of the document.
source code
 
onLoad(self, sender) source code
 
adopt(self, content) source code
 
disown(self, item) source code
 
fireStateChanged(self, item) source code
 
getChildWidgets(self) source code
 
shouldTreeDelegateFocusToElement(self, elem) source code

Inherited from Widget: getID, getLayoutData, getParent, isAttached, removeFromParent, setID, setLayoutData, setParent

Inherited from UIObject: addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: Widget.__init__

onBrowserEvent(self, event)

source code 
Overrides: Widget.onBrowserEvent

onAttach(self)

source code 

Called when this widget has an element, and that element is on the document's DOM tree, and we have a parent widget.

Overrides: Widget.onAttach
(inherited documentation)

onDetach(self)

source code 

Called when this widget is being removed from the DOM tree of the document.

Overrides: Widget.onDetach
(inherited documentation)

onLoad(self, sender)

source code 
Overrides: Widget.onLoad