Class IWNodeElement

An interface providing tree functionality


Constructor Summary
IWNodeElement(name)
            An Interface providing tree functionality
 
Method Summary
 void add(node)
           Adds a new node.
 Boolean checkIfExistsAsParent(node)
           Checks if node already exists as predecessor (to prevent circles).
 Array getChildren()
           Returns an array with all children
 String 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 isMarked()
           Returns if node is marked.
 void mark()
           Marks the node.
 void remove(node)
           Removes the node from the children.
 void setName(name)
           Sets name of the node element
 void setParent(newParent)
           Sets the parent of this node
 void unmark()
           Unmarks 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.

 
Constructor Detail

IWNodeElement

IWNodeElement(name)

Method Detail

add

void add(node)

checkIfExistsAsParent

Boolean checkIfExistsAsParent(node)

getChildren

Array getChildren()

getName

String getName()

getParent

Object getParent()

hasChild

Boolean hasChild()

hasChildren

Boolean hasChildren()

isMarked

Boolean isMarked()

mark

void mark()

remove

void remove(node)

setName

void setName(name)

setParent

void setParent(newParent)

unmark

void unmark()

Event Detail

triggerOnStateChange

void triggerOnStateChange()

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