Interface ITableExporter
- All Superinterfaces:
IExporter
- All Known Implementing Classes:
ImageExporter
Interface for an exporter that can be used to export a NatTable. This type of
exporter gives the implementor full control on how the export should be done.
In comparison the
ILayerExporter is used to export a NatTable data
driven by iterating over the content.- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidexportTable(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.ProgressBar progressBar, OutputStream outputStream, ILayer layer, IConfigRegistry configRegistry) Export a givenILayerto the givenOutputStream.Methods inherited from interface org.eclipse.nebula.widgets.nattable.export.IExporter
getOutputStream, getResult
-
Method Details
-
exportTable
void exportTable(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.ProgressBar progressBar, OutputStream outputStream, ILayer layer, IConfigRegistry configRegistry) throws IOException Export a givenILayerto the givenOutputStream.- Parameters:
shell- The current activeShell.progressBar- TheProgressBarthat can be used to report the export progress to the user.outputStream- TheOutputStreamto write the export to. Typically previously retrieved by callingIExporter.getOutputStream(Shell).layer- TheILayerto export, typically a NatTable instance.configRegistry- TheIConfigRegistryused to retrieve configuration information on exporting.- Throws:
IOException- If an error occurs while exporting.
-