Java Doc for CVSFileNode.java in  » Source-Control » gruntspud » gruntspud » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » gruntspud » gruntspud 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gruntspud.CVSFileNode

CVSFileNode
public class CVSFileNode implements MutableTreeNode,Comparable(Code)
This holds everything about a single node in the file heirarchy such if it is in CVS (or not), all of its children (if any), its status, if it has a file that exists associated with it etc etc. If the node can have children, the list is not actually loaded until a client requests for the number of children available. This prevents the entire directory structure from being loaded upon creation of the root node, nodes are only loaded when the parent is expanded by the user.
author:
   magicthize

Inner Class :static class FileStatusWrapper implements Comparable

Field Summary
final public static  intBINARY
    
final public static  intDIRECTORY
    
final public static  intLINE_ENDINGS_UNCHECKED
    
final public static  intSORT_ON_DATE
    
final public static  intSORT_ON_FLAGS
    
final public static  intSORT_ON_KEYWORD_SUBST
    
final public static  intSORT_ON_LOCAL_STATUS
    
final public static  intSORT_ON_NAME
    
final public static  intSORT_ON_REMOTE_STATUS
    
final public static  intSORT_ON_REVISION
    
final public static  intSORT_ON_SIZE
    
final public static  intSORT_ON_STATUS
    
final public static  intSORT_ON_TAG
    
final public static  intSORT_ON_TYPE
    
final public static  intUNIX_LINE_ENDINGS
    
final public static  intUNKNOWN_LINE_ENDINGS
    
final public static  intWINDOWS_LINE_ENDINGS
    

Constructor Summary
public  CVSFileNode(GruntspudContext context, SortCriteria sortCriteria, Entry entry, File file, CVSFileNode parent)
    

Method Summary
public  voidaddChild(CVSFileNode node)
    
public  Enumerationchildren()
     Return an enumeration of all the children in this node (if any).
public static  intcompare(CVSFileNode t, CVSFileNode n, SortCriteria sortCriteria)
    
public  intcompareTo(Object o)
    
public synchronized  voidfilterAndSortChildren()
    
