public class AdminUtilServerToClientFileTransfer extends VirtualComponentAdapter implements AdminFileTransferListener
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Constructor and Description |
---|
AdminUtilServerToClientFileTransfer(ClientSessionManager csm,
VirtualPanel vp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onAction(VirtualPanel vp,
String controlID)
Push buttons and menu items generates this event when selected.
|
void |
onDirectoryList(VirtualPanel vp,
AdminFileTransferInterface ft,
AdminConfigFileTransferItem[] files)
Returns the list of all files or directories in the requested directory.
|
void |
onFileDownload(VirtualPanel vp,
AdminFileTransferInterface ft,
long totalSize,
byte[] data)
A piece of the download data of a file (data is null when canceled).
|
void |
onFileSelected(VirtualPanel vp,
AdminFileTransferInterface ft,
String fileName,
long size)
A file has been selected in the dialog box (or canceled if file name is null).
|
void |
onFileTransferError(VirtualPanel vp,
AdminFileTransferInterface ft,
String errorMessage)
Called whenever a file transfer error occurs.
|
void |
onFileUpload(VirtualPanel vp,
AdminFileTransferInterface ft)
The client is requesting a file for download
|
void |
onFileUploadComplete(VirtualPanel vp,
AdminFileTransferInterface ft)
Method call when download is completed
|
boolean |
onPanelClosing(VirtualPanel vp)
Called when the close button of a panel is pressed,
but before any other processing has been done.
|
void |
onPanelDestroy(VirtualPanel vp)
Called to inform the listener that the panel is destroyed.
|
void |
onTargetFileSelected(VirtualPanel vp,
AdminFileTransferInterface ft,
String directory)
A file has been chosen on the client
|
onAction, onAction, onCheckedChange, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onPropertyChange, onSelectionChanged
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelCreate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelCreate
public AdminUtilServerToClientFileTransfer(ClientSessionManager csm, VirtualPanel vp)
public void onFileUploadComplete(VirtualPanel vp, AdminFileTransferInterface ft)
onFileUploadComplete
in interface AdminFileTransferListener
public void onFileTransferError(VirtualPanel vp, AdminFileTransferInterface ft, String errorMessage)
onFileTransferError
in interface AdminFileTransferListener
public void onFileSelected(VirtualPanel vp, AdminFileTransferInterface ft, String fileName, long size)
onFileSelected
in interface AdminFileTransferListener
public void onDirectoryList(VirtualPanel vp, AdminFileTransferInterface ft, AdminConfigFileTransferItem[] files)
onDirectoryList
in interface AdminFileTransferListener
public void onFileDownload(VirtualPanel vp, AdminFileTransferInterface ft, long totalSize, byte[] data)
onFileDownload
in interface AdminFileTransferListener
public void onFileUpload(VirtualPanel vp, AdminFileTransferInterface ft)
onFileUpload
in interface AdminFileTransferListener
public void onTargetFileSelected(VirtualPanel vp, AdminFileTransferInterface ft, String directory)
onTargetFileSelected
in interface AdminFileTransferListener
public void onAction(VirtualPanel vp, String controlID)
onAction
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public boolean onPanelClosing(VirtualPanel vp)
onPanelClose
is called.onPanelClosing
in interface VirtualPanelListener
onPanelClosing
in class VirtualPanelAdapter
vp
- The panel issuing the event.VirtualPanelListener.onPanelClose(se.entra.phantom.server.VirtualPanel)
public void onPanelDestroy(VirtualPanel vp)
Closes any currently opened file transfer.
onPanelDestroy
in interface VirtualPanelListener
onPanelDestroy
in class VirtualPanelAdapter
vp
- The panel issuing the event.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.