Class XMLTreeNode

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.opensourcephysics.controls.XMLTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class XMLTreeNode extends DefaultMutableTreeNode
This is a DefaultMutableTreeNode for an XML JTree.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Field Details

  • Constructor Details

    • XMLTreeNode

      public XMLTreeNode(XMLProperty property)
      Constructs a node with an XMLProperty
      Parameters:
      property - the XMLProperty
  • Method Details

    • getProperty

      public XMLProperty getProperty()
      Gets the XMLProperty.
      Returns:
      the XMLProperty
    • isInspectable

      public boolean isInspectable()
      Gets the XMLProperty.
      Returns:
      the XMLProperty
    • toString

      public String toString()
      This is used by the tree node to get a node label.
      Overrides:
      toString in class DefaultMutableTreeNode
      Returns:
      the display name of the node