Package jadex.base.gui.filetree
Class RIDNode
- java.lang.Object
- 
- jadex.base.gui.asynctree.AbstractTreeNode
- 
- jadex.base.gui.asynctree.AbstractSwingTreeNode
- 
- jadex.base.gui.filetree.RIDNode
 
 
 
- 
- All Implemented Interfaces:
- ISwingTreeNode,- ITreeNode,- IFileNode
 
 public class RIDNode extends AbstractSwingTreeNode implements IFileNode Node for rid based jar or local artifact directory. todo: move to modeltree?!
- 
- 
Field SummaryFields Modifier and Type Field Description protected INodeFactoryfactoryThe factory.protected java.io.FilefileThe file.protected IIconCacheiconcacheThe icon cache.protected IResourceIdentifierridThe resource identifier.- 
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 RIDNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IResourceIdentifier rid, IIconCache iconcache, INodeFactory factory)Create a new service container node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()Get the file name.java.lang.StringgetFilePath()Get the file path.longgetFileSize()Get the file size.byte[]getIcon()Get the icon as byte[] for a node.java.lang.ObjectgetId()Get the id used for lookup.IResourceIdentifiergetResourceIdentifier()Get the rid.javax.swing.IcongetSwingIcon()Get the icon for a node.java.lang.StringgetTooltipText()Get tooltip text.booleanisDirectory()Check if the file is a directory.booleanisJar()Test if jar.protected IFuturelistFiles()Get a file filter according to current file type settings.protected voidsearchChildren()Asynchronously search for children.voidsetFile(java.io.File file)Set the file.java.lang.StringtoString()Get the string representation.- 
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodeaddChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getPropertiesComponent, getTree, isLeaf, refresh, removeChild, setChildren
 - 
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNodecheckChildren, dispose, hashCode, hasProperties, 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, getPropertiesComponent
 - 
Methods inherited from interface jadex.base.gui.asynctree.ITreeNodedispose, getCachedChildren, getChildCount, getIndexOfChild, hasProperties, isLeaf, refresh
 
- 
 
- 
- 
- 
Field Detail- 
fileprotected java.io.File file The file.
 - 
iconcacheprotected final IIconCache iconcache The icon cache.
 - 
ridprotected IResourceIdentifier rid The resource identifier.
 - 
factoryprotected INodeFactory factory The factory.
 
- 
 - 
Constructor Detail- 
RIDNodepublic RIDNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IResourceIdentifier rid, IIconCache iconcache, INodeFactory factory) Create a new service container node.
 
- 
 - 
Method Detail- 
setFilepublic void setFile(java.io.File file) Set the file.
 - 
getResourceIdentifierpublic IResourceIdentifier getResourceIdentifier() Get the rid.- Returns:
- The rid.
 
 - 
getFileNamepublic java.lang.String getFileName() Get the file name.- Specified by:
- getFileNamein interface- IFileNode
 
 - 
getFilePathpublic java.lang.String getFilePath() Get the file path.- Specified by:
- getFilePathin interface- IFileNode
 
 - 
isDirectorypublic boolean isDirectory() Check if the file is a directory.- Specified by:
- isDirectoryin interface- IFileNode
 
 - 
getIdpublic java.lang.Object getId() Get the id used for lookup.
 - 
getTooltipTextpublic java.lang.String getTooltipText() Get tooltip text.- Specified by:
- getTooltipTextin interface- ITreeNode
- Specified by:
- getTooltipTextin class- AbstractTreeNode
 
 - 
getIconpublic byte[] getIcon() Get the icon as byte[] for a node.- Specified by:
- getIconin interface- ITreeNode
- Specified by:
- getIconin class- AbstractTreeNode
 
 - 
getSwingIconpublic javax.swing.Icon getSwingIcon() Get the icon for a node.- Specified by:
- getSwingIconin interface- ISwingTreeNode
- Specified by:
- getSwingIconin class- AbstractSwingTreeNode
 
 - 
isJarpublic boolean isJar() Test if jar.
 - 
searchChildrenprotected void searchChildren() Asynchronously search for children. Should call setChildren() once children are found.- Specified by:
- searchChildrenin class- AbstractTreeNode
 
 - 
listFilesprotected IFuture listFiles() Get a file filter according to current file type settings.
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
getFileSizepublic long getFileSize() Get the file size.- Specified by:
- getFileSizein interface- IFileNode
 
 
- 
 
-