Class TreeStatusPane

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

    public class TreeStatusPane
    extends java.lang.Object
    implements javax.swing.event.TreeSelectionListener
    Author:
    Khyrul Bashar
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeStatusPane​(javax.swing.JTree targetTree)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JPanel getPanel()
      Return the panel of this TreeStatusPane.
      void init()
      Initialization, to be called immediately after construction.
      void updateTreeStatus​(TreeStatus statusObj)
      In case of document changing this should be called to update TreeStatus value of the pane.
      void valueChanged​(javax.swing.event.TreeSelectionEvent treeSelectionEvent)
      Tree selection change listener which updates status string.
      • Methods inherited from class java.lang.Object

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

      • TreeStatusPane

        public TreeStatusPane​(javax.swing.JTree targetTree)
        Constructor.
        Parameters:
        targetTree - The tree instance that this status pane will correspond.
    • Method Detail

      • init

        public void init()
        Initialization, to be called immediately after construction.
      • getPanel

        public javax.swing.JPanel getPanel()
        Return the panel of this TreeStatusPane.
        Returns:
        JPanel instance.
      • updateTreeStatus

        public void updateTreeStatus​(TreeStatus statusObj)
        In case of document changing this should be called to update TreeStatus value of the pane.
        Parameters:
        statusObj - TreeStatus instance.
      • valueChanged

        public void valueChanged​(javax.swing.event.TreeSelectionEvent treeSelectionEvent)
        Tree selection change listener which updates status string.
        Specified by:
        valueChanged in interface javax.swing.event.TreeSelectionListener
        Parameters:
        treeSelectionEvent - the selection event