de.matthias_burbach.deputy.swing
Class RuleSetTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byde.matthias_burbach.deputy.swing.BaseMutableTreeNode
          extended byde.matthias_burbach.deputy.swing.RuleSetTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, RuleSetChangeListener, java.io.Serializable, javax.swing.tree.TreeNode

public class RuleSetTreeNode
extends BaseMutableTreeNode
implements RuleSetChangeListener

Author:
Matthias Burbach
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
RuleSetTreeNode(Project project, javax.swing.tree.DefaultTreeModel treeModel)
           
 
Method Summary
 void addedRule(Rule addedRule, int index)
          Is fired when a rule has been added to the rule set.
 void changedDefaultRule()
          Is fired when the default rule has been changed.
protected  void initChildren()
          Initializes the children nodes of this node.
 void removedRule(Rule removedRule)
          Is fired when a rule has been removed from the rule set.
 java.lang.String toString()
          
 
Methods inherited from class de.matthias_burbach.deputy.swing.BaseMutableTreeNode
childrenAreInitialized, getChildCount, getSuffix, isLeaf
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleSetTreeNode

public RuleSetTreeNode(Project project,
                       javax.swing.tree.DefaultTreeModel treeModel)
Parameters:
project - The top project whose rule set to display.
treeModel - The tree model to delegate change operations to.
Method Detail

initChildren

protected void initChildren()
Initializes the children nodes of this node.

Specified by:
initChildren in class BaseMutableTreeNode

addedRule

public void addedRule(Rule addedRule,
                      int index)
Is fired when a rule has been added to the rule set.

Specified by:
addedRule in interface RuleSetChangeListener
Parameters:
addedRule - The added rule.
index - The index of the added rule in the sorted list of rules of the rule set.

removedRule

public void removedRule(Rule removedRule)
Is fired when a rule has been removed from the rule set.

Specified by:
removedRule in interface RuleSetChangeListener
Parameters:
removedRule - The removed rule.

changedDefaultRule

public void changedDefaultRule()
Is fired when the default rule has been changed.

Specified by:
changedDefaultRule in interface RuleSetChangeListener

toString

public java.lang.String toString()



Copyright © 2005-2007 . All Rights Reserved.