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 FileTreePanelftpThe file tree panel.protected IControlCenterjccThe jcc.protected javax.swing.JPanelpanelThe outer panel.protected IFileTransferServiceserviceThe 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 voidcopy(FileTransferServiceViewerPanel pan1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)static voidcopy(java.lang.String sel1, IExternalAccess exta1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)javax.swing.JComponentgetComponent()Get the component.IFileTransferServicegetDeploymentService()Get the service.FileTreePanelgetFileTreePanel()Get the tree panel.java.lang.StringgetId()Get the panel id.IFuture<Properties>getProperties()Get the properties.java.lang.StringgetSelectedPath()Get the selected path.static booleanisRealDirectory(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:
setPropertiesin interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Get the properties.- Specified by:
getPropertiesin interfaceIPropertiesProvider
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the panel.- Specified by:
shutdownin interfaceIAbstractViewerPanel
-
getId
public java.lang.String getId()
Get the panel id.- Specified by:
getIdin interfaceIAbstractViewerPanel
-
getComponent
public javax.swing.JComponent getComponent()
Get the component.- Specified by:
getComponentin 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 :-(
-
-