Class IWTreeView

This class provides a simple treeview control.

This class is part of the module controls.


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 tree nodes.
 Boolean removeNode(node)
           Removes a node from the treeview control.
 
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()

removeNode

Boolean removeNode(node)

Event Detail

triggerOnFormatNode

void triggerOnFormatNode(event)

triggerOnNodeClick

void triggerOnNodeClick(event)

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)