|
|||||||||
| 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.VFSFile
public class VFSFile
Models a file accessed using jEdit's VFS.
| Field Summary |
|---|
| 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 | |
|---|---|
VFSFile(java.lang.String path)
|
|
| Method Summary | |
|---|---|
boolean |
canOpen()
File nodes can be opened, so return true. |
boolean |
canWrite()
Returns true. |
void |
close()
"Closes" the jEdit buffer that contains the file. |
int |
compareToNode(VPTNode node)
Compares a VFSFile node to another VPTNode. |
boolean |
delete()
Deletes the file from disk. |
java.awt.Color |
getForegroundColor(boolean sel)
Returns the node's foreground color. |
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. |
boolean |
isOpened()
Returns "true" if the node is a file and is currently opened in jEdit. |
void |
open()
Opens a new buffer in jEdit with the file pointed by this node. |
java.lang.String |
toString()
Returns a string representation of the current node. |
| Methods inherited from class projectviewer.vpt.VPTNode |
|---|
compareName, compareTo, findIndexForChild, findProjectFor, getBackgroundColor, getChildWithName, getClipType, getName, isDirectory, isFile, isGroup, isProject, isRoot, persistChildren, setName, setParent, sortChildren, sortChildren |
| 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, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VFSFile(java.lang.String path)
| Method Detail |
|---|
public boolean canWrite()
canWrite in class VPTNodepublic boolean delete()
delete in class VPTNodepublic boolean isOpened()
isOpened in class VPTNodepublic javax.swing.Icon getIcon(boolean expanded)
getIcon in class VPTNodeexpanded - If the node is currently expanded or not.public java.awt.Color getForegroundColor(boolean sel)
getForegroundColor in class VPTNodesel - If the node is currently selected.public java.lang.String toString()
toString in class VPTNodepublic boolean canOpen()
canOpen in class VPTNodepublic void open()
open in class VPTNodepublic void close()
close in class VPTNodepublic java.lang.String getNodePath()
getNodePath in class VPTNodepublic int compareToNode(VPTNode node)
compareToNode in class VPTNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||