public abstract class AbstractDataExporter extends Object implements IDataExporter
IDataExporter.| Constructor and Description |
|---|
AbstractDataExporter(IModel<String> dataFormatNameModel,
String contentType,
String fileNameExtension)
Creates a new instance with the data format name model, content type and file name extensions provided.
|
| Modifier and Type | Method and Description |
|---|---|
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 ".".
|
AbstractDataExporter |
setContentType(String contentType)
Sets the MIME contentType for the data export format.
|
AbstractDataExporter |
setDataFormatNameModel(IModel<String> dataFormatNameModel)
Sets the data format name model.
|
AbstractDataExporter |
setFileNameExtension(String fileNameExtension)
Sets the file name extension to be used in the exported file name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportDatapublic AbstractDataExporter(IModel<String> dataFormatNameModel, String contentType, String fileNameExtension)
dataFormatNameModel - The model of the exported data format name.contentType - The MIME content type of the exported data type.fileNameExtension - The file name extensions to use in the file name for the exported data.public IModel<String> getDataFormatNameModel()
ExportToolbar.getDataFormatNameModel in interface IDataExporterpublic String getContentType()
getContentType in interface IDataExporterpublic String getFileNameExtension()
getFileNameExtension in interface IDataExporterpublic AbstractDataExporter setContentType(String contentType)
contentType - The MIME contentType for the data export format.this, for chaining.public AbstractDataExporter setDataFormatNameModel(IModel<String> dataFormatNameModel)
dataFormatNameModel - the data format name model.this, for chaining.public AbstractDataExporter setFileNameExtension(String fileNameExtension)
fileNameExtension - the file name extension to be used in the exported file name.this, for chaining.Copyright © 2006–2015 Apache Software Foundation. All rights reserved.