|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode org.fife.rtext.plugins.project.tree.FileTreeNode
public class FileTreeNode
A tree node for regular files and directories.
Nested Class Summary | |
---|---|
static class |
FileTreeNode.FileNameChecker
Ensures that proposed file names are valid. |
Nested classes/interfaces inherited from interface org.fife.rtext.plugins.project.tree.PhysicalLocationTreeNode |
---|
PhysicalLocationTreeNode.NotYetPopulatedChild |
Field Summary |
---|
Fields inherited from class org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode |
---|
plugin |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
FileTreeNode(ProjectPlugin plugin,
java.io.File file)
|
Method Summary | |
---|---|
java.lang.String |
getDisplayName()
Returns the name to display for this node in the workspace tree. |
java.io.File |
getFile()
|
static java.lang.String |
getFilterString(java.lang.String[] filters)
Returns a string representation of the specified array of filters. |
static java.lang.String |
getFilterString(java.lang.String[] filters,
java.lang.String def)
Returns a string representation of the specified array of filters. |
javax.swing.Icon |
getIcon()
Returns the icon for this tree node. |
java.util.List<PopupContent> |
getPopupActions()
|
java.lang.String |
getToolTipText()
|
protected void |
handleDelete()
|
static boolean |
handleDeleteNative(java.io.File[] files,
ProjectPlugin plugin)
|
protected void |
handleProperties()
|
void |
handleRefresh()
Refreshes the children of this node. |
protected void |
handleRename()
|
boolean |
isNotPopulated()
Returns whether this folder tree node has not yet been populated (expanded). |
void |
refreshChildren()
Refreshes the child nodes of this node. |
void |
setFilterInfo(FolderFilterInfo info)
|
Methods inherited from class org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode |
---|
escapeForHtml, moveProjectEntityDown, moveProjectEntityUp, possiblyAddOpenInActions, toString |
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, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Constructor Detail |
---|
public FileTreeNode(ProjectPlugin plugin, java.io.File file)
Method Detail |
---|
public java.lang.String getDisplayName()
AbstractWorkspaceTreeNode
getDisplayName
in class AbstractWorkspaceTreeNode
public java.io.File getFile()
public static final java.lang.String getFilterString(java.lang.String[] filters)
filters
- The array of filters, may be null
.
public static final java.lang.String getFilterString(java.lang.String[] filters, java.lang.String def)
filters
- The array of filters, may be null
.def
- The value to display if the filter array is null
.
public java.util.List<PopupContent> getPopupActions()
getPopupActions
in class AbstractWorkspaceTreeNode
public javax.swing.Icon getIcon()
AbstractWorkspaceTreeNode
getIcon
in class AbstractWorkspaceTreeNode
public java.lang.String getToolTipText()
getToolTipText
in class AbstractWorkspaceTreeNode
protected void handleDelete()
handleDelete
in class AbstractWorkspaceTreeNode
public static final boolean handleDeleteNative(java.io.File[] files, ProjectPlugin plugin)
protected void handleProperties()
handleProperties
in class AbstractWorkspaceTreeNode
public void handleRefresh()
PhysicalLocationTreeNode
handleRefresh
in interface PhysicalLocationTreeNode
protected void handleRename()
handleRename
in class AbstractWorkspaceTreeNode
public boolean isNotPopulated()
PhysicalLocationTreeNode
isNotPopulated
in interface PhysicalLocationTreeNode
public void refreshChildren()
PhysicalLocationTreeNode
refreshChildren
in interface PhysicalLocationTreeNode
public void setFilterInfo(FolderFilterInfo info)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |