Class DOMViewer.Panel.DOMTreeSelectionListener

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.TreeSelectionListener
    Enclosing class:
    DOMViewer.Panel

    protected class DOMViewer.Panel.DOMTreeSelectionListener
    extends java.lang.Object
    implements javax.swing.event.TreeSelectionListener
    To listen to the tree selection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String createDocumentText​(org.w3c.dom.Document doc)  
      protected void handleElementSelection​(javax.swing.event.TreeSelectionEvent ev)
      Processes element selection overlay.
      protected int nodeCount​(org.w3c.dom.Node node)  
      void valueChanged​(javax.swing.event.TreeSelectionEvent ev)
      Called when the selection changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOMTreeSelectionListener

        protected DOMTreeSelectionListener()
    • Method Detail

      • valueChanged

        public void valueChanged​(javax.swing.event.TreeSelectionEvent ev)
        Called when the selection changes.
        Specified by:
        valueChanged in interface javax.swing.event.TreeSelectionListener
      • createDocumentText

        protected java.lang.String createDocumentText​(org.w3c.dom.Document doc)
      • nodeCount

        protected int nodeCount​(org.w3c.dom.Node node)
      • handleElementSelection

        protected void handleElementSelection​(javax.swing.event.TreeSelectionEvent ev)
        Processes element selection overlay.
        Parameters:
        ev - Tree selection event