|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
projectviewer.vpt.VPTNode
projectviewer.vpt.VPTDirectory
public class VPTDirectory
Models a directory that is part of a project.
| Field Summary | |
|---|---|
protected java.lang.String |
url
|
| Fields inherited from class projectviewer.vpt.VPTNode |
|---|
name, treeNoSelectionBackground, treeNoSelectionForeground, treeSelectionBackground, treeSelectionForeground |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
VPTDirectory(java.lang.String url)
|
|
| Method Summary | |
|---|---|
boolean |
canRename()
Returns whether the VFS of the file allows renaming. |
boolean |
canWrite()
Returns is the underlying file is writable. |
int |
compareTo(VPTNode node)
Directories have precedende over openable nodes... |
boolean |
delete()
Deleting directories is not supported. |
java.lang.String |
getFileName()
Returns the real name of this directory. |
javax.swing.Icon |
getIcon(boolean expanded)
Returns the icon to be shown on the tree next to the node name. |
java.lang.String |
getNodePath()
Returns the path to the file represented by this node. |
java.lang.String |
getURL()
Returns the URL of this directory. |
boolean |
isDirectory()
Returns true if this node is a VPTDirectory. |
void |
setURL(java.lang.String url)
Changes this directory's URL. |
java.lang.String |
toString()
Returns a string representation of the current node. |
| Methods inherited from class projectviewer.vpt.VPTNode |
|---|
canOpen, changed, close, compareName, findIndexForChild, findProjectFor, getBackgroundColor, getChildWithName, getClipType, getForegroundColor, getGroup, getLock, getName, getVersionControlState, insert, isFile, isGroup, isOpened, isProject, isRoot, lock, open, persistChildren, remove, remove, removeAllChildren, removeFromParent, setName, setParent, setVersionControlState, sortChildren, sortChildren, unlock |
| 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, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, setAllowsChildren, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String url
| Constructor Detail |
|---|
public VPTDirectory(java.lang.String url)
| Method Detail |
|---|
public java.lang.String getURL()
public void setURL(java.lang.String url)
public java.lang.String getFileName()
public boolean canWrite()
canWrite in class VPTNodepublic boolean canRename()
canRename in class VPTNodepublic boolean delete()
delete in class VPTNodepublic javax.swing.Icon getIcon(boolean expanded)
getIcon in class VPTNodeexpanded - If the node is currently expanded or not.public java.lang.String toString()
toString in class VPTNodepublic boolean isDirectory()
VPTNode
isDirectory in class VPTNodepublic java.lang.String getNodePath()
getNodePath in class VPTNodepublic int compareTo(VPTNode node)
compareTo in interface java.lang.Comparable<VPTNode>compareTo in class VPTNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||