org.sf.cafebabe.gadget.classtree
Class ClassTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.sf.cafebabe.gadget.classtree.ClassTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
ClassReferenceNode, EntryNode, FolderNode, LeafNode, MagicNumberNode, RootNode, ShortNode, VersionNode

public class ClassTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

This class represents the basic class for node of class tree

Version:
1.0 02/05/2002
Author:
Alexander Shvets
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ClassTreeNode(java.lang.String text, boolean allowsChildren)
          Creates new class tree node
 
Method Summary
 boolean isChanged()
          Checks if this node was changed
 boolean isCorrect()
          Checks if this node corresponds to a correct class file entry
 void setChanged(boolean isChanged)
          Sets the flag of changes
 void setCorrect(boolean isCorrect)
          Marks this node as correct
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassTreeNode

public ClassTreeNode(java.lang.String text,
                     boolean allowsChildren)
Creates new class tree node

Parameters:
text - the text that will be displayed on the node
allowsChildren - specifies whether children are allowed for this node
Method Detail

isChanged

public boolean isChanged()
Checks if this node was changed

Returns:
true if this node was changedl false otherwise

setChanged

public void setChanged(boolean isChanged)
Sets the flag of changes

Parameters:
isChanged - the flag of changes

isCorrect

public boolean isCorrect()
Checks if this node corresponds to a correct class file entry

Returns:
true if this node corresponds to a correct class file entry;false otherwise

setCorrect

public void setCorrect(boolean isCorrect)
Marks this node as correct

Parameters:
isCorrect - the flag of correctness for this node


Copyright 2006 Dream Programs Inc.. All Rights Reserved.