|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.ebob.internal.inspect.AbstractNode
public abstract class AbstractNode
Field Summary | |
---|---|
protected java.util.List |
children
the children of this node |
private Node |
parent
the parent of this node |
Constructor Summary | |
---|---|
AbstractNode()
constructs a new general-type node. |
Method Summary | |
---|---|
protected void |
addChild(Node child)
adds child as a child node of the current node, and sets
its parent to this . |
Node[] |
getChildren()
returns the child nodes of this node, represented as objects. |
org.eclipse.swt.graphics.Image |
getImage()
returns the image that should be shown for this node. |
Node |
getParent()
the parent node of this node. |
java.lang.String |
getValueAsString()
returns the toString() of Node.getValue() . |
boolean |
hasChildren()
|
void |
setParent(Node parent)
sets the parent of this node to be parent . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.wpi.ebob.internal.inspect.Node |
---|
getName, getType, getValue |
Field Detail |
---|
protected java.util.List children
private Node parent
Constructor Detail |
---|
public AbstractNode()
Method Detail |
---|
protected void addChild(Node child)
child
as a child node of the current node, and sets
its parent to this
.
public Node[] getChildren()
Node
getChildren
in interface Node
Node.getChildren()
public Node getParent()
Node
getParent
in interface Node
Node.getParent()
public java.lang.String getValueAsString()
Node.getValue()
.
getValueAsString
in interface Node
Node.getValueAsString()
public boolean hasChildren()
hasChildren
in interface Node
true
if this node has children, false
otherwise.Node.hasChildren()
public void setParent(Node parent)
Node
parent
.
setParent
in interface Node
Node.setParent(Node)
public org.eclipse.swt.graphics.Image getImage()
Node
getImage
in interface Node
null
Node.getImage()
public java.lang.String toString()
toString
in class java.lang.Object
Node.getName()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |