Class TreeWillExpandListenerAction

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.TreeWillExpandListener

    public class TreeWillExpandListenerAction
    extends java.lang.Object
    implements javax.swing.event.TreeWillExpandListener
    A class which implements TreeWillExpandListener interface, The listener that's notified when a tree expands or collapses a node.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeWillExpandListenerAction​(javax.swing.JTree tree, ClientPrimaryDataDirectory rootDirectory)
      Constructs a TreeWillExpandListenerAction that is initialized with tree as the jtree component, and rootDirectory as the EDAL Directory.
    • Method Summary

      Modifier and Type Method Description
      void treeWillCollapse​(javax.swing.event.TreeExpansionEvent e)  
      void treeWillExpand​(javax.swing.event.TreeExpansionEvent e)  
      • Methods inherited from class java.lang.Object

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

      • TreeWillExpandListenerAction

        public TreeWillExpandListenerAction​(javax.swing.JTree tree,
                                            ClientPrimaryDataDirectory rootDirectory)
        Constructs a TreeWillExpandListenerAction that is initialized with tree as the jtree component, and rootDirectory as the EDAL Directory. If any of the parameters are null this method will not initialize.
        Parameters:
        tree - the jtree component
        rootDirectory - the EDAL Directory
    • Method Detail

      • treeWillCollapse

        public void treeWillCollapse​(javax.swing.event.TreeExpansionEvent e)
                              throws javax.swing.tree.ExpandVetoException
        Specified by:
        treeWillCollapse in interface javax.swing.event.TreeWillExpandListener
        Throws:
        javax.swing.tree.ExpandVetoException
      • treeWillExpand

        public void treeWillExpand​(javax.swing.event.TreeExpansionEvent e)
                            throws javax.swing.tree.ExpandVetoException
        Specified by:
        treeWillExpand in interface javax.swing.event.TreeWillExpandListener
        Throws:
        javax.swing.tree.ExpandVetoException