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 DefaultMutableTreeNodeprivate static final StringFields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PropertyChangeListenercreatPluginPropertyChangeListener(Receiver item, DefaultMutableTreeNode receiverNode) (package private) DefaultMutableTreeNodevoidNotification that plugin has started.voidNotification that plugin has stopped.final ReceiversTreeModelrefresh()Creates a new ReceiversTreeModel by querying the Log4j Plugin Repository and building up the required information.(package private) TreeNode(package private) voidEnsure 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:PluginListenerNotification that plugin has started.- Specified by:
pluginStartedin interfacePluginListener- Parameters:
e- event
-
resolvePluginNode
-
pluginStopped
Description copied from interface:PluginListenerNotification that plugin has stopped.- Specified by:
pluginStoppedin interfacePluginListener- Parameters:
e- event
-