public class DirNode extends FileNode
Modifier and Type | Field and Description |
---|---|
protected INodeFactory |
factory
The factory.
|
static java.util.Comparator |
FILENODE_COMPARATOR
Comparator for filenodes.
|
displayname, file, iconcache, lastsiblings, relative, tostring
tree
Constructor and Description |
---|
DirNode(ISwingTreeNode parent,
AsyncSwingTreeModel model,
javax.swing.JTree tree,
java.io.File file,
IIconCache iconcache,
INodeFactory factory)
Create a new service container node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDirectory()
Check if the file is a directory.
|
boolean |
isLeaf()
Check if the node is a leaf.
|
protected jadex.commons.future.IFuture |
listFiles()
Get a file filter according to current file type settings.
|
void |
refresh(boolean recurse)
Refresh the node.
|
protected void |
searchChildren()
Asynchronously search for children.
|
convertPathToRelative, getDisplayName, getFile, getFileName, getFilePath, getFileSize, getIcon, getId, getPropertiesComponent, getRelativePath, getSwingIcon, getTooltipText, hasProperties, toString
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, removeChild, setChildren
checkChildren, dispose, hashCode, removeAllChildren, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, getChildren, getParent
protected INodeFactory factory
public static final java.util.Comparator FILENODE_COMPARATOR
public DirNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, java.io.File file, IIconCache iconcache, INodeFactory factory)
protected void searchChildren()
searchChildren
in class FileNode
protected jadex.commons.future.IFuture listFiles()
public void refresh(boolean recurse)
public boolean isLeaf()
public boolean isDirectory()
isDirectory
in interface IFileNode
isDirectory
in class FileNode