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, setChildren
checkChildren, dispose, hashCode, removeAllChildren, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, getChildren, getParent
protected 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.ITreeNode
public javax.swing.Icon getSwingIcon()
getSwingIcon
in interface ISwingTreeNode
getSwingIcon
in class AbstractSwingTreeNode
public byte[] getIcon()
getIcon
in interface jadex.base.gui.asynctree.ITreeNode
getIcon
in class jadex.base.gui.asynctree.AbstractTreeNode
public void refresh(boolean recurse)
refresh
in interface jadex.base.gui.asynctree.ITreeNode
refresh
in class AbstractSwingTreeNode
recurse
- Recursively refresh subnodes, if true.protected void searchChildren()
searchChildren
in class jadex.base.gui.asynctree.AbstractTreeNode
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.String toString()
toString
in class java.lang.Object
public java.lang.String getTooltipText()
getTooltipText
in interface jadex.base.gui.asynctree.ITreeNode
getTooltipText
in class jadex.base.gui.asynctree.AbstractTreeNode
public boolean hasProperties()
hasProperties
in interface jadex.base.gui.asynctree.ITreeNode
hasProperties
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent
in interface ISwingTreeNode
getPropertiesComponent
in class AbstractSwingTreeNode
public jadex.bridge.service.types.filetransfer.FileData getRemoteFile()
public long getFileSize()
getFileSize
in interface IFileNode