org.apache.log4j.lf5.viewer.categoryexplorer
Class CategoryNodeEditor
java.lang.Object
org.apache.log4j.lf5.viewer.categoryexplorer.CategoryAbstractCellEditor
org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNodeEditor
- All Implemented Interfaces:
- CellEditor, TableCellEditor, TreeCellEditor
public class CategoryNodeEditor
- extends CategoryAbstractCellEditor
CategoryNodeEditor
- Author:
- Michael J. Sikorsky, Robert Shaw
Methods inherited from class org.apache.log4j.lf5.viewer.categoryexplorer.CategoryAbstractCellEditor |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getClickCountToStart, getTableCellEditorComponent, isCellEditable, removeCellEditorListener, setCellEditorValue, setClickCountToStart, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_renderer
protected CategoryNodeEditorRenderer _renderer
_lastEditedNode
protected CategoryNode _lastEditedNode
_checkBox
protected JCheckBox _checkBox
_categoryModel
protected CategoryExplorerModel _categoryModel
_tree
protected JTree _tree
CategoryNodeEditor
public CategoryNodeEditor(CategoryExplorerModel model)
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row)
- Specified by:
getTreeCellEditorComponent
in interface TreeCellEditor
- Overrides:
getTreeCellEditorComponent
in class CategoryAbstractCellEditor
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface CellEditor
- Overrides:
getCellEditorValue
in class CategoryAbstractCellEditor
createPropertiesMenuItem
protected JMenuItem createPropertiesMenuItem(CategoryNode node)
showPropertiesDialog
protected void showPropertiesDialog(CategoryNode node)
getDisplayedProperties
protected Object getDisplayedProperties(CategoryNode node)
showPopup
protected void showPopup(CategoryNode node,
int x,
int y)
createSelectDescendantsMenuItem
protected JMenuItem createSelectDescendantsMenuItem(CategoryNode node)
createUnselectDescendantsMenuItem
protected JMenuItem createUnselectDescendantsMenuItem(CategoryNode node)
createExpandMenuItem
protected JMenuItem createExpandMenuItem(CategoryNode node)
createCollapseMenuItem
protected JMenuItem createCollapseMenuItem(CategoryNode node)
createRemoveMenuItem
protected JMenuItem createRemoveMenuItem()
- This featured was moved from the LogBrokerMonitor class
to the CategoryNodeExplorer so that the Category tree
could be pruned from the Category Explorer popup menu.
This menu option only appears when a user right clicks on
the Category parent node.
See removeUnusedNodes()
expandDescendants
protected void expandDescendants(CategoryNode node)
collapseDescendants
protected void collapseDescendants(CategoryNode node)
removeUnusedNodes
protected int removeUnusedNodes()
- Removes any inactive nodes from the Category tree.
expand
protected void expand(CategoryNode node)
getTreePath
protected TreePath getTreePath(CategoryNode node)
collapse
protected void collapse(CategoryNode node)
Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.