use of com.haulmont.cuba.gui.export.ExportFormat in project cuba by cuba-platform.
the class DesktopExportDisplay method show.
/**
* Show/Download resource at client side
*
* @param dataProvider {@link ExportDataProvider}
* @param resourceName ResourceName for client side
* @see com.haulmont.cuba.gui.export.FileDataProvider
* @see com.haulmont.cuba.gui.export.ByteArrayDataProvider
*/
@Override
public void show(ExportDataProvider dataProvider, String resourceName) {
String extension = getFileExt(resourceName);
ExportFormat format = ExportFormat.getByExtension(extension);
show(dataProvider, resourceName, format);
}
use of com.haulmont.cuba.gui.export.ExportFormat in project cuba by cuba-platform.
the class DesktopExportDisplay method show.
@Override
public void show(FileDescriptor fileDescriptor) {
ExportFormat format = ExportFormat.getByExtension(fileDescriptor.getExtension());
show(fileDescriptor, format);
}
Aggregations