Class IWTreeView

This class provides a simple treeview control.

Author: JAN

Constructor Summary
IWTreeView(parent)
            Creates a new treeview under the specified parentNode.
 
Method Summary
 void addNode(node)
           Adds a new node to the treeview control.
 void addNodes(nodes)
           Adds an array of nodes to the treeview control.
 void build()
           Builds the tree. Call this method after you have registered the event handlers.
 HTMLDivElement getContainer()
           Returns the container of the treeview.
 IWNodeElement getNodes()
           Returns the array of {IWNodeElement}
 HTMLElement getParent()
           Returns the parent container of the treeview.
 IWTreeNode getTreenodes()
           Returns the array of {IWTreeNode}
 
Event Summary
 void triggerOnFormatNode(event)
           The onFormatNode event is fired before a node is appended to the tree.

Register an event listener with IWEventManager.addListener(yourTreeview, 'onformatnode', yourHandlerMethod(event)); to receive the IWFormatNodeEvent.

 void triggerOnNodeClick(event)
           The onNodeClick event is fired after a node has been clicked.

Register an event listener with IWEventManager.addListener(yourTreeview, 'onnodeclick', yourHandlerMethod(event)); to receive the IWTreeNodeClickedEvent.

 
Constructor Detail

IWTreeView

IWTreeView(parent)

Method Detail

addNode

void addNode(node)

addNodes

void addNodes(nodes)

build

void build()

getContainer

HTMLDivElement getContainer()

getNodes

IWNodeElement getNodes()

getParent

HTMLElement getParent()

getTreenodes

IWTreeNode getTreenodes()

Event Detail

triggerOnFormatNode

void triggerOnFormatNode(event)

triggerOnNodeClick

void triggerOnNodeClick(event)

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:50 GMT+0100 (MEZ)