Schnittstelle ReportGenerator
- Alle bekannten Implementierungsklassen:
Engine, EngineBundle
public interface ReportGenerator
Helper interface to use the same code for Engine and EngineBundle
- Seit:
- 14.1
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidexecute()SeeEngine.execute()for details.intSeeEngine.getPageCount()for details.byte[]getPageData(int page) SeeEngine.getPageData(int)for details.getPromptField(String name) SeeEngine.getPromptField(String)for details.@Nonnull EngineStatisticsSeeEngine.getStatistics()for details.voidsetClientLocale(@Nonnull Locale locale) SeeEngine.setClientLocale(Locale)for details.voidsetDocumentOutput(DocumentOutput documentOutput) Set the output location for the rendered data.voidSeeEngine.setPrompt(String, int)for details.voidSeeEngine.setPrompt(String, String)for details.voidsetUserProperties(Properties props) SeeEngine.setUserProperties(Properties)for details.voidSeeEngine.stop(String)for details.voidstopAfterPage(int maxPageNo) SeeEngine.stopAfterPage(int)for details.
-
Methodendetails
-
setDocumentOutput
Set the output location for the rendered data. By default the memory (heap) is used. It is also possible to store the data into the report cache or stream it directly to an OutputStream. This must be set before call of execute().- Parameter:
documentOutput- The location for the data. This can be DocumentOutputStream or CachedOutput.- Seit:
- 16.2
-
setUserProperties
SeeEngine.setUserProperties(Properties)for details.- Parameter:
props- The data to be set in a Properties object.- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
-
setClientLocale
SeeEngine.setClientLocale(Locale)for details.- Parameter:
locale- The locale to be used by the client- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
-
stopAfterPage
void stopAfterPage(int maxPageNo) SeeEngine.stopAfterPage(int)for details.- Parameter:
maxPageNo- The last page that should be rendered. 0 means "unlimited".- Seit:
- 14.1
-
setPrompt
SeeEngine.setPrompt(String, String)for details.- Parameter:
name- the name of the parameter fieldprompt- value for parameter field as String- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
-
getPromptField
SeeEngine.getPromptField(String)for details.- Parameter:
name- name of the prompt to fetch- Gibt zurück:
- PromptField by the given name in this Report, or null if none exists
- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
-
setPrompt
SeeEngine.setPrompt(String, int)for details.- Parameter:
prompt- value for parameter field ii- index in the parameter list- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
-
execute
SeeEngine.execute()for details.- Löst aus:
ReportException- if Engine is not initialized or finished.- Seit:
- 14.1
- Siehe auch:
-
getPageCount
SeeEngine.getPageCount()for details.- Gibt zurück:
- number of pages or chunks
- Löst aus:
ReportException- If rendering the report encounters a problem- Seit:
- 14.1
-
getPageData
SeeEngine.getPageData(int)for details.- Parameter:
page- The number of the page. The first page is 1, the second is 2, ... . If the page number is bigger than the page count then null will be returned.- Gibt zurück:
- the binary data for the Java Viewer or the bytes of the exported file (page).
- Löst aus:
IllegalArgumentException- if the page number is zero or negative.ReportException- If rendering the page encounters a problem- Seit:
- 14.1
-
getStatistics
@Nonnull EngineStatistics getStatistics()SeeEngine.getStatistics()for details.- Gibt zurück:
- the statistic
- Seit:
- 14.1
-
stop
SeeEngine.stop(String)for details.- Parameter:
message- a message for the debug log.- Seit:
- 14.1
-