Class TrainingRecordPrintDelegate
java.lang.Object
com.ptc.qualitymanagement.qms.util.ReportPrintWriter
com.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingRecordPrintDelegate
- All Implemented Interfaces:
com.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingTrackingPrintDelegate,com.ptc.qualitymanagement.qms.util.ReportPrintIFC
public class TrainingRecordPrintDelegate
extends com.ptc.qualitymanagement.qms.util.ReportPrintWriter
implements com.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingTrackingPrintDelegate
Generates a PDF Report based upon the contents of the TrainingRecord object.
This object is intended to be used as a base class for customer extensions. To extend create a class that extends this class then register it as the Training Record Print Delegate. To register the new class create xconf file xxx.QMS.service.properties.xconf and register with Windchill.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configuration SYSTEM "xconf.dtd">
<Configuration targetFile="codebase/service.properties">
<Service name="com.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingTrackingPrintDelegate">
<Option
cardinality="duplicate"
requestor="com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord"
selector="com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord"
serviceClass="yourfullyqualifiedclassname"
/>
</Service>
</Configuration>
Register new xconf file with Windchill
xconfmanager -i src\\com\\acme\\udi\\xxx.QMS.service.properties.xconf -p
Supported API: true
Extendable: true
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
com.ptc.qualitymanagement.qms.util.ReportPrintWriter.CheckBoxRequired -
Field Summary
Fields inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
BUFFER_SIZE, dateDisplayFormat, document, f, LABEL_FONT_BOLD, LABEL_FONT_ITALIC, LABEL_FONT_NORMAL, os, out, persistableAdapter, REPORT_DATA_FONT, reportClass, reportDataBaseFont, reportLabelBaseFont, resource, resourceBundleName, SECTION_LABEL_FONT -
Method Summary
Modifier and TypeMethodDescriptioncreatePDFReport(com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, File filePath, NmCommandBean cb) Method is available for customization of the Training Record Report.voidcreateReport(NmCommandBean cb, com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, com.lowagie.text.pdf.PdfWriter writer) Method is available for customization of the iText PDF Training Record Report.voidwriteHeader(com.lowagie.text.pdf.PdfPTable pageTable, NmCommandBean cb) Method is available for customization of the iText Write Header logic.voidwriteTheBody(com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, com.lowagie.text.pdf.PdfPTable pageTable) Method is available for customization of the iText Write Body logic.Methods inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
close, createCheckBox, createExportTempFile, getDownloadUrl, getEnumDisplayValue, getFileName, getModeledEnumDisplayValue, getResourceValue, getSoftEnumerationAttributeNames, getStringValue, init, isChecked, open, open, setFileName, writeDataCell, writeDataCell, writeDataCell, writeDataCellLabel, writeDataCellNoLabel, writeDividerCell, writeHeadingCell, writeHeadingCell, writeHeadingDataCell, writeLabelCell, writeLabelCell, writeLabelCellWithBorders, writeLabelCellWithBorders, writeLabelCellWithNoBorderBottom, writeLabelCellWithNoBorderTopBottom, writeMultiLineDataCell, writeMultiLineDataCellNoLabel, writeSectionHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingTrackingPrintDelegate
close, getFileName, open
-
Method Details
-
createPDFReport
public String createPDFReport(com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, File filePath, NmCommandBean cb) throws WTPropertyVetoException, WTException, FileNotFoundException, com.lowagie.text.DocumentException Method is available for customization of the Training Record Report. Override this method to develop a custom Report
Supported API: true- Specified by:
createPDFReportin interfacecom.ptc.qualitymanagement.qms.trainingtracking.delegates.TrainingTrackingPrintDelegate- Parameters:
trainingRecord-filePath-cb-- Returns:
- String
- Throws:
WTPropertyVetoExceptionWTExceptionFileNotFoundExceptioncom.lowagie.text.DocumentException
-
createReport
public void createReport(NmCommandBean cb, com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, com.lowagie.text.pdf.PdfWriter writer) throws WTException, com.lowagie.text.DocumentException Method is available for customization of the iText PDF Training Record Report. Override this method to develop a custom Report
Supported API: true- Parameters:
cb-trainingRecord-writer-- Throws:
WTExceptioncom.lowagie.text.DocumentException
-
writeHeader
public void writeHeader(com.lowagie.text.pdf.PdfPTable pageTable, NmCommandBean cb) throws WTException, com.lowagie.text.DocumentException, IOException Method is available for customization of the iText Write Header logic. Override this method to develop a custom header
Supported API: true- Parameters:
pageTable-cb-- Throws:
WTExceptioncom.lowagie.text.DocumentExceptionIOException
-
writeTheBody
public void writeTheBody(com.ptc.qualitymanagement.qms.trainingtracking.TrainingRecord trainingRecord, com.lowagie.text.pdf.PdfPTable pageTable) throws WTException, com.lowagie.text.DocumentException Method is available for customization of the iText Write Body logic. Override this method to develop custom Report Contents
Supported API: true- Parameters:
trainingRecord-pageTable-- Throws:
WTExceptioncom.lowagie.text.DocumentException
-