java.lang.Object
org.loboevolution.menu.tools.developer.tool.inspector.DOMTreeModel
All Implemented Interfaces:
TreeModel

public class DOMTreeModel extends Object implements TreeModel
  • Constructor Details

    • DOMTreeModel

      public DOMTreeModel(Document doc)
      Constructor for the DOMTreeModel object
      Parameters:
      doc - PARAM
  • Method Details

    • addTreeModelListener

      public void addTreeModelListener(TreeModelListener l)
      Adds the specified TreeModel listener to receive TreeModel events from this component. If listener l is null, no exception is thrown and no action is performed.
      Specified by:
      addTreeModelListener in interface TreeModel
      Parameters:
      l - Contains the TreeModelListener for TreeModelEvent data.
    • removeTreeModelListener

      public void removeTreeModelListener(TreeModelListener l)
      Removes the specified TreeModel listener so that it no longer receives TreeModel events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If listener l is null, no exception is thrown and no action is performed.
      Specified by:
      removeTreeModelListener in interface TreeModel
      Parameters:
      l - Contains the TreeModelListener for TreeModelEvent data.
    • getChild

      public Object getChild(Object parent, int index)
      Gets the child attribute of the DOMTreeModel object
      Specified by:
      getChild in interface TreeModel
      Parameters:
      parent - PARAM
      index - PARAM
      Returns:
      The child value
    • getChildCount

      public int getChildCount(Object parent)
      Gets the childCount attribute of the DOMTreeModel object
      Specified by:
      getChildCount in interface TreeModel
      Parameters:
      parent - PARAM
      Returns:
      The childCount value
    • getIndexOfChild

      public int getIndexOfChild(Object parent, Object child)
      Gets the indexOfChild attribute of the DOMTreeModel object
      Specified by:
      getIndexOfChild in interface TreeModel
      Parameters:
      parent - PARAM
      child - PARAM
      Returns:
      The indexOfChild value
    • getRoot

      public Object getRoot()
      Gets the root attribute of the DOMTreeModel object
      Specified by:
      getRoot in interface TreeModel
      Returns:
      The root value
    • isLeaf

      public boolean isLeaf(Object nd)
      Gets the leaf attribute of the DOMTreeModel object
      Specified by:
      isLeaf in interface TreeModel
      Parameters:
      nd - PARAM
      Returns:
      The leaf value
    • valueForPathChanged

      public void valueForPathChanged(TreePath path, Object newValue)
      Messaged when the user has altered the value for the item identified by path to newValue. If newValue signifies a truly new value the model should post a treeNodesChanged event.
      Specified by:
      valueForPathChanged in interface TreeModel
      Parameters:
      path - path to the node that the user has altered
      newValue - the new value from the TreeCellEditor