|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.jstatcom.project.ProjectTreeNode
public final class ProjectTreeNode
A tree node that represents a project. It is used as element for the
ProjectTree.
| Field Summary | |
|---|---|
static javolution.xml.XmlFormat<ProjectTreeNode> |
ProjectTreeNode_XML
|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
EMPTY_ENUMERATION |
| Constructor Summary | |
|---|---|
ProjectTreeNode(Project project,
java.io.File projectFile,
boolean isCurrent)
Creates a tree node for a project. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Overwritessuperclass method to make sure that two project nodes are considered equal if they reference the same project file. |
int |
hashCode()
Overwritten because equals was overwritten. |
void |
setElement()
Interface method from SettingsElement to restore a
setting. |
java.lang.String |
toString()
Gets a string representation of this node. |
| 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, 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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final javolution.xml.XmlFormat<ProjectTreeNode> ProjectTreeNode_XML
| Constructor Detail |
|---|
public ProjectTreeNode(Project project,
java.io.File projectFile,
boolean isCurrent)
project - the project that this node stands forprojectFile - the file where the project is storedisCurrent - whether this node is the currently loaded project
java.lang.IllegalArgumentException - if (project == null || projectFile == null)| Method Detail |
|---|
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to compare
true if o is a
ProjectTreeNode that points to the same project
file, false otherwisepublic int hashCode()
equals was overwritten.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNodepublic void setElement()
SettingsElement to restore a
setting. It adds this node to the project tree if the project file still
exists.
setElement in interface SettingsElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||