SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(name)
name
Method Detail |
void add(node)
Object node
- Object with tree functionality
void
Boolean checkIfExistsAsParent(node)
Object node
- Object with tree functionality
Boolean
Array getChildren()
Array
children
String getName()
String
name
Object getParent()
Object
node Object with tree functionality
Boolean hasChild()
Object
Boolean
Boolean hasChildren()
Boolean
Boolean isMarked()
Boolean
void mark()
void
void remove(node)
Object node
- Object with tree functionality
void
void setName(name)
String name
- the name of the node element
void
void setParent(newParent)
Object newParent
- the parent node.
void
void unmark()
void
Event Detail |
void triggerOnStateChange()
Register an event listener with IWEventManager.addListener(node, 'onstatechange', yourHandlerMethod()); to receive the event.
void