Klasse SummaryInfo
java.lang.Object
com.inet.report.SummaryInfo
- Alle implementierten Schnittstellen:
Serializable
With this class SummaryInfo you can get/set the report summary info specified in the "Summary Info" of the i-net Designer
or with the setXXX methods in this class.
For example:
Engine eng = new Engine( Engine.NO_EXPORT );
eng.setReportFile( "file:C:/MyReports/Report1.rpt" );
SummaryInfo su = eng.getSummaryInfo();
System.out.println("created: "+su.getCreated());
System.out.println("LastSaved: "+su.getLastSaved());
System.out.println("Author: "+su.getAuthor());
System.out.println("Subject: "+su.getSubject());
System.out.println("ReportTitle: "+su.getReportTitle());
For example:
Engine eng = new Engine( Engine.NO_EXPORT );
eng.setReportFile( "file:C:/MyReports/Report1.rpt" );
SummaryInfo su = eng.getSummaryInfo();
System.out.println("created: "+su.getCreated());
System.out.println("LastSaved: "+su.getLastSaved());
System.out.println("Author: "+su.getAuthor());
System.out.println("Subject: "+su.getSubject());
System.out.println("ReportTitle: "+su.getReportTitle());
- Seit:
- 6.0
- Siehe auch:
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the author of the report if the value was specified in the "Summary Info" or with the method setAuthor(String).Returns the comments of the report if the value was specified in the "Summary Info" or with the method setComments(String).Returns the date and time the report was created.Returns the keywords of the report if the value was specified in the "Summary Info" or with the method setKeywords(String).Returns the date and time set as the last time the report was saved.Returns the report title if the value was specified in the "Summary Info" or with the method setReportTitle(String).Returns the subject of the report if the value was specified in the "Summary Info" or with the method setSubject(String).Returns the template value of the report if the value was specified in the "Summary Info" or with the method setTemplate(String).FOR INTERNAL USE ONLY Gets the report's "thumbnail" image if there is one.byte[]FOR INTERNAL USE ONLY Gets the report's "thumbnail" image if there is one.voidSets the author of the report.voidsetComments(String comments) Sets the comments of the report.voidsetCreated(Date createTime) Sets the date and time the report was created.voidsetKeywords(String keywords) Sets the keywords of the report as a single string.voidsetLastSaved(Date lastSave) Sets the date and time the report was last saved.voidsetReportTitle(String title) Sets the report title.voidsetSubject(String subject) Sets the subject of the report, that is, the general theme.voidsetTemplate(String template) Sets the template field of the report.voidsetThumbnail(Image img) FOR INTERNAL USE ONLY Sets the image as the report's "thumbnail" image.voidsetThumbnailData(byte[] data) FOR INTERNAL USE ONLY Sets the image as the report's "thumbnail" image.
-
Methodendetails
-
getAuthor
Returns the author of the report if the value was specified in the "Summary Info" or with the method setAuthor(String).- Gibt zurück:
- The author of the report if specified, otherwise null
- Seit:
- 6.0
- Siehe auch:
-
setAuthor
Sets the author of the report.- Parameter:
author- Author of the report- Seit:
- 6.0
- Siehe auch:
-
getKeywords
Returns the keywords of the report if the value was specified in the "Summary Info" or with the method setKeywords(String).- Gibt zurück:
- The keywords of the report if specified
- Seit:
- 6.0
- Siehe auch:
-
setKeywords
Sets the keywords of the report as a single string.- Parameter:
keywords- Keywords of the report as a single string.- Seit:
- 6.0
- Siehe auch:
-
getComments
Returns the comments of the report if the value was specified in the "Summary Info" or with the method setComments(String).- Gibt zurück:
- The comments saved in the report, if any.
- Seit:
- 6.0
- Siehe auch:
-
setComments
Sets the comments of the report. These could be for example the reason for the report, or or changes which have been made to the report, etc.- Parameter:
comments- Comments to set for the report- Seit:
- 6.0
- Siehe auch:
-
getReportTitle
Returns the report title if the value was specified in the "Summary Info" or with the method setReportTitle(String).- Gibt zurück:
- The report title if specified, else null
- Seit:
- 6.0
- Siehe auch:
-
setReportTitle
Sets the report title. May be null if no title is to be set. The title is used as label for the view tabs in the viewer and as export file name.- Parameter:
title- Title to set for the report, may be null- Seit:
- 6.0
- Siehe auch:
-
getSubject
Returns the subject of the report if the value was specified in the "Summary Info" or with the method setSubject(String).- Gibt zurück:
- The subject of the report if specified
- Seit:
- 6.0
- Siehe auch:
-
setSubject
Sets the subject of the report, that is, the general theme.- Parameter:
subject- Subject to set for the report- Seit:
- 6.0
- Siehe auch:
-
getTemplate
Returns the template value of the report if the value was specified in the "Summary Info" or with the method setTemplate(String).- Gibt zurück:
- The value of the template field if specified.
- Seit:
- 6.0
- Siehe auch:
-
setTemplate
Sets the template field of the report. Note that at this point, this has no effect other than to save another string in the SummaryInfo.- Parameter:
template- String to save as "template" of the report.- Seit:
- 6.0
- Siehe auch:
-
getCreated
Returns the date and time the report was created.- Gibt zurück:
- Date and time set as report creation time.
- Seit:
- 6.0
- Siehe auch:
-
setCreated
Sets the date and time the report was created.- Parameter:
createTime- Time to set as the creation date of the report.- Seit:
- 6.0
- Siehe auch:
-
getLastSaved
Returns the date and time set as the last time the report was saved.- Gibt zurück:
- The date and time set as the last time the report was saved.
- Seit:
- 6.0
- Siehe auch:
-
setLastSaved
Sets the date and time the report was last saved.- Parameter:
lastSave- Date and time to set the report as being last saved on- Seit:
- 6.0
- Siehe auch:
-
setThumbnail
FOR INTERNAL USE ONLY Sets the image as the report's "thumbnail" image. This image is stored within the report as Thumbnails/Thumbnail.png. This overwrites the currently set thumbnail. Setting null is allowed and causes the thumbnail to be the default thumbnail image. The thumbnail image is scaled to 96x96 pixels.- Parameter:
img- Image to store as the report's thumbnail. Null is allowed.- Seit:
- 9.0
-
getThumbnail
FOR INTERNAL USE ONLY Gets the report's "thumbnail" image if there is one. Can be null, which means no thumbnail exists for the report (e.g. if the report is in an old report format).- Gibt zurück:
- the report's thumbnail image or null if the report has no thumbnail
- Seit:
- 9.0
-
setThumbnailData
public void setThumbnailData(byte[] data) FOR INTERNAL USE ONLY Sets the image as the report's "thumbnail" image. This image is stored within the report as Thumbnails/Thumbnail.png. This overwrites the currently set thumbnail. Setting null is allowed and causes the thumbnail to be the default thumbnail image. The thumbnail image is scaled to 96x96 pixels.- Parameter:
data- Image to store as the report's thumbnail. Null is allowed. The bytes must be readable from ImageIO.- Seit:
- 11.0
-
getThumbnailData
public byte[] getThumbnailData()FOR INTERNAL USE ONLY Gets the report's "thumbnail" image if there is one. Can be null, which means no thumbnail exists for the report (e.g. if the report is in an old report format).- Gibt zurück:
- the report's thumbnail image data or null if the report has no thumbnail
- Seit:
- 11.0
-