public class

CategoryExplorerModel

extends DefaultTreeModel
java.lang.Object
   ↳ javax.swing.tree.DefaultTreeModel
     ↳ org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel

Class Overview

CategoryExplorerModel

Summary

Fields
protected ActionEvent _event
protected ActionListener _listener
protected boolean _renderFatal
[Expand]
Inherited Fields
From class javax.swing.tree.DefaultTreeModel
Public Constructors
CategoryExplorerModel(CategoryNode node)
Public Methods
synchronized void addActionListener(ActionListener l)
CategoryNode addCategory(CategoryPath path)

Method altered by Richard Hurst such that it returns the CategoryNode corresponding to the CategoryPath

void addLogRecord(LogRecord lr)
CategoryNode getCategoryNode(String category)
CategoryNode getCategoryNode(CategoryPath path)
returns null if no CategoryNode exists.
CategoryNode getRootCategoryNode()
TreePath getTreePathToRoot(CategoryNode node)

Returns the CategoryPath to the specified CategoryNode

boolean isCategoryPathActive(CategoryPath path)
synchronized void removeActionListener(ActionListener l)
void resetAllNodeCounts()
void setDescendantSelection(CategoryNode node, boolean selected)
void setParentSelection(CategoryNode node, boolean selected)
void update(CategoryNode node, boolean selected)
Protected Methods
void notifyActionListeners()
void refresh(CategoryNode node)
Fires a nodechanged event on the SwingThread.
[Expand]
Inherited Methods
From class javax.swing.tree.DefaultTreeModel
From class java.lang.Object
From interface javax.swing.tree.TreeModel

Fields

protected ActionEvent _event

protected ActionListener _listener

protected boolean _renderFatal

Public Constructors

public CategoryExplorerModel (CategoryNode node)

Public Methods

public synchronized void addActionListener (ActionListener l)

public CategoryNode addCategory (CategoryPath path)

Method altered by Richard Hurst such that it returns the CategoryNode corresponding to the CategoryPath

Parameters
path category path.
Returns
  • CategoryNode

public void addLogRecord (LogRecord lr)

public CategoryNode getCategoryNode (String category)

public CategoryNode getCategoryNode (CategoryPath path)

returns null if no CategoryNode exists.

public CategoryNode getRootCategoryNode ()

public TreePath getTreePathToRoot (CategoryNode node)

Returns the CategoryPath to the specified CategoryNode

Parameters
node The target CategoryNode
Returns
  • CategoryPath

public boolean isCategoryPathActive (CategoryPath path)

Returns
  • true if all the nodes in the specified CategoryPath are selected.

public synchronized void removeActionListener (ActionListener l)

public void resetAllNodeCounts ()

public void setDescendantSelection (CategoryNode node, boolean selected)

public void setParentSelection (CategoryNode node, boolean selected)

public void update (CategoryNode node, boolean selected)

Protected Methods

protected void notifyActionListeners ()

protected void refresh (CategoryNode node)

Fires a nodechanged event on the SwingThread.