org.grinvin.list.actions

Class ExportGraph

Implemented Interfaces:
ListSelectionListener

public class ExportGraph
extends FileSaveAction
implements ListSelectionListener

Exports a graph bundle.

Constructor Summary

ExportGraph(Window parent, GraphList list, ListSelectionModel selectionModel)

Method Summary

protected void
saveFile(File file)
protected boolean
showFileExistsDialog(File file)
Alert the user that a file with the chosen name already exists.
void
valueChanged(ListSelectionEvent e)
@Override
void actionPerformed(ActionEvent e)

Constructor Details

ExportGraph

public ExportGraph(Window parent,
                   GraphList list,
                   ListSelectionModel selectionModel)

Method Details

saveFile

protected void saveFile(File file)

showFileExistsDialog

protected boolean showFileExistsDialog(File file)
Alert the user that a file with the chosen name already exists.
Returns:
true if the user allows the file to be overwritten.

valueChanged

public void valueChanged(ListSelectionEvent e)

void actionPerformed

public @Override void actionPerformed(ActionEvent e)