Package jadex.base.gui.filetree
Class DirNode
- java.lang.Object
- 
- jadex.base.gui.asynctree.AbstractTreeNode
- 
- jadex.base.gui.asynctree.AbstractSwingTreeNode
- 
- jadex.base.gui.filetree.FileNode
- 
- jadex.base.gui.filetree.DirNode
 
 
 
 
- 
- All Implemented Interfaces:
- ISwingTreeNode,- ITreeNode,- IFileNode
 - Direct Known Subclasses:
- JarNode
 
 public class DirNode extends FileNode Node object representing a service container.
- 
- 
Field SummaryFields Modifier and Type Field Description protected INodeFactoryfactoryThe factory.static java.util.ComparatorFILENODE_COMPARATORComparator for filenodes.- 
Fields inherited from class jadex.base.gui.filetree.FileNodedisplayname, file, iconcache, lastsiblings, relative, tostring
 - 
Fields inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodetree
 - 
Fields inherited from class jadex.base.gui.asynctree.AbstractTreeNodechildrenfuture, dirty, model, parent, recurse, searching
 
- 
 - 
Constructor SummaryConstructors Constructor Description DirNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, java.io.File file, IIconCache iconcache, INodeFactory factory)Create a new service container node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDirectory()Check if the file is a directory.booleanisLeaf()Check if the node is a leaf.protected IFuturelistFiles()Get a file filter according to current file type settings.voidrefresh(boolean recurse)Refresh the node.protected voidsearchChildren()Asynchronously search for children.- 
Methods inherited from class jadex.base.gui.filetree.FileNodeconvertPathToRelative, getDisplayName, getFile, getFileName, getFilePath, getFileSize, getIcon, getId, getPropertiesComponent, getRelativePath, getSwingIcon, getTooltipText, hasProperties, toString
 - 
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodeaddChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, removeChild, setChildren
 - 
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNodecheckChildren, dispose, hashCode, removeAllChildren, setParent
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.base.gui.asynctree.ISwingTreeNodegetChild, getChildren, getParent
 - 
Methods inherited from interface jadex.base.gui.asynctree.ITreeNodedispose, getCachedChildren, getChildCount, getIndexOfChild
 
- 
 
- 
- 
- 
Field Detail- 
factoryprotected INodeFactory factory The factory.
 - 
FILENODE_COMPARATORpublic static final java.util.Comparator FILENODE_COMPARATOR Comparator for filenodes.
 
- 
 - 
Constructor Detail- 
DirNodepublic DirNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, java.io.File file, IIconCache iconcache, INodeFactory factory) Create a new service container node.
 
- 
 - 
Method Detail- 
searchChildrenprotected void searchChildren() Asynchronously search for children. Should call setChildren() once children are found.- Overrides:
- searchChildrenin class- FileNode
 
 - 
listFilesprotected IFuture listFiles() Get a file filter according to current file type settings.
 - 
refreshpublic void refresh(boolean recurse) Refresh the node.
 - 
isLeafpublic boolean isLeaf() Check if the node is a leaf.
 - 
isDirectorypublic boolean isDirectory() Check if the file is a directory.- Specified by:
- isDirectoryin interface- IFileNode
- Overrides:
- isDirectoryin class- FileNode
 
 
- 
 
-