Class ReceiversTreeModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
org.apache.log4j.chainsaw.receivers.ReceiversTreeModel
- All Implemented Interfaces:
Serializable
,EventListener
,TreeModel
,PluginListener
A TreeModel that encapsulates the details of all the Receivers and their
related information in the Log4j framework
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.log4j.Logger
(package private) final DefaultMutableTreeNode
(package private) final DefaultMutableTreeNode
private static final String
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PropertyChangeListener
creatPluginPropertyChangeListener
(Receiver item, DefaultMutableTreeNode receiverNode) (package private) DefaultMutableTreeNode
void
Notification that plugin has started.void
Notification that plugin has stopped.final ReceiversTreeModel
refresh()
Creates a new ReceiversTreeModel by querying the Log4j Plugin Repository and building up the required information.(package private) TreeNode
(package private) void
Ensure the Root node of this tree is updated with the latest information and that listeners are notified.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
-
Field Details
-
ROOTNODE_LABEL
- See Also:
-
NoReceiversNode
-
RootNode
-
logger
private final org.apache.log4j.Logger logger
-
-
Constructor Details
-
ReceiversTreeModel
ReceiversTreeModel()
-
-
Method Details
-
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
Description copied from interface:PluginListener
Notification that plugin has started.- Specified by:
pluginStarted
in interfacePluginListener
- Parameters:
e
- event
-
resolvePluginNode
-
pluginStopped
Description copied from interface:PluginListener
Notification that plugin has stopped.- Specified by:
pluginStopped
in interfacePluginListener
- Parameters:
e
- event
-