org.apache.log4j.chainsaw.receivers
Class ReceiversTreeModel

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

public class ReceiversTreeModel
extends javax.swing.tree.DefaultTreeModel
implements org.apache.log4j.plugins.PluginListener

A TreeModel that encapsulates the details of all the Receivers and their related information in the Log4j framework

Author:
Paul Smith
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Method Summary
 void pluginStarted(org.apache.log4j.plugins.PluginEvent e)
           
 void pluginStopped(org.apache.log4j.plugins.PluginEvent e)
           
 ReceiversTreeModel refresh()
          Creates a new ReceiversTreeModel by querying the Log4j Plugin Repository and building up the required information.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

refresh

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

Returns:
ReceiversTreeModel

pluginStarted

public void pluginStarted(org.apache.log4j.plugins.PluginEvent e)
Specified by:
pluginStarted in interface org.apache.log4j.plugins.PluginListener

pluginStopped

public void pluginStopped(org.apache.log4j.plugins.PluginEvent e)
Specified by:
pluginStopped in interface org.apache.log4j.plugins.PluginListener


Copyright © 2007 Apache Software Foundation. All Rights Reserved.