public class NavPanelNode
extends java.lang.Object
Constructor and Description |
---|
NavPanelNode(ModelComponent c,
NavPanelNode parent,
NavPanelTreeModel model) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
clearChildList() |
void |
deallocateChildList()
Remove the children when a node is collapsed, but keep the
myNumChildren cached because JTree may still want to know
the number of "real" children after the node has been collapsed.
|
java.lang.Object |
getChild(int idx) |
java.lang.Object |
getChild(ModelComponent comp) |
int |
getIndex(java.lang.Object child)
Returns the index of the specified child in this nodes child array.
|
int |
getIndexOfChild(java.lang.Object child) |
java.lang.String |
getName(ModelComponent comp) |
static ModelComponent |
getNodeComponent(java.lang.Object obj) |
boolean |
insertChild(java.lang.Object child)
Insert the specified child into this nodes list of children if the child
list has been initialized.
|
static boolean |
isCanonicalPath(javax.swing.tree.TreePath path)
Returns true if a TreePath corresponds to an actual path in the
model component hierarchy.
|
boolean |
isChildListExpanded() |
boolean |
isUnnamedVisible() |
void |
printExpandedNodes()
Recursively print the expanded nodes which are descendants of this node.
|
void |
removeChild(java.lang.Object child)
Remove the specified child from the list of this nodes children.
|
void |
setUnnamedVisible(boolean visible) |
public NavPanelNode(ModelComponent c, NavPanelNode parent, NavPanelTreeModel model)
public java.lang.Object[] clearChildList()
public void deallocateChildList()
public void removeChild(java.lang.Object child)
child
- The node to remove.public boolean insertChild(java.lang.Object child)
child
- The node to insert.public int getIndex(java.lang.Object child)
child
- The node to get the index of.public boolean isUnnamedVisible()
public void setUnnamedVisible(boolean visible)
public java.lang.String getName(ModelComponent comp)
public int getIndexOfChild(java.lang.Object child)
public boolean isChildListExpanded()
public static ModelComponent getNodeComponent(java.lang.Object obj)
public java.lang.Object getChild(ModelComponent comp)
public java.lang.Object getChild(int idx)
public static boolean isCanonicalPath(javax.swing.tree.TreePath path)
public void printExpandedNodes()