public class HTMLExporter extends java.lang.Object implements ReportingExporter, com.groiss.reporting.export.ClientSideExporter
ROW_STYLE_HIDDEN
Constructor and Description |
---|
HTMLExporter() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigOptions(Query q,
XHTMLPage p)
Deprecated.
|
void |
export(javax.servlet.http.HttpServletResponse res,
Query q,
ReportingTableModel tm)
exports the table model
|
static SelectList |
getAttributeDropdownlist(Query q,
boolean addEmptyOption)
Returns SelectList containing the available Attributes and their ids.
|
java.lang.String |
getClientSideRenderer() |
protected Component |
getComponentData(Query q,
ReportingTableModel tm) |
java.lang.String |
getExportName() |
org.json.JSONArray |
getExportOptionsJSON()
add configureable fields...
|
protected java.util.Map<java.lang.String,java.lang.String> |
getHeaderInfos(Query q,
int count) |
protected java.lang.String |
getId() |
KeyedList<java.lang.Integer,java.lang.String> |
getLineStyles(Query q,
ReportingTableModel tm) |
HTMLPage |
getPage(Query q)
Returns the configured HTML Page...
|
org.json.JSONArray |
getResultDetailsJson(Query q,
int count) |
protected javax.swing.table.TableModel |
getResultTableModel(Query q,
ReportingTableModel tm)
Returns a tablemodel that the
TableRenderer may handle. |
protected java.lang.String |
getToolbarActions(Query q) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
toJson(Query q,
ReportingTableModel tm) |
protected java.lang.String getId()
@Deprecated public void addConfigOptions(Query q, XHTMLPage p)
addConfigOptions
in interface ReportingExporter
q
- the query Objectp
- the XHTMLPage for ExportOptionspublic org.json.JSONArray getExportOptionsJSON() throws org.json.JSONException
ReportingExporter
getExportOptionsJSON
in interface ReportingExporter
org.json.JSONException
public HTMLPage getPage(Query q)
q
- the specified querypublic java.lang.String getExportName()
getExportName
in interface ReportingExporter
public void export(javax.servlet.http.HttpServletResponse res, Query q, ReportingTableModel tm)
export
in interface ReportingExporter
res
- the Response of the report requestq
- the executed Querytm
- The result Tablemodelprotected java.lang.String getToolbarActions(Query q)
protected Component getComponentData(Query q, ReportingTableModel tm)
protected javax.swing.table.TableModel getResultTableModel(Query q, ReportingTableModel tm)
TableRenderer
may handle.
Overwrite this method if the exporter should display the results in html to ensure compatibility with toolbar actionsq
- The query objecttm
- The Reporting results
return a Tablemodel implementation that the TableRenderer is able to transform to a TableContainer
.protected java.util.Map<java.lang.String,java.lang.String> getHeaderInfos(Query q, int count)
q
- the Query objectscount
- the number of results of reportpublic static SelectList getAttributeDropdownlist(Query q, boolean addEmptyOption)
q
- the query ObjectaddEmptyOption
- - pas true if selectlist shall include an empty optionpublic KeyedList<java.lang.Integer,java.lang.String> getLineStyles(Query q, ReportingTableModel tm)
public java.lang.String getClientSideRenderer()
getClientSideRenderer
in interface com.groiss.reporting.export.ClientSideExporter
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> toJson(Query q, ReportingTableModel tm) throws org.json.JSONException
toJson
in interface com.groiss.reporting.export.ClientSideExporter
org.json.JSONException
public org.json.JSONArray getResultDetailsJson(Query q, int count) throws org.json.JSONException
getResultDetailsJson
in interface com.groiss.reporting.export.ClientSideExporter
org.json.JSONException
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.