Search in sources :

Example 1 with ExportFormat

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);
}
Also used : ExportFormat(com.haulmont.cuba.gui.export.ExportFormat)

Example 2 with ExportFormat

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);
}
Also used : ExportFormat(com.haulmont.cuba.gui.export.ExportFormat)

Aggregations

ExportFormat (com.haulmont.cuba.gui.export.ExportFormat)2