de.matthias_burbach.deputy.swing
Class ProjectTreeNode

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

public class ProjectTreeNode
extends BaseMutableTreeNode
implements ProjectHolderTreeNode

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
ProjectTreeNode(Project project, javax.swing.tree.DefaultTreeModel treeModel)
           
ProjectTreeNode(Project project, javax.swing.tree.DefaultTreeModel treeModel, java.lang.String suffix)
           
 
Method Summary
 Project getProject()
          
protected  void initChildren()
          Initializes the children nodes of this node.
 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

ProjectTreeNode

public ProjectTreeNode(Project project,
                       javax.swing.tree.DefaultTreeModel treeModel)
Parameters:
project - The project to display.
treeModel - The tree model to delegate change operations to.

ProjectTreeNode

public ProjectTreeNode(Project project,
                       javax.swing.tree.DefaultTreeModel treeModel,
                       java.lang.String suffix)
Parameters:
project - The project to display.
treeModel - The tree model to delegate change operations to.
suffix - An optional suffix to the name of this project tree node as being displayed in the tree view.
Method Detail

initChildren

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

Specified by:
initChildren in class BaseMutableTreeNode

toString

public java.lang.String toString()


getProject

public Project getProject()

Specified by:
getProject in interface ProjectHolderTreeNode
Returns:
The project associated with this tree node.


Copyright © 2005-2007 . All Rights Reserved.