public interface IDataExporter extends org.apache.wicket.util.io.IClusterable
IDataProvider as described by IExportableColumns. This interface is used by
ExportToolbar to provide the export functionality.ExportToolbar,
IExportableColumn| Modifier and Type | Method and Description |
|---|---|
<T> void |
exportData(IDataProvider<T> dataProvider,
List<IExportableColumn<T,?>> columns,
OutputStream outputStream)
Exports the data provided by the
IDataProvider to the OutputStream. |
String |
getContentType()
Returns the MIME content type of the export data type.
|
IModel<String> |
getDataFormatNameModel()
Returns a model of the exported data format name.
|
String |
getFileNameExtension()
Returns the file name extensions for the exported data, without the ".".
|
IModel<String> getDataFormatNameModel()
ExportToolbar.String getContentType()
String getFileNameExtension()
<T> void exportData(IDataProvider<T> dataProvider, List<IExportableColumn<T,?>> columns, OutputStream outputStream) throws IOException
IDataProvider to the OutputStream.T - The type of each row of data provided by the IDataProvider.dataProvider - The IDataProvider from which to retrieve the data.columns - The IExportableColumn to use to describe the data.outputStream - The OutputStream to which to write the exported data.IOException - If an error occurs.Copyright © 2006–2015 Apache Software Foundation. All rights reserved.