public class VPTDirectory extends VPTNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
url |
name, treeNoSelectionBackground, treeNoSelectionForeground, treeSelectionBackground, treeSelectionForeground
Constructor and Description |
---|
VPTDirectory(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
public java.lang.String getURL()
public void setURL(java.lang.String url)
public java.lang.String getFileName()
public boolean canWrite()
public boolean canRename()
public boolean delete()
public javax.swing.Icon getIcon(boolean expanded)
public java.lang.String toString()
public boolean isDirectory()
VPTNode
isDirectory
in class VPTNode
public java.lang.String getNodePath()
getNodePath
in class VPTNode