|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData
@ALDMetaInfo(export=ALLOWED) public abstract class MTBTreeNodeData
Abstract class to define properties for data objects associated with TreeNodes. Each data object has to provide a method printData() for printing its data in a reasonable way. In addition, it will by default contain a reference to the TreeNode it is associated with.
MTBTree
,
MTBTreeNode
Field Summary | |
---|---|
protected MTBTreeNode |
node
Reference to the associated node of the tree. |
Constructor Summary | |
---|---|
MTBTreeNodeData()
|
Method Summary | |
---|---|
MTBTreeNode |
getNode()
Return the node object containing the data. |
abstract void |
printData()
Method to print the data associated with the node. |
void |
setNode(MTBTreeNode n)
Sets the node the object is associated with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MTBTreeNode node
Constructor Detail |
---|
public MTBTreeNodeData()
Method Detail |
---|
public void setNode(MTBTreeNode n)
n
- TreeNode the data object belongs to.public MTBTreeNode getNode()
public abstract void printData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |