Class ReceiversTreeModel

java.lang.Object
javax.swing.tree.DefaultTreeModel
org.apache.log4j.chainsaw.receivers.ReceiversTreeModel
All Implemented Interfaces:
Serializable, EventListener, TreeModel, PluginListener

public class ReceiversTreeModel extends DefaultTreeModel implements PluginListener
A TreeModel that encapsulates the details of all the Receivers and their related information in the Log4j framework
See Also:
  • Field Details

  • Constructor Details

    • ReceiversTreeModel

      ReceiversTreeModel()
  • Method Details

    • refresh

      public final ReceiversTreeModel refresh()
      Creates a new ReceiversTreeModel by querying the Log4j Plugin Repository and building up the required information.
      Returns:
      ReceiversTreeModel
    • creatPluginPropertyChangeListener

      private PropertyChangeListener creatPluginPropertyChangeListener(Receiver item, DefaultMutableTreeNode receiverNode)
    • updateRootDisplay

      void updateRootDisplay()
      Ensure the Root node of this tree is updated with the latest information and that listeners are notified.
    • getRootNode

      DefaultMutableTreeNode getRootNode()
    • pluginStarted

      public void pluginStarted(PluginEvent e)
      Description copied from interface: PluginListener
      Notification that plugin has started.
      Specified by:
      pluginStarted in interface PluginListener
      Parameters:
      e - event
    • resolvePluginNode

      TreeNode resolvePluginNode(Plugin p)
    • pluginStopped

      public void pluginStopped(PluginEvent e)
      Description copied from interface: PluginListener
      Notification that plugin has stopped.
      Specified by:
      pluginStopped in interface PluginListener
      Parameters:
      e - event