| |
|
| 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 | |
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) | | |
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 |
children | public Enumeration children()(Code) | | Return an enumeration of all the children in this node (if any).
enumeration of children |
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 |
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 |
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 |
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 |
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! |
|
|
|