Class CategoryNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class CategoryNode extends DefaultMutableTreeNode
CategoryNode- Author:
- Michael J. Sikorsky, Robert Shaw
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_hasFatalChildren
protected boolean
_hasFatalRecords
protected int
_numberOfContainedRecords
protected int
_numberOfRecordsFromChildren
protected boolean
_selected
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description CategoryNode(String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addRecord()
protected void
addRecordFromChild()
Passes up the addition from child to parentprotected void
addRecordToParent()
boolean
equals(Object obj)
int
getNumberOfContainedRecords()
protected int
getNumberOfRecordsFromChildren()
String
getTitle()
protected int
getTotalNumberOfRecords()
boolean
hasFatalChildren()
boolean
hasFatalRecords()
int
hashCode()
boolean
isSelected()
void
resetNumberOfContainedRecords()
void
setAllDescendantsDeSelected()
Deprecated.void
setAllDescendantsSelected()
Deprecated.void
setHasFatalChildren(boolean flag)
void
setHasFatalRecords(boolean flag)
void
setSelected(boolean s)
String
toString()
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Constructor Detail
-
CategoryNode
public CategoryNode(String title)
-
-
Method Detail
-
getTitle
public String getTitle()
-
setSelected
public void setSelected(boolean s)
-
isSelected
public boolean isSelected()
-
setAllDescendantsSelected
public void setAllDescendantsSelected()
Deprecated.
-
setAllDescendantsDeSelected
public void setAllDescendantsDeSelected()
Deprecated.
-
toString
public String toString()
- Overrides:
toString
in classDefaultMutableTreeNode
-
addRecord
public void addRecord()
-
getNumberOfContainedRecords
public int getNumberOfContainedRecords()
-
resetNumberOfContainedRecords
public void resetNumberOfContainedRecords()
-
hasFatalRecords
public boolean hasFatalRecords()
-
hasFatalChildren
public boolean hasFatalChildren()
-
setHasFatalRecords
public void setHasFatalRecords(boolean flag)
-
setHasFatalChildren
public void setHasFatalChildren(boolean flag)
-
getTotalNumberOfRecords
protected int getTotalNumberOfRecords()
-
addRecordFromChild
protected void addRecordFromChild()
Passes up the addition from child to parent
-
getNumberOfRecordsFromChildren
protected int getNumberOfRecordsFromChildren()
-
addRecordToParent
protected void addRecordToParent()
-
-