public  booleangetAllowsChildren()
     Does this node allow children (i.e.
public  IcongetBaseIcon(boolean expanded)
    
public  CVSRootgetCVSRoot()
    
public  CVSSubstTypegetCVSSubstType()
    
public  StringgetCanonicalPath()
    
public  TreeNodegetChildAt(int i)
    
public  intgetChildCount()
    
public  DirectoryStatusgetDirectoryStatus()
    
public  EntrygetEntry()
    
public  EntrygetEntry(String name)
    
public  FilegetFile()
    
public  StringgetFileTypeText()
    
public  StringgetFlags()
    
public  ColorgetForeground()
    
public  StringgetFormattedText(String format)
    
public  IcongetIcon(boolean expanded)
    
public  IcongetIconForStatus(FileStatus status, Icon base)
    
public  IgnoreFileFiltergetIgnoreFilter()
    
public  intgetIndex(TreeNode node)
    
public  intgetLineEndings()
    
public  FileStatusgetLocalStatus()
    
public  StringgetLocalStatusText()
    
public static  longgetLongRevision(String revision)
    
public  StringgetName()
    
public  FileStatusgetOverallStatus()
     Return the overall status for this node.
public  StringgetOverallStatusText()
    
public  TreeNodegetParent()
    
public  ProjectgetProject()
    
public  FileStatusgetRemoteStatus()
    
public  StringgetRemoteStatusText()
    
public  StringgetRevision()
    
public  TextStylegetStyle()
    
public  StringgetTag()
    
public  TreeNodegetUnfilteredChildAt(int i)
    
public  intgetUnfilteredChildCount()
    
public  voidinsert(MutableTreeNode child, int index)
     Adds child to the receiver at index.
public  booleanisBinary()
    
public  booleanisChildListLoaded()
    
public  booleanisCopy()
    
public  booleanisIgnored()
    
public  booleanisLeaf()
    
public  booleanisModuleRoot()
    
public  booleanisNeedsAttention()
    
public  booleanisOpen()
    
public  booleanisProjectRoot()
    
public  booleanisSelected()
    
public  booleanisText()
    
public  booleanisUnicode()
    
public synchronized  voidloadChildren()
    
public  voidloadIgnoreFilter()
    
public  voidrecurseNodes(Vector v, boolean includeDir, boolean singleCopy)
    
public  voidremove(int index)
     Removes the child at index from the receiver.
public  voidremove(MutableTreeNode node)
     Removes node from the receiver.
public  voidremoveFromParent()
     Removes the receiver from its parent.
public synchronized  voidreset()
    
public  voidsetCVSSubstType(CVSSubstType cvsFileType)
    
public  voidsetIncludeAllFiles(boolean includeAllFiles)
    
public  voidsetParent(MutableTreeNode parent)
     Sets the parent of the receiver to newParent.
public  voidsetRemoteStatus(FileStatus remoteStatus)
    
public  voidsetSelected(boolean selected)
    
public  voidsetUserObject(Object object)
     Resets the user object of the receiver to object.
public  StringtoString()
    

Field Detail
BINARY
final public static int BINARY(Code)



DIRECTORY
final public static int DIRECTORY(Code)



LINE_ENDINGS_UNCHECKED
final public static int LINE_ENDINGS_UNCHECKED(Code)



SORT_ON_DATE
final public static int SORT_ON_DATE(Code)



SORT_ON_FLAGS
final public static int SORT_ON_FLAGS(Code)



SORT_ON_KEYWORD_SUBST
final public static int SORT_ON_KEYWORD_SUBST(Code)



SORT_ON_LOCAL_STATUS
final public static int SORT_ON_LOCAL_STATUS(Code)



SORT_ON_NAME
final public static int SORT_ON_NAME(Code)



SORT_ON_REMOTE_STATUS
final public static int SORT_ON_REMOTE_STATUS(Code)



SORT_ON_REVISION
final public static int SORT_ON_REVISION(Code)



SORT_ON_SIZE
final public static int SORT_ON_SIZE(Code)



SORT_ON_STATUS
final public static int SORT_ON_STATUS(Code)



SORT_ON_TAG
final public static int SORT_ON_TAG(Code)



SORT_ON_TYPE
final public static int SORT_ON_TYPE(Code)



UNIX_LINE_ENDINGS
final public static int UNIX_LINE_ENDINGS(Code)



UNKNOWN_LINE_ENDINGS
final public static int UNKNOWN_LINE_ENDINGS(Code)



WINDOWS_LINE_ENDINGS
final public static int WINDOWS_LINE_ENDINGS(Code)




Constructor Detail
CVSFileNode
public CVSFileNode(GruntspudContext context, SortCriteria sortCriteria, Entry entry, File file, CVSFileNode parent)(Code)
Constructor for the CVSFileNode object
Parameters:
  host - application hosting gruntspud
Parameters:
  filter - file filter
Parameters:
  entry - the CVS entry (if any) associated with this node
Parameters:
  file - t




Method Detail
addChild
public void addChild(CVSFileNode node)(Code)
Add a new child node



children
public Enumeration children()(Code)
Return an enumeration of all the children in this node (if any). enumeration of children



compare
public static int compare(CVSFileNode t, CVSFileNode n, SortCriteria sortCriteria)(Code)



compareTo
public int compareTo(Object o)(Code)
DOCUMENT ME!
Parameters:
  o - DOCUMENT ME! DOCUMENT ME!



filterAndSortChildren
public synchronized void filterAndSortChildren()(Code)



getAllowsChildren
public boolean getAllowsChildren()(Code)
Does this node allow children (i.e. is it a directory) The allowsChildren value



getBaseIcon
public Icon getBaseIcon(boolean expanded)(Code)



getCVSRoot
public CVSRoot getCVSRoot()(Code)
Gets the cVSRoot attribute of the CVSFileNode object The cVSRoot value



getCVSSubstType
public CVSSubstType getCVSSubstType()(Code)
Gets the cVSFileType attribute of the CVSFileNode object The cVSFileType value



getCanonicalPath
public String getCanonicalPath()(Code)



getChildAt
public TreeNode getChildAt(int i)(Code)
Gets the childAt attribute of the CVSFileNode object
Parameters:
  i - Description of the Parameter The childAt value



getChildCount
public int getChildCount()(Code)
Gets the childCount attribute of the CVSFileNode object The childCount value



getDirectoryStatus
public DirectoryStatus getDirectoryStatus()(Code)



getEntry
public Entry getEntry()(Code)
Gets the entry attribute of the CVSFileNode object The entry value



getEntry
public Entry getEntry(String name) throws IOException(Code)
Gets the entry attribute of the CVSFileNode object
Parameters:
  name - Description of the Parameter The entry value
exception:
  IOException - Description of the Exception



getFile
public File getFile()(Code)
Gets the file attribute of the CVSFileNode object The file value



getFileTypeText
public String getFileTypeText()(Code)
Return the file type



getFlags
public String getFlags()(Code)
Return the revision text (may be blank) revision text



getForeground
public Color getForeground()(Code)
Gets the foreground attribute of the CVSFileNode object The foreground value



getFormattedText
public String getFormattedText(String format)(Code)
Gets the name attribute of the CVSFileNode object The name value



getIcon
public Icon getIcon(boolean expanded)(Code)
Gets the icon attribute of the CVSFileNode object
Parameters:
  expanded - Description of the Parameter The icon value



getIconForStatus
public Icon getIconForStatus(FileStatus status, Icon base)(Code)



getIgnoreFilter
public IgnoreFileFilter getIgnoreFilter()(Code)
Gets the ignoreFilter attribute of the CVSFileNode object The ignoreFilter value



getIndex
public int getIndex(TreeNode node)(Code)
Give the index in the list of children for this for a specified node
Parameters:
  node - the node to find index of node in child list



getLineEndings
public int getLineEndings()(Code)



getLocalStatus
public FileStatus getLocalStatus()(Code)
Return the file status for this node



getLocalStatusText
public String getLocalStatusText()(Code)
Return the tag (may be blank)



getLongRevision
public static long getLongRevision(String revision)(Code)
DOCUMENT ME!
Parameters:
  revision - DOCUMENT ME! DOCUMENT ME!



getName
public String getName()(Code)
Gets the name attribute of the CVSFileNode object The name value



getOverallStatus
public FileStatus getOverallStatus()(Code)
Return the overall status for this node. Remote status takes precedence



getOverallStatusText
public String getOverallStatusText()(Code)
Return the tag (may be blank)



getParent
public TreeNode getParent()(Code)
Gets the parent attribute of the CVSFileNode object The parent value



getProject
public Project getProject()(Code)



getRemoteStatus
public FileStatus getRemoteStatus()(Code)
Gets the remote status remote status



getRemoteStatusText
public String getRemoteStatusText()(Code)
Return the tag (may be blank)



getRevision
public String getRevision()(Code)
Return the revision text (may be blank) revision text



getStyle
public TextStyle getStyle()(Code)



getTag
public String getTag()(Code)
Return the tag (may be blank)



getUnfilteredChildAt
public TreeNode getUnfilteredChildAt(int i)(Code)
Gets the childAt attribute of the CVSFileNode object
Parameters:
  i - Description of the Parameter The childAt value



getUnfilteredChildCount
public int getUnfilteredChildCount()(Code)



insert
public void insert(MutableTreeNode child, int index)(Code)
Adds child to the receiver at index. child will be messaged with setParent.
Parameters:
  child - Description of the Parameter
Parameters:
  index - Description of the Parameter



isBinary
public boolean isBinary()(Code)
Gets the binary attribute of the CVSFileNode object The binary value



isChildListLoaded
public boolean isChildListLoaded()(Code)
Gets the childListLoaded attribute of the CVSFileNode object The childListLoaded value



isCopy
public boolean isCopy()(Code)
Return if this node is a copy copy



isIgnored
public boolean isIgnored()(Code)
Gets the ignored attribute of the CVSFileNode object The ignored value



isLeaf
public boolean isLeaf()(Code)
Gets the leaf attribute of the CVSFileNode object The leaf value



isModuleRoot
public boolean isModuleRoot()(Code)
Gets the moduleRoot attribute of the CVSFileNode object The moduleRoot value



isNeedsAttention
public boolean isNeedsAttention()(Code)



isOpen
public boolean isOpen()(Code)



isProjectRoot
public boolean isProjectRoot()(Code)
Gets the moduleRoot attribute of the CVSFileNode object The moduleRoot value



isSelected
public boolean isSelected()(Code)
Gets the selected attribute of the CVSFileNode object The selected value



isText
public boolean isText()(Code)
Gets the text attribute of the CVSFileNode object The text value



isUnicode
public boolean isUnicode()(Code)
Gets the unicode attribute of the CVSFileNode object The unicode value



loadChildren
public synchronized void loadChildren()(Code)
Description of the Method



loadIgnoreFilter
public void loadIgnoreFilter()(Code)
Description of the Method



recurseNodes
public void recurseNodes(Vector v, boolean includeDir, boolean singleCopy)(Code)
DOCUMENT ME!
Parameters:
  v - DOCUMENT ME!
Parameters:
  includeDir - DOCUMENT ME!
Parameters:
  singleCopy - DOCUMENT ME!



remove
public void remove(int index)(Code)
Removes the child at index from the receiver.
Parameters:
  index - Description of the Parameter



remove
public void remove(MutableTreeNode node)(Code)
Removes node from the receiver. setParent will be messaged on node.
Parameters:
  node - Description of the Parameter



removeFromParent
public void removeFromParent()(Code)
Removes the receiver from its parent.



reset
public synchronized void reset()(Code)
Description of the Method



setCVSSubstType
public void setCVSSubstType(CVSSubstType cvsFileType)(Code)
Sets the cVSFileType attribute of the CVSFileNode object
Parameters:
  cvsFileType - The new cVSFileType value



setIncludeAllFiles
public void setIncludeAllFiles(boolean includeAllFiles)(Code)
DOCUMENT ME!
Parameters:
  includeAllFiles - DOCUMENT ME!



setParent
public void setParent(MutableTreeNode parent)(Code)
Sets the parent of the receiver to newParent.
Parameters:
  parent - The new parent value



setRemoteStatus
public void setRemoteStatus(FileStatus remoteStatus)(Code)
Sets the remote status remoteStatus remote status



setSelected
public void setSelected(boolean selected)(Code)
Sets the selected attribute of the CVSFileNode object
Parameters:
  selected - The new selected value



setUserObject
public void setUserObject(Object object)(Code)
Resets the user object of the receiver to object.
Parameters:
  object - The new userObject value



toString
public String toString()(Code)
DOCUMENT ME! DOCUMENT ME!



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.