Class CommandListMutableTreeNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.openstreetmap.josm.gui.dialogs.CommandListMutableTreeNode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
public class CommandListMutableTreeNode extends javax.swing.tree.DefaultMutableTreeNode
MutableTreeNode implementation for Command list JTree- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PseudoCommandcmd
-
Constructor Summary
Constructors Constructor Description CommandListMutableTreeNode(PseudoCommand cmd)Constructs a newCommandListMutableTreeNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PseudoCommandgetCommand()Returns the command.intgetIndex()Returns the index.java.lang.StringtoString()-
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 java.lang.String toString()
- Overrides:
toStringin classjavax.swing.tree.DefaultMutableTreeNode
-
-