|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataExporter
Exports data provided by a IDataProvider as described by IExportableColumns. This interface is used by
ExportToolbar to provide the export functionality.
ExportToolbar,
IExportableColumn| Method Summary | ||
|---|---|---|
|
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 ".". |
|
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||