Class CommandListMutableTreeNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.openstreetmap.josm.gui.dialogs.CommandListMutableTreeNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class CommandListMutableTreeNode extends DefaultMutableTreeNode
MutableTreeNode implementation for Command list JTree- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PseudoCommand
cmd
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description CommandListMutableTreeNode(PseudoCommand cmd)
Constructs a newCommandListMutableTreeNode
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PseudoCommand
getCommand()
Returns the command.int
getIndex()
Returns the index.String
toString()
-
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
-
-
-
-
Field Detail
-
cmd
protected final transient PseudoCommand cmd
-
-
Constructor Detail
-
CommandListMutableTreeNode
public CommandListMutableTreeNode(PseudoCommand cmd)
Constructs a newCommandListMutableTreeNode
.- Parameters:
cmd
- command
-
-
Method Detail
-
getCommand
public PseudoCommand getCommand()
Returns the command.- Returns:
- the command
-
getIndex
public int getIndex()
Returns the index.- Returns:
- the index
-
toString
public String toString()
- Overrides:
toString
in classDefaultMutableTreeNode
-
-