public function getId(Void):NumberRetuns the unique ID Number that represents the node. This value is very usefull to retrieve a specific Node. This method is FINAL, IT MUST NOT BE OVERLOADED.
Void |
Number the node ID.
public function isParent(n:Node):BooleanSay is the node is the parent of the current node.
n | The Node you are going to test the patternity |
Boolean True is the node in argument if the father of the current one, false otherwise.
public function isModified(Void):BooleanAllows you to know if this node has been modified (true value) or not (false value). Mainly usefull for the cache system.
Boolean Value specifying the statut of the node. A true value means the node has been modified, it it should be rendered again
public function setModified(b:Boolean):VoidAllows you to set the modified property of the node.
b | Boolean true means the node is modified, and false the opposite. |
public function setParent(n:Node):BooleanSet the parent of a node
Boolean false is nothing has been done, true if the operation succeded
public function getParent(Void):NodeReturns the parent node reference
Void |
Node The parent node reference, which is null if no parents (for exemple for a root object).
public function hasParent(Void):BooleanAllows the user to know if the current node have a parent or not.
Void |
Boolean. True is the node has a parent, False otherwise
public function addChild(child:Node):VoidAdd a new child to this group. a basicGroup can have several childs, and when you add a child to a group, the child is automatically conencted to it's parent thanks to its parent property.
child |
public function getChildList(Void):ArrayReturns all the childs of the current group in an array
Void |
Array The array containing all the childs node of this group
public function getChild(index:Number):NodeReturns the child node at the specific index.
index | Number The ID of the child you want to get |
Node The desired Node
public function removeChildById(id:Number):BooleanRemove the child given in arguments. Returns true if the node has been removed, and false otherwise. All the children of the node you want to remove are lost. The link between them and the rest of the tree is broken. They will not be rendered anymore! But the object itself and his children are still in memory! If you want to free them completely, use child.destroy();
Boolean True if the node has been removed from the list, false otherwise.
public function destroy(Void):VoidDelete all the childs of this node, and also the datas it is actually storing. Do a recurssive call to child's destroy method.