Interface IDataExporter

    • Method Detail

      • getDataFormatNameModel

        IModel<StringgetDataFormatNameModel()
        Returns a model of the exported data format name. This should be something like "CSV" or "Excel" etc. The value of the model returned is displayed as the export type in the ExportToolbar.
        Returns:
        a model of the exported data format name.
      • getContentType

        String getContentType()
        Returns the MIME content type of the export data type. This could be something like "text/csv". This is used to provide the correct content type when downloading the exported data.
        Returns:
        the MIME content type of the export data type.
      • getFileNameExtension

        String getFileNameExtension()
        Returns the file name extensions for the exported data, without the ".". For CSV, this should be "csv". For Excel exports, this should be "xls".
        Returns:
        the file name extensions for the exported data, without the ".".