OverviewSingleDeprecated

jsx3.util

class GNode

Object
->jsx3.util.GNode

Direct Known Subclasses:

jsx3.util.Job

class GNode
extends Object
No description provided.

Since:

3.6

Constructor Summary
void
init(id : String | Number)
The instance initializer.
Method Summary
boolean
add(objNode : ?)
Adds objNode as a child of this node.
boolean
del(objNode : ?)
Removes objNode as a child of this node.
Array<GNode>
Returns the child nodes of this node.
Graph
Returns the graph that this node belongs to, if any.
String | Number
id()
This function returns the unique ID of this node.
Array<GNode>
up()
Returns the parent nodes of this node.
Methods Inherited From Object
toString
Constructor Detail

init

void init(id : String | Number)
The instance initializer.

Parameters:

id
Method Detail

add

boolean add(objNode : ?)
Adds objNode as a child of this node. The node can only be added if both nodes already belong to the same graph or neither node belongs to a graph.

Parameters:

objNode

Returns:

whether the node was added.  

del

boolean del(objNode : ?)
Removes objNode as a child of this node.

Parameters:

objNode

Returns:

whether the node was removed.  

down

Array<GNode> down()
Returns the child nodes of this node.

Returns:

 

graph

Graph graph()
Returns the graph that this node belongs to, if any.

Returns:

 

id

String | Number id()
This function returns the unique ID of this node. Subclasses of this class are expected to provide their own implementation of this method. However, this implementation also generates unique IDs.

Returns:

 

up

Array<GNode> up()
Returns the parent nodes of this node.

Returns: