Class Node

  • All Implemented Interfaces:
    com.nomagic.magicdraw.ui.browser.Expandable, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    @OpenApi
    public class Node
    extends javax.swing.tree.DefaultMutableTreeNode
    implements java.beans.PropertyChangeListener, com.nomagic.magicdraw.ui.browser.Expandable
    The base node of all tree nodes. This node has some user object.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, EMPTY_ENUMERATION, parent, userObject
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getUserObject()
      Returns user object of this node.
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

        breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, removeFromParent, setAllowsChildren, setParent
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getUserObject

        @CheckForNull
        @OpenApi
        public java.lang.Object getUserObject()
        Returns user object of this node.
        Overrides:
        getUserObject in class javax.swing.tree.DefaultMutableTreeNode
        Returns:
        user object(some Element).