public abstract class ExportAction<G extends Graph> extends BaseAction
Modifier and Type | Field and Description |
---|---|
protected G |
graph |
changeSupport, enabled
ACCELERATOR_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 |
---|
ExportAction(G graph,
String name,
String tooltip,
ServiceGUI serviceGui) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent arg0) |
protected abstract void |
doExport(String filename)
Main export function: will be called after the target file was selected
|
StackDialogHandler |
getConfigPanel() |
protected abstract FileFormatDescription |
getFileFilter()
Get the file filter to be used for this export.
|
String |
getID() |
String |
getSelectedFile() |
void |
notifyFailure(Exception e) |
void |
notifySuccess() |
void |
notifyWarning(String message) |
void |
selectFile()
The action was launched, show a GUI if needed, select a file and if all went fine, call the backend
|
getIcon, getWeight, setWeight
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ExportAction(G graph, String name, String tooltip, ServiceGUI serviceGui)
graph
- name
- Entry to insert in the menutooltip
- Long description of the actionpublic String getID()
public void selectFile()
GsException
public String getSelectedFile()
public void notifySuccess()
public void notifyFailure(Exception e)
public void notifyWarning(String message)
public StackDialogHandler getConfigPanel()
public void actionPerformed(ActionEvent arg0)
protected abstract FileFormatDescription getFileFilter()
Copyright © 2005–2020. All rights reserved.