Class IWNodeElement

An interface providing tree functionalitiy

Author: JAN, KUN

Constructor Summary
IWNodeElement(name)
            An Interface providing tree functionalitiy
 
Method Summary
 void add(node)
           Adds a new node.
 Boolean checkIfExistsAsParent(node)
           Checks if node already exists as predecessor (to prevent circles).
 void collapse()
           marks the node as collapsed.
 void expand()
           marks the node as expanded.
 Array getChildren()
           Returns an array with all children
 Sring getName()
           Returns name of the node element
 Object getParent()
           Returns parent node
 Boolean hasChild()
           Checks if node exists as child.
 Boolean hasChildren()
           Returns a boolean if node has any childs
 Boolean isCollapsed()
           Returns if node is marked as collapsed.
 Boolean isMarked()
           Returns if node is marked.
 void mark()
           Marks the node.
 void remove(node)
           Removes the node from the children.
 void setName(newName)
           Sets name of the node element
 void setParent(newParent)
           Sets the parent of this node
 void unmark()
           Ummarks the node.
 
Event Summary
 void triggerOnStateChange()
           The onStateChange event is fired if the marking of the node has changed.

Register an event listener with IWEventManager.addListener(node, 'onstatechange', yourHandlerMethod()); to receive the event.

 void triggerOnViewChange()
           The onViewChange event is fired if the view of the node has collapsed or expanded.

Register an event listener with IWEventManager.addListener(node, 'onviewchange', yourHandlerMethod()); to receive the event.

 
Constructor Detail

IWNodeElement

IWNodeElement(name)

Method Detail

add

void add(node)

checkIfExistsAsParent

Boolean checkIfExistsAsParent(node)

collapse

void collapse()

expand

void expand()

getChildren

Array getChildren()

getName

Sring getName()

getParent

Object getParent()

hasChild

Boolean hasChild()

hasChildren

Boolean hasChildren()

isCollapsed

Boolean isCollapsed()

isMarked

Boolean isMarked()

mark

void mark()

remove

void remove(node)

setName

void setName(newName)

setParent

void setParent(newParent)

unmark

void unmark()

Event Detail

triggerOnStateChange

void triggerOnStateChange()

triggerOnViewChange

void triggerOnViewChange()

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