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 SummaryFields 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.IAbstractViewerPanelPROPERTY_VIEWERCLASS
 
- 
 - 
Constructor SummaryConstructors Constructor Description FileTransferServiceViewerPanel(IExternalAccess exta, IControlCenter jcc, boolean remote, IFileTransferService service, ISwingNodeHandler nodehandler, java.lang.String title)Create a new viewer panel.
 - 
Method SummaryAll 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- 
panelprotected javax.swing.JPanel panel The outer panel.
 - 
ftpprotected FileTreePanel ftp The file tree panel.
 - 
serviceprotected IFileTransferService service The service.
 - 
jccprotected IControlCenter jcc The jcc.
 
- 
 - 
Constructor Detail- 
FileTransferServiceViewerPanelpublic FileTransferServiceViewerPanel(IExternalAccess exta, IControlCenter jcc, boolean remote, IFileTransferService service, ISwingNodeHandler nodehandler, java.lang.String title) Create a new viewer panel.
 
- 
 - 
Method Detail- 
setPropertiespublic IFuture<java.lang.Void> setProperties(Properties props) Set the properties- Specified by:
- setPropertiesin interface- IPropertiesProvider
 
 - 
getPropertiespublic IFuture<Properties> getProperties() Get the properties.- Specified by:
- getPropertiesin interface- IPropertiesProvider
 
 - 
shutdownpublic IFuture<java.lang.Void> shutdown() Shutdown the panel.- Specified by:
- shutdownin interface- IAbstractViewerPanel
 
 - 
getIdpublic java.lang.String getId() Get the panel id.- Specified by:
- getIdin interface- IAbstractViewerPanel
 
 - 
getComponentpublic javax.swing.JComponent getComponent() Get the component.- Specified by:
- getComponentin interface- IAbstractViewerPanel
- Returns:
- The component to be displayed.
 
 - 
getSelectedPathpublic java.lang.String getSelectedPath() Get the selected path.- Returns:
- The selected path as string.
 
 - 
getDeploymentServicepublic IFileTransferService getDeploymentService() Get the service.- Returns:
- the service.
 
 - 
getFileTreePanelpublic FileTreePanel getFileTreePanel() Get the tree panel.- Returns:
- The panel.
 
 - 
copypublic static void copy(FileTransferServiceViewerPanel pan1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc) 
 - 
copypublic static void copy(java.lang.String sel1, IExternalAccess exta1, FileTransferServiceViewerPanel pan2, javax.swing.tree.TreePath sp2, IControlCenter jcc)
 - 
isRealDirectorypublic 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 :-(
 
- 
 
-