|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(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 |
getExportName()
|
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... |
protected Component |
getResultComponent(Query q,
ReportingTableModel tm,
java.lang.String tbactions)
|
protected javax.swing.table.TableModel |
getResultTableModel(Query q,
ReportingTableModel tm)
Returns a tablemodel that the TableRenderer may handle. |
protected com.groiss.reporting.gui.ReportingTableAdapter |
getTableAdapter(javax.swing.table.TableModel tm,
Query q,
java.lang.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 java.lang.String getId()
public void addConfigOptions(Query q, XHTMLPage p)
addConfigOptions
in interface ReportingExporter
q
- the query Objectp
- the XHTMLPage for ExportOptionspublic HTMLPage getPage(Query q)
q
- the specified query
public 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 Component getResultComponent(Query q, ReportingTableModel tm, java.lang.String tbactions)
q
- The Query Objecttm
- the TableModeltbactions
-
protected com.groiss.reporting.gui.ReportingTableAdapter getTableAdapter(javax.swing.table.TableModel tm, Query q, java.lang.String defaultActions)
tm
- the TableModelq
- the executed query objectdefaultActions
- keys of the default toolbar actions
return the ReportingTableAdapterprotected 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 actions
q
- 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 report
public static SelectList getAttributeDropdownlist(Query q, boolean addEmptyOption)
q
- the query ObjectaddEmptyOption
- - pas true if selectlist shall include an empty option
public KeyedList<java.lang.Integer,java.lang.String> getLineStyles(Query q, ReportingTableModel tm)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |