public abstract class DownloadExporter<T> extends HTMLExporter implements com.groiss.reporting.export.FileReportingExporter<T>
ROW_STYLE_HIDDEN
Constructor and Description |
---|
DownloadExporter() |
Modifier and Type | Method and Description |
---|---|
void |
download(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Implement this Mehthod to provide download.
|
java.lang.String |
getClientSideRenderer() |
protected Component |
getComponentData(Query q,
ReportingTableModel tm)
Do not overwrite this Method!
|
protected java.lang.Object |
getData(Query q,
ReportingTableModel tm)
Deprecated.
|
byte[] |
getDataBytes(T dataObject)
Deprecated.
since 9.0 use getDataStream
|
abstract T |
getDataObject(Query q,
ReportingTableModel tm)
returns the Object which is generated by this Exporter
calles by abstract Class DownloadExpoerter
|
java.io.InputStream |
getDataStream(Query q,
ReportingTableModel tm) |
protected javax.swing.table.TableModel |
getResultTableModel(Query q,
ReportingTableModel tm)
Returns a tablemodel that the
TableRenderer may handle. |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
toJson(Query q,
ReportingTableModel tm) |
addConfigOptions, export, getAttributeDropdownlist, getExportName, getExportOptionsJSON, getHeaderInfos, getId, getLineStyles, getPage, getResultDetailsJson, getToolbarActions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileTypeExtension
addConfigOptions, export, getExportName, getExportOptionsJSON
protected Component getComponentData(Query q, ReportingTableModel tm)
getComponentData
in class HTMLExporter
protected javax.swing.table.TableModel getResultTableModel(Query q, ReportingTableModel tm)
HTMLExporter
TableRenderer
may handle.
Overwrite this method if the exporter should display the results in html to ensure compatibility with toolbar actionsgetResultTableModel
in class HTMLExporter
q
- The query objecttm
- The Reporting results
return a Tablemodel implementation that the TableRenderer is able to transform to a TableContainer
.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> toJson(Query q, ReportingTableModel tm)
toJson
in interface com.groiss.reporting.export.ClientSideExporter
toJson
in class HTMLExporter
public java.lang.String getClientSideRenderer()
getClientSideRenderer
in interface com.groiss.reporting.export.ClientSideExporter
getClientSideRenderer
in class HTMLExporter
@Deprecated protected java.lang.Object getData(Query q, ReportingTableModel tm)
q
- tm
- public java.io.InputStream getDataStream(Query q, ReportingTableModel tm)
getDataStream
in interface com.groiss.reporting.export.FileReportingExporter<T>
public abstract T getDataObject(Query q, ReportingTableModel tm)
q
- the executed querytm
- the result teblemodel@Deprecated public byte[] getDataBytes(T dataObject) throws java.io.UnsupportedEncodingException
dataObject
- the result of getDataObjectjava.io.UnsupportedEncodingException
public void download(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
HttpSession
Paramters req
- the download requestres
- the resonse object@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.