Package jadex.tools.filetransfer
Class FileTransferServiceViewerPanel
- java.lang.Object
-
- jadex.tools.filetransfer.FileTransferServiceViewerPanel
-
- All Implemented Interfaces:
IAbstractViewerPanel
,IPropertiesProvider
public class FileTransferServiceViewerPanel extends java.lang.Object implements IAbstractViewerPanel
The deployment service viewer panel displays the file tree in a scroll panel.
-
-
Field Summary
Fields Modifier and Type Field Description protected FileTreePanel
ftp
The file tree panel.protected IControlCenter
jcc
The jcc.protected javax.swing.JPanel
panel
The outer panel.protected IFileTransferService
service
The service.-
Fields inherited from interface jadex.base.gui.componentviewer.IAbstractViewerPanel
PROPERTY_VIEWERCLASS
-
-
Constructor Summary
Constructors Constructor Description FileTransferServiceViewerPanel(IExternalAccess exta, IControlCenter jcc, boolean remote, IFileTransferService service, ISwingNodeHandler nodehandler, java.lang.String title)
Create a new viewer panel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
copy(FileTransferServiceViewerPanel pan1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)
static void
copy(java.lang.String sel1, IExternalAccess exta1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)
javax.swing.JComponent
getComponent()
Get the component.IFileTransferService
getDeploymentService()
Get the service.FileTreePanel
getFileTreePanel()
Get the tree panel.java.lang.String
getId()
Get the panel id.IFuture<Properties>
getProperties()
Get the properties.java.lang.String
getSelectedPath()
Get the selected path.static boolean
isRealDirectory(IFileNode fn)
Helper method that returns zips and jar not as directories.IFuture<java.lang.Void>
setProperties(Properties props)
Set the propertiesIFuture<java.lang.Void>
shutdown()
Shutdown the panel.
-
-
-
Field Detail
-
panel
protected javax.swing.JPanel panel
The outer panel.
-
ftp
protected FileTreePanel ftp
The file tree panel.
-
service
protected IFileTransferService service
The service.
-
jcc
protected IControlCenter jcc
The jcc.
-
-
Constructor Detail
-
FileTransferServiceViewerPanel
public FileTransferServiceViewerPanel(IExternalAccess exta, IControlCenter jcc, boolean remote, IFileTransferService service, ISwingNodeHandler nodehandler, java.lang.String title)
Create a new viewer panel.
-
-
Method Detail
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties props)
Set the properties- Specified by:
setProperties
in interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Get the properties.- Specified by:
getProperties
in interfaceIPropertiesProvider
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the panel.- Specified by:
shutdown
in interfaceIAbstractViewerPanel
-
getId
public java.lang.String getId()
Get the panel id.- Specified by:
getId
in interfaceIAbstractViewerPanel
-
getComponent
public javax.swing.JComponent getComponent()
Get the component.- Specified by:
getComponent
in interfaceIAbstractViewerPanel
- Returns:
- The component to be displayed.
-
getSelectedPath
public java.lang.String getSelectedPath()
Get the selected path.- Returns:
- The selected path as string.
-
getDeploymentService
public IFileTransferService getDeploymentService()
Get the service.- Returns:
- the service.
-
getFileTreePanel
public FileTreePanel getFileTreePanel()
Get the tree panel.- Returns:
- The panel.
-
copy
public static void copy(FileTransferServiceViewerPanel pan1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)
-
copy
public static void copy(java.lang.String sel1, IExternalAccess exta1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)
-
isRealDirectory
public static boolean isRealDirectory(IFileNode fn)
Helper method that returns zips and jar not as directories. How to get rid of that. file.isDirectory(zip) gives true :-(
-
-