01: package org.dbbrowser.ui.helper.exporthelper;
02:
03: import java.io.File;
04:
05: import javax.swing.event.ChangeListener;
06: import javax.swing.table.AbstractTableModel;
07:
08: public interface ExportHelper {
09: /**
10: * Export the data in the table to the specified file as a PDF file
11: * @param abstractTableModel
12: * @param changeListener
13: * @param fileToExportTo
14: * @throws ExportHelperException
15: */
16: public void export(AbstractTableModel abstractTableModel,
17: ChangeListener changeListener, File fileToExportTo)
18: throws ExportHelperException;
19:
20: /**
21: * Call this to stop the export. This is required as it may be a long process and it runs in a seperate thread
22: */
23: public void stop();
24: }
|