public class RIDNode extends AbstractSwingTreeNode implements IFileNode
Modifier and Type | Field and Description |
---|---|
protected INodeFactory |
factory
The factory.
|
protected java.io.File |
file
The file.
|
protected IIconCache |
iconcache
The icon cache.
|
protected jadex.bridge.IResourceIdentifier |
rid
The resource identifier.
|
tree
Constructor and Description |
---|
RIDNode(ISwingTreeNode parent,
AsyncSwingTreeModel model,
javax.swing.JTree tree,
jadex.bridge.IResourceIdentifier rid,
IIconCache iconcache,
INodeFactory factory)
Create a new service container node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName()
Get the file name.
|
java.lang.String |
getFilePath()
Get the file path.
|
long |
getFileSize()
Get the file size.
|
byte[] |
getIcon()
Get the icon as byte[] for a node.
|
java.lang.Object |
getId()
Get the id used for lookup.
|
jadex.bridge.IResourceIdentifier |
getResourceIdentifier()
Get the rid.
|
javax.swing.Icon |
getSwingIcon()
Get the icon for a node.
|
java.lang.String |
getTooltipText()
Get tooltip text.
|
boolean |
isDirectory()
Check if the file is a directory.
|
boolean |
isJar()
Test if jar.
|
protected jadex.commons.future.IFuture |
listFiles()
Get a file filter according to current file type settings.
|
protected void |
searchChildren()
Asynchronously search for children.
|
void |
setFile(java.io.File file)
Set the file.
|
java.lang.String |
toString()
Get the string representation.
|
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getPropertiesComponent, getTree, isLeaf, refresh, removeChild, setChildren
checkChildren, dispose, hashCode, hasProperties, removeAllChildren, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, getChildren, getParent, getPropertiesComponent
protected java.io.File file
protected final IIconCache iconcache
protected jadex.bridge.IResourceIdentifier rid
protected INodeFactory factory
public RIDNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, jadex.bridge.IResourceIdentifier rid, IIconCache iconcache, INodeFactory factory)
public void setFile(java.io.File file)
public jadex.bridge.IResourceIdentifier getResourceIdentifier()
public java.lang.String getFileName()
getFileName
in interface IFileNode
public java.lang.String getFilePath()
getFilePath
in interface IFileNode
public boolean isDirectory()
isDirectory
in interface IFileNode
public java.lang.Object getId()
getId
in interface jadex.base.gui.asynctree.ITreeNode
public java.lang.String getTooltipText()
getTooltipText
in interface jadex.base.gui.asynctree.ITreeNode
getTooltipText
in class jadex.base.gui.asynctree.AbstractTreeNode
public byte[] getIcon()
getIcon
in interface jadex.base.gui.asynctree.ITreeNode
getIcon
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.Icon getSwingIcon()
getSwingIcon
in interface ISwingTreeNode
getSwingIcon
in class AbstractSwingTreeNode
public boolean isJar()
protected void searchChildren()
searchChildren
in class jadex.base.gui.asynctree.AbstractTreeNode
protected jadex.commons.future.IFuture listFiles()
public java.lang.String toString()
toString
in class java.lang.Object
public long getFileSize()
getFileSize
in interface IFileNode