|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
byucc.jhdl.apps.Viewers.NewTreeBrowser.TreeBrowserNode
Wraps a Cell for use as a node in a TreeBrowserNode.
Field Summary | |
protected boolean |
_expanded
|
protected TreeBrowserModel |
_model
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
TreeBrowserNode(Nameable usrObj,
boolean expandAll,
boolean haveWiresAsChildren,
TreeBrowserModel model)
Builds a TreeBrowserNode. |
|
TreeBrowserNode(Nameable usrObj,
TreeBrowserModel model)
|
Method Summary | |
java.lang.Object |
addSetProperty(java.lang.String property,
java.lang.Object value)
|
void |
expand()
|
void |
expand(boolean haveWiresAsChildren)
|
Cell |
getCell()
Casts the encapsulated object as a Cell. |
java.lang.String |
getFullName()
Gets the name associated with this node. |
java.lang.String |
getName()
Gets the name associated with this node. |
java.lang.Object |
getProperty(java.lang.String property)
|
Wire |
getWire()
Casts the encapsulated object as a Wire. |
boolean |
hasChildren(Nameable usrObj)
|
boolean |
isCell()
Tests whether this node encapsulates a Cell object. |
boolean |
isExpanded()
|
boolean |
isWire()
Tests whether this node encapsulates a Wire object. |
void |
sortChildren()
|
java.lang.String |
toString()
returns the name of the cell. |
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, getPathToRoot, 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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean _expanded
protected TreeBrowserModel _model
Constructor Detail |
public TreeBrowserNode(Nameable usrObj, TreeBrowserModel model)
public TreeBrowserNode(Nameable usrObj, boolean expandAll, boolean haveWiresAsChildren, TreeBrowserModel model)
Method Detail |
public boolean hasChildren(Nameable usrObj)
public void expand()
public void expand(boolean haveWiresAsChildren)
public java.lang.Object addSetProperty(java.lang.String property, java.lang.Object value)
public java.lang.Object getProperty(java.lang.String property)
public boolean isCell()
true
if this node encapsulates a Cellpublic boolean isWire()
true
if this node encapsulates a Wirepublic Cell getCell()
isCell
to determine whether this is a valid cast.
public Wire getWire()
isWire
to determine whether this is a valid cast.
public void sortChildren()
public java.lang.String getName()
public java.lang.String getFullName()
public boolean isExpanded()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |