|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.gui.report.ReportManager
public abstract class ReportManager
This class is used to generate and display reports. Combine it with info.joseluismartin.util.processor.FileProcessor
| Nested Class Summary | |
|---|---|
class |
ReportManager.ConnectionFileStrategy
Implementation of FileStrategy using a Connection as report data source |
class |
ReportManager.JRDataSourceFileStrategy
Implementation of FileStrategy using a JRDataSource as report data source |
class |
ReportManager.ProcessFileStrategy
Strategy to process the jasper file. |
| Constructor Summary | |
|---|---|
ReportManager()
Default ctor. |
|
| Method Summary | |
|---|---|
protected abstract JRParameterEditorDialog |
createEditorDialog()
|
DataSource |
getDataSource()
|
static String |
getPrefix(String fileName)
|
static String |
getSuffix(String fileName)
|
void |
setDataSource(DataSource dataSource)
|
void |
showReport(Report report,
DataSource dataSource,
String outputType)
Displays the report in a new window as a file |
void |
showReport(Report report,
PersistentService<Object,Serializable> service,
Object filter,
String sortPropertyName,
Page.Order sortOrder,
String outputType)
Display a report in outputType using the service and available ids to create
the data source |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportManager()
| Method Detail |
|---|
public void showReport(Report report,
PersistentService<Object,Serializable> service,
Object filter,
String sortPropertyName,
Page.Order sortOrder,
String outputType)
throws Exception
outputType using the service and available ids to create
the data source
report - service - ids - outputType -
Exception
public void showReport(Report report,
DataSource dataSource,
String outputType)
throws ReportingException
report - the report to be displayed
ReportingExceptionpublic static String getPrefix(String fileName)
public static String getSuffix(String fileName)
protected abstract JRParameterEditorDialog createEditorDialog()
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
dataSource - the dataSource to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||