org.sourcejammer.client.gui
Class ProjectTreeNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--org.sourcejammer.client.gui.ProjectTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class ProjectTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

Title: $FileName: ProjectTreeNode.java$

Version:
$VerNum: 4$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $
See Also:
Serialized Form

Field Summary
private  boolean dirty
           
private  org.sourcejammer.project.NodeList displayList
           
private  boolean mbContentsSet
           
private  org.sourcejammer.project.NodeList moFileChildren
           
private  javax.swing.table.DefaultTableModel moFileTableModel
           
private  org.sourcejammer.project.view.Project moProject
           
private  org.sourcejammer.project.view.NodeName ndName
           
private  java.util.Hashtable projectChildren
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ProjectTreeNode(org.sourcejammer.project.view.NodeInfo info)
           
 
Method Summary
 boolean getAllowsChildren()
           
 boolean getContentsSet()
           
 org.sourcejammer.project.NodeIterator getFileChildren()
           
 javax.swing.table.DefaultTableModel getFileTableModel()
           
 long getFileUniqueIDFromName(java.lang.String childName)
           
 org.sourcejammer.project.view.NodeInfo getInfo()
           
 org.sourcejammer.project.view.NodeInfo getNodeInfo(java.lang.String fileName)
           
 org.sourcejammer.project.view.NodeName getNodeName()
          Returns NodeName object build by the client.
 org.sourcejammer.project.view.Project getProject()
           
 ProjectTreeNode getProjectChild(long projectID)
           
 long getUniqueID()
           
 boolean isDirty()
          Returns the dirty.
 boolean isLeaf()
           
 void rebuildDisplayList(boolean showLocalRemoteSync)
           
 void setContents(org.sourcejammer.project.view.Project project)
           
 void setDirty(boolean dirty)
          Sets the dirty.
 void setNodeName(org.sourcejammer.project.view.NodeName nd)
           
private  void simpleRebuild()
           
private  void simpleRebuild(int syncState)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, 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, 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
 

Field Detail

mbContentsSet

private boolean mbContentsSet

moFileChildren

private org.sourcejammer.project.NodeList moFileChildren

moFileTableModel

private javax.swing.table.DefaultTableModel moFileTableModel

moProject

private org.sourcejammer.project.view.Project moProject

ndName

private org.sourcejammer.project.view.NodeName ndName

displayList

private org.sourcejammer.project.NodeList displayList

dirty

private boolean dirty

projectChildren

private java.util.Hashtable projectChildren
Constructor Detail

ProjectTreeNode

public ProjectTreeNode(org.sourcejammer.project.view.NodeInfo info)
Method Detail

getProjectChild

public ProjectTreeNode getProjectChild(long projectID)

getInfo

public org.sourcejammer.project.view.NodeInfo getInfo()

setNodeName

public void setNodeName(org.sourcejammer.project.view.NodeName nd)

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

getContentsSet

public boolean getContentsSet()

getProject

public org.sourcejammer.project.view.Project getProject()

getUniqueID

public long getUniqueID()

simpleRebuild

private void simpleRebuild()
                    throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException

simpleRebuild

private void simpleRebuild(int syncState)
                    throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException

rebuildDisplayList

public void rebuildDisplayList(boolean showLocalRemoteSync)
                        throws org.sourcejammer.project.NodeExistsException,
                               java.io.IOException
org.sourcejammer.project.NodeExistsException
java.io.IOException

getFileUniqueIDFromName

public long getFileUniqueIDFromName(java.lang.String childName)
                             throws org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException

setContents

public void setContents(org.sourcejammer.project.view.Project project)
                 throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException

getFileTableModel

public javax.swing.table.DefaultTableModel getFileTableModel()

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode

getFileChildren

public org.sourcejammer.project.NodeIterator getFileChildren()

getNodeInfo

public org.sourcejammer.project.view.NodeInfo getNodeInfo(java.lang.String fileName)
                                                   throws org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException

getNodeName

public org.sourcejammer.project.view.NodeName getNodeName()
Returns NodeName object build by the client.


isDirty

public boolean isDirty()
Returns the dirty.

Returns:
boolean

setDirty

public void setDirty(boolean dirty)
Sets the dirty.

Parameters:
dirty - The dirty to set


Copyright 2003 Soucejammer project.