treebolic.model
Class Node

java.lang.Object
  extended by treebolic.model.NodeData
      extended by treebolic.model.XNodeData
          extended by treebolic.model.Node
All Implemented Interfaces:
INode
Direct Known Subclasses:
MutableNode

public class Node
extends XNodeData
implements INode

Node implementation

Author:
Bernard Bou

Field Summary
protected  java.util.List<INode> theChildren
          Node children
protected  INode theParent
          Parent node
 
Fields inherited from class treebolic.model.XNodeData
theEdgeImage, theMountPoint
 
Fields inherited from class treebolic.model.NodeData
theBackColor, theContent, theEdgeColor, theEdgeImageFile, theEdgeLabel, theEdgeStyle, theForeColor, theId, theImageFile, theLabel, theLink, theTarget
 
Constructor Summary
Node(INode thisParent, java.lang.String thisId)
          Construct node
 
Method Summary
 java.util.List<INode> getChildren()
          Get children nodes
 INode getParent()
          Get tree node parent
 void setParent(INode thisParent)
          Set tree node parent (used by mounting)
 
Methods inherited from class treebolic.model.XNodeData
getChildrenWeight, getEdgeImage, getImage, getLocation, getMinWeight, getMountPoint, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 
Methods inherited from class treebolic.model.NodeData
getBackColor, getContent, getEdgeColor, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImageFile, getLabel, getLink, getTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface treebolic.model.INode
getBackColor, getChildrenWeight, getContent, getEdgeColor, getEdgeImage, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImage, getImageFile, getLabel, getLink, getLocation, getMinWeight, getMountPoint, getTarget, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 

Field Detail

theChildren

protected java.util.List<INode> theChildren
Node children


theParent

protected INode theParent
Parent node

Constructor Detail

Node

public Node(INode thisParent,
            java.lang.String thisId)
Construct node

Parameters:
thisParent - parent node
thisId - node id
Method Detail

getParent

public INode getParent()
Description copied from interface: INode
Get tree node parent

Specified by:
getParent in interface INode
Returns:
tree node parent

setParent

public void setParent(INode thisParent)
Description copied from interface: INode
Set tree node parent (used by mounting)

Specified by:
setParent in interface INode
Parameters:
thisParent - tree node parent

getChildren

public java.util.List<INode> getChildren()
Description copied from interface: INode
Get children nodes

Specified by:
getChildren in interface INode
Returns:
children nodes