Package com.storedobject.office
Class ODTReport
- All Implemented Interfaces:
Executable,ContentProducer,ContentType,RequiresTransactionManager,Closeable,AutoCloseable,Runnable
- Direct Known Subclasses:
ODTObjectReport
Represents a report based on the ODT format, allowing integration with devices for viewing or printing.
This class provides various constructors to configure the report with a device, template, or filler data,
and ensures that the report is executed and viewed as per the requirements.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.office.ODT
ODT.Document<O>, ODT.Element, ODT.Image, ODT.InputTableRow, ODT.Section, ODT.SectionName, ODT.Table, ODT.TableCell, ODT.TableRow, ODT.TextElement -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an ODTReport instance that generates a report based on the provided device, stream data, and filler object.Constructs an ODTReport instance with the specified device, template ID, and optional filler data.Constructs an ODTReport instance with the specified device, template identifier, and filler object.ODTReport(Device device, StreamData streamData) Constructor to initialize an ODTReport instance with the given device, stream data, and filler object.ODTReport(Device device, StreamData streamData, Object filler) Constructs anODTReportinstance with a specific device, stream data, and filler object. -
Method Summary
Methods inherited from class com.storedobject.office.AbstractODTReport
execute, getEntity, getReportFormat, setEntity, viewMethods inherited from class com.storedobject.office.ODT
close, getContent, getContentType, getDevice, getException, getFileExtension, getFileName, getSectionNames, getTransactionManager, isRawOutput, log, produce, ready, reportingIteratorValue, setExcludeImages, setFiller, setImageCustomizer, setIterator, setOutputAsHTML, setOutputAsPDF, setRawOutput, setReportingObject, setSectionCustomizer, setTableCustomizer, setTemplate, setTemplate, setTransactionManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.core.ContentProducer
abort, extractContent, getError, getStreamData, getStreamDataProvider, getSystemEntity, saveTo, saveTo, saveTo, saveToMethods inherited from interface com.storedobject.core.ContentType
getLink, getMimeType, isAudio, isHTML, isImage, isLink, isMedia, isPDF, isText, isVideoMethods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
ODTReport
Constructs an ODTReport instance that generates a report based on the provided device, stream data, and filler object. The constructor initializes the report with the given parameters.- Parameters:
device- The device associated with the report, used for viewing or executing the report.
-
ODTReport
Constructs an ODTReport instance with the specified device, template ID, and optional filler data. The report is tied to a particular device for viewing or printing functionalities. The specified template ID is used to set the report's template.- Parameters:
device- The device associated with the report, typically responsible for viewing or printing the report.templateId- The unique ID of the template used for generating the report content.
-
ODTReport
Constructs an ODTReport instance with the specified device, template identifier, and filler object. This constructor initializes the instance by setting the device and the filler, and sets the template using the provided template identifier.- Parameters:
device- The device associated with this report. It defines the context in which the report will be viewed or printed.templateId- The identifier of the template (StreamData) to be used for the report. This identifier is used to fetch the corresponding template from the stored object system.filler- The filler object used to populate the data in the report. It can be null if no specific data is required during initialization.
-
ODTReport
Constructor to initialize an ODTReport instance with the given device, stream data, and filler object. This allows creating a report instance that integrates with a specific device while populating content from the provided stream data and an optional filler object.- Parameters:
device- The device with which the report will be associated. This is typically the output destination such as a printer or a viewer.streamData- The stream data containing the pre-defined content (in ODT format) for the report. This can be used as a template or a source of data.
-
ODTReport
Constructs anODTReportinstance with a specific device, stream data, and filler object.- Parameters:
device- The device with which this report is associated for viewing or printing.streamData- The stream data containing the template for the ODT report. It provides the structure and content for the report. Can benull.filler- An optional object to supply additional data or configurations needed for generating the report.
-