|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode com.jstatcom.model.control.SymbolTableTreeNode
public final class SymbolTableTreeNode
Treenode to be used with SymbolTree
for displaying
SymbolTable
objects a JTree
.
Field Summary | |
---|---|
SymbolTable |
symbolTable
SymbolTable represented by this tree node. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
SymbolTableTreeNode(SymbolTable symbolTable,
javax.swing.tree.DefaultTreeModel symbolTreeModel)
Creates a tree node for a symbol. |
Method Summary | |
---|---|
void |
addSymbol(Symbol symbol)
Adds a symbol to this node. |
void |
clear()
Removes all children that are SymbolTreeNode instances
from this node. |
void |
removeSymbol(java.lang.String name)
Removes a symbol node with name from this table node. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final SymbolTable symbolTable
SymbolTable
represented by this tree node.
Constructor Detail |
---|
public SymbolTableTreeNode(SymbolTable symbolTable, javax.swing.tree.DefaultTreeModel symbolTreeModel)
symbolTable
- the respective tablesymbolTreeModel
- the used tree model
java.lang.IllegalArgumentException
- if (symbolTable == null)
Method Detail |
---|
public void addSymbol(Symbol symbol)
symbol
- to be put in treepublic void removeSymbol(java.lang.String name)
name
from this table node.
name
- the identifier of the symbol to removepublic void clear()
SymbolTreeNode
instances
from this node. It removes itself from the parent node
if (getChildCount() == 0)
afterwards. It might still be
that SymbolTableTreeNode
instances are contained in this
node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |