Sydney

Class Tree

Object
   |
   +--Widget
         |
         +--Container
               |
               +--Tree

class Tree
extends Container

Raises:

selectionchanged
whenever the selection changes. Listeners are passed an AbstractList of TreeNodes that are selected.
nodeexpanded
whenever a node with children is expanded to show its children. Listeners are passed the TreeNode that expanded.
nodecollapsed
whenever a node with children is collapsed to hide its children. Listeners are passed the TreeNode that collapsed.
nodedoubleclicked
whenever a node is double-clicked. Listeners are passed the TreeNode that was double-clicked.
Defined in tree.js


 
Fields inherited from class Container
children
   
Fields inherited from class Widget
html, id, parent, layoutData, eventTable
 
Constructor Summary
Tree (<boolean> multiSelect)
            Creates a tree widget.
 
Method Summary
 void blur()
          
 void expandTo(<int> depth)
           Expands the tree's root nodes to depth depth.
 void focus()
          
 AbstractList getSelection()
           Returns an AbstractList containing the TreeNodes that are currently selected.
 void setSelection(<WidgetList> selection)
           Selects the TreeNodes in selection.
 
Methods inherited from class Container
appendChild, clear, contains, insertAfter, insertAt, insertBefore, isEmpty, prependChild, removeChild, replaceChild, setLayout, setEnabled
   
Methods inherited from class Widget
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, createEventTable, dispose, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getClientWidth, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, layout, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setBounds, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
 

Constructor Detail

Tree

function Tree(<boolean> multiSelect)
Method Detail

blur

void blur()

expandTo

void expandTo(<int> depth)

focus

void focus()

getSelection

AbstractList getSelection()

setSelection

void setSelection(<WidgetList> selection)

Sydney

SourceForge.net Logo