public class CommandListMutableTreeNode extends javax.swing.tree.DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
protected PseudoCommand |
cmd |
protected int |
idx |
Constructor and Description |
---|
CommandListMutableTreeNode(PseudoCommand cmd,
int idx)
Constructs a new
CommandListMutableTreeNode . |
Modifier and Type | Method and Description |
---|---|
PseudoCommand |
getCommand()
Returns the command.
|
int |
getIndex()
Returns the index.
|
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, toString
protected final transient PseudoCommand cmd
protected final int idx
public CommandListMutableTreeNode(PseudoCommand cmd, int idx)
CommandListMutableTreeNode
.cmd
- commandidx
- indexpublic PseudoCommand getCommand()
public int getIndex()