|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.ebob.internal.inspect.AbstractNode
edu.wpi.ebob.internal.inspect.InstanceNode
public class InstanceNode
represents an Instance
in a tree.
Field Summary | |
---|---|
private boolean |
hasCheckedForChildren
implements lazy checking. |
private Instance |
instance
the underlying instance. |
Fields inherited from class edu.wpi.ebob.internal.inspect.AbstractNode |
---|
children |
Constructor Summary | |
---|---|
InstanceNode(Instance instance)
|
Method Summary | |
---|---|
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. |
java.lang.String |
getName()
the text label for this node. |
IClass |
getType()
returns the Class object associated with this node. |
IObject |
getValue()
returns null as a value for an instance node doesn't make
sense; the "value" is the children. |
boolean |
hasChildren()
|
Methods inherited from class edu.wpi.ebob.internal.inspect.AbstractNode |
---|
addChild, getParent, getValueAsString, setParent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private boolean hasCheckedForChildren
private Instance instance
Constructor Detail |
---|
public InstanceNode(Instance instance)
instance
- the underlying instance for this node.Method Detail |
---|
public Node[] getChildren()
Node
getChildren
in interface Node
getChildren
in class AbstractNode
Node.getChildren()
public org.eclipse.swt.graphics.Image getImage()
Node
getImage
in interface Node
getImage
in class AbstractNode
null
Node.getImage()
public java.lang.String getName()
Node
Node.getName()
public IClass getType()
Node
Class
object associated with this node.
Node.getType()
public IObject getValue()
null
as a value for an instance node doesn't make
sense; the "value" is the children.
Node.getValue()
public boolean hasChildren()
hasChildren
in interface Node
hasChildren
in class AbstractNode
true
if this node has children, false
otherwise.Node.hasChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |