public abstract class AbstractExportFileAction extends AbstractVersionTreeNodeAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
AbstractExportFileAction(VersionTree tree,
String name,
csbase.logic.FileInfo file)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
protected abstract void |
appletExport(csbase.logic.FileInfo source)
Exportação via applet.
|
protected void |
export(Object algoId,
String filePath,
String dialogTitle)
Carrega o arquivo atualmente selecionado em um navegador, permitindo sua
visualização e salvamento no disco rígido.
|
protected String |
getSourcePath(csbase.logic.FileInfo source)
Obtém o path de um arquivo de origem considerando o separador '/'
|
protected abstract tecgraf.ftc.common.logic.RemoteFileChannelInfo |
prepareDownload(csbase.logic.FileInfo source)
Exportação via aplicação.
|
getName, getTree, getWindowaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic AbstractExportFileAction(VersionTree tree, String name, csbase.logic.FileInfo file)
tree - Árvore que detêm o nó fonte da ação.name - Nome da ação.file - Arquivo a ser exportado.public void actionPerformed(ActionEvent e)
protected abstract void appletExport(csbase.logic.FileInfo source)
source - Arquivo a ser exportado.protected abstract tecgraf.ftc.common.logic.RemoteFileChannelInfo prepareDownload(csbase.logic.FileInfo source)
throws RemoteException
source - Arquivo a ser exportado.RemoteException - EM caso de falha na operação.protected void export(Object algoId, String filePath, String dialogTitle)
algoId - .filePath - .dialogTitle - .protected String getSourcePath(csbase.logic.FileInfo source)
source - arquivo a ser exportadoCopyright © 2019. All rights reserved.