|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.reporting.export.HTMLExporter
public class HTMLExporter
Exports Query results to HTML. Uses TableRenderer to display result Table.
| Field Summary |
|---|
| Fields inherited from interface com.groiss.reporting.export.ReportingExporter |
|---|
ROW_STYLE_HIDDEN |
| Constructor Summary | |
|---|---|
HTMLExporter()
|
|
| Method Summary | |
|---|---|
void |
addConfigOptions(Query q,
XHTMLPage p)
Method is called for all configured exporter. |
void |
export(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. |
String |
getExportName()
|
protected Map<String,String> |
getHeaderInfos(Query q,
int count)
|
protected String |
getId()
|
KeyedList<Integer,String> |
getLineStyles(Query q,
ReportingTableModel tm)
|
HTMLPage |
getPage(Query q)
Returns the configured HTML Page... |
protected Component |
getResultComponent(Query q,
ReportingTableModel tm,
String tbactions)
|
protected TableModel |
getResultTableModel(Query q,
ReportingTableModel tm)
Returns a tablemodel that the TableRenderer may handle. |
protected com.groiss.reporting.gui.ReportingTableAdapter |
getTableAdapter(TableModel tm,
Query q,
String defaultActions)
Override this method to change Toolbar actions or other TableAdapter settings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLExporter()
| Method Detail |
|---|
protected String getId()
public void addConfigOptions(Query q,
XHTMLPage p)
addConfigOptions in interface ReportingExporterq - the query Objectp - the XHTMLPage for ExportOptionspublic HTMLPage getPage(Query q)
q - the specified query
public String getExportName()
getExportName in interface ReportingExporter
public void export(HttpServletResponse res,
Query q,
ReportingTableModel tm)
export in interface ReportingExporterres - the Response of the report requestq - the executed Querytm - The result Tablemodel
protected Component getResultComponent(Query q,
ReportingTableModel tm,
String tbactions)
q - The Query Objecttm - the TableModeltbactions -
protected com.groiss.reporting.gui.ReportingTableAdapter getTableAdapter(TableModel tm,
Query q,
String defaultActions)
tm - the TableModelq - the executed query objectdefaultActions - keys of the default toolbar actions
return the ReportingTableAdapter
protected 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 actions
q - The query objecttm - The Reporting results
return a Tablemodel implementation that the TableRenderer is able to transform to a TableContainer.
protected Map<String,String> getHeaderInfos(Query q,
int count)
q - the Query objectscount - the number of results of report
public static SelectList getAttributeDropdownlist(Query q,
boolean addEmptyOption)
q - the query ObjectaddEmptyOption - - pas true if selectlist shall include an empty option
public KeyedList<Integer,String> getLineStyles(Query q,
ReportingTableModel tm)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||