Package org.primefaces.component.export
Class Exporter<T extends javax.faces.component.UIComponent>
- java.lang.Object
-
- org.primefaces.component.export.Exporter<T>
-
- Direct Known Subclasses:
TableExporter
public abstract class Exporter<T extends javax.faces.component.UIComponent> extends Object
-
-
Constructor Summary
Constructors Constructor Description Exporter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
export(javax.faces.context.FacesContext facesContext, List<T> component, OutputStream outputStream, ExportConfiguration exportConfiguration)
protected String
exportValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
abstract String
getContentType()
Content-type (MIME-type) excluding charset.ExportConfiguration
getExportConfiguration()
abstract String
getFileExtension()
File-extension of the exported file including a leading dot.void
setExportConfiguration(ExportConfiguration exportConfiguration)
-
-
-
Method Detail
-
export
public abstract void export(javax.faces.context.FacesContext facesContext, List<T> component, OutputStream outputStream, ExportConfiguration exportConfiguration) throws IOException
- Throws:
IOException
-
getContentType
public abstract String getContentType()
Content-type (MIME-type) excluding charset. (eg 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
-
getFileExtension
public abstract String getFileExtension()
File-extension of the exported file including a leading dot. (eg '.xlsx')
-
exportValue
protected String exportValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
-
getExportConfiguration
public ExportConfiguration getExportConfiguration()
-
setExportConfiguration
public void setExportConfiguration(ExportConfiguration exportConfiguration)
-
-