SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface providing tree functionalitiy
Author: JAN, KUNConstructor 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(name)
name
Method Detail |
void add(node)
Object node
- Object with tree functionality
void
Boolean checkIfExistsAsParent(node)
Object node
- Object with tree functionality
Boolean
void collapse()
void
void expand()
void
Array getChildren()
Array
children
Sring getName()
Sring
name
Object getParent()
Object
node Object with tree functionality
Boolean hasChild()
Object
Boolean
Boolean hasChildren()
Boolean
Boolean isCollapsed()
Boolean
Boolean isMarked()
Boolean
void mark()
void
void remove(node)
Object node
- Object with tree functionality
void
void setName(newName)
String newName
- 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
void triggerOnViewChange()
Register an event listener with IWEventManager.addListener(node, 'onviewchange', yourHandlerMethod()); to receive the event.
void