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, tostringtree| 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, toStringaddChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, removeChild, setChildrencheckChildren, dispose, hashCode, removeAllChildren, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChild, getChildren, getParentprotected 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 FileNodeprotected jadex.commons.future.IFuture listFiles()
public void refresh(boolean recurse)
public boolean isLeaf()
public boolean isDirectory()
isDirectory in interface IFileNodeisDirectory in class FileNode