public class RemoteFileNode extends AbstractSwingTreeNode implements IFileNode
| Modifier and Type | Field and Description |
|---|---|
protected jadex.bridge.IExternalAccess |
exta
The external access.
|
protected jadex.bridge.service.types.filetransfer.FileData |
file
The file.
|
protected IIconCache |
iconcache
The icon cache.
|
tree| Constructor and Description |
|---|
RemoteFileNode(ISwingTreeNode parent,
AsyncSwingTreeModel model,
javax.swing.JTree tree,
jadex.bridge.service.types.filetransfer.FileData file,
IIconCache iconcache,
jadex.bridge.IExternalAccess exta)
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.
|
javax.swing.JComponent |
getPropertiesComponent()
Get or create a component displaying the node properties.
|
jadex.bridge.service.types.filetransfer.FileData |
getRemoteFile()
Get the file.
|
javax.swing.Icon |
getSwingIcon()
Get the icon for a node.
|
java.lang.String |
getTooltipText()
Get tooltip text.
|
boolean |
hasProperties()
True, if the node has properties that can be displayed.
|
boolean |
isDirectory()
Check if the file is a directory.
|
void |
refresh(boolean recurse)
Refresh the node.
|
protected void |
searchChildren()
Asynchronously search for children.
|
java.lang.String |
toString()
Create a string representation.
|
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, isLeaf, removeChild, setChildrencheckChildren, dispose, hashCode, removeAllChildren, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChild, getChildren, getParentprotected jadex.bridge.service.types.filetransfer.FileData file
protected jadex.bridge.IExternalAccess exta
protected final IIconCache iconcache
public RemoteFileNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, jadex.bridge.service.types.filetransfer.FileData file, IIconCache iconcache, jadex.bridge.IExternalAccess exta)
public java.lang.Object getId()
getId in interface jadex.base.gui.asynctree.ITreeNodepublic javax.swing.Icon getSwingIcon()
getSwingIcon in interface ISwingTreeNodegetSwingIcon in class AbstractSwingTreeNodepublic byte[] getIcon()
getIcon in interface jadex.base.gui.asynctree.ITreeNodegetIcon in class jadex.base.gui.asynctree.AbstractTreeNodepublic void refresh(boolean recurse)
refresh in interface jadex.base.gui.asynctree.ITreeNoderefresh in class AbstractSwingTreeNoderecurse - Recursively refresh subnodes, if true.protected void searchChildren()
searchChildren in class jadex.base.gui.asynctree.AbstractTreeNodepublic java.lang.String getFileName()
getFileName in interface IFileNodepublic java.lang.String getFilePath()
getFilePath in interface IFileNodepublic boolean isDirectory()
isDirectory in interface IFileNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTooltipText()
getTooltipText in interface jadex.base.gui.asynctree.ITreeNodegetTooltipText in class jadex.base.gui.asynctree.AbstractTreeNodepublic boolean hasProperties()
hasProperties in interface jadex.base.gui.asynctree.ITreeNodehasProperties in class jadex.base.gui.asynctree.AbstractTreeNodepublic javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent in interface ISwingTreeNodegetPropertiesComponent in class AbstractSwingTreeNodepublic jadex.bridge.service.types.filetransfer.FileData getRemoteFile()
public long getFileSize()
getFileSize in interface IFileNode