public abstract class AbstractFileExport<T> extends Object implements FileExport<T>
Modifier | Constructor and Description |
---|---|
|
AbstractFileExport() |
protected |
AbstractFileExport(BiConsumer<org.jboss.errai.common.client.dom.Blob,String> saveAs) |
Modifier and Type | Method and Description |
---|---|
void |
export(T entity,
String fileName)
Export the
content
into a file with the name given by fileName |
protected abstract Optional<org.jboss.errai.common.client.dom.Blob> |
getContent(T entity) |
public AbstractFileExport()
protected AbstractFileExport(BiConsumer<org.jboss.errai.common.client.dom.Blob,String> saveAs)
public void export(T entity, String fileName)
FileExport
content
into a file with the name given by fileName
export
in interface FileExport<T>
entity
- The data to be exportedfileName
- The resulting file name.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.