Class Java14PrintUtil
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.extensions.modules.java14print.Java14PrintUtil
-
public class Java14PrintUtil extends Object
Creation-Date: 05.09.2005, 19:11:47- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static intCONFIGURATION_REPAGINATEstatic intCONFIGURATION_SHOW_DIALOGstatic intCONFIGURATION_VALID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrintRequestAttributeSetcopyAuxillaryAttributes(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)static PrintRequestAttributeSetcopyConfiguration(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)This method replaces the media definition from the given attribute set with the one found in the report itself.static PageFormatextractPageFormat(PrintRequestAttributeSet attributeSet)static intisValidConfiguration(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)This tests, whether the given attribute set defines the same page properties as the given JFreeReport object.static booleanprint(org.pentaho.reporting.engine.classic.core.MasterReport report)static booleanprint(org.pentaho.reporting.engine.classic.core.MasterReport report, org.pentaho.reporting.engine.classic.core.event.ReportProgressListener progressListener)static voidprintDirectly(org.pentaho.reporting.engine.classic.core.MasterReport report, PrintService printService)
-
-
-
Field Detail
-
CONFIGURATION_VALID
public static final int CONFIGURATION_VALID
- See Also:
- Constant Field Values
-
CONFIGURATION_REPAGINATE
public static final int CONFIGURATION_REPAGINATE
- See Also:
- Constant Field Values
-
CONFIGURATION_SHOW_DIALOG
public static final int CONFIGURATION_SHOW_DIALOG
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValidConfiguration
public static int isValidConfiguration(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)
This tests, whether the given attribute set defines the same page properties as the given JFreeReport object. While showing the print dialog, the user has the chance to alter the page format of the print job. When that happens, we have to repaginate the whole report, which may render the users page range input invalid. In that case, we will have to redisplay the dialog.- Parameters:
attributes-report-- Returns:
-
copyConfiguration
public static PrintRequestAttributeSet copyConfiguration(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)
This method replaces the media definition from the given attribute set with the one found in the report itself. If no JobName is set, a default jobname will be assigned.- Parameters:
attributes-report-- Returns:
-
copyAuxillaryAttributes
public static PrintRequestAttributeSet copyAuxillaryAttributes(PrintRequestAttributeSet attributes, org.pentaho.reporting.engine.classic.core.MasterReport report)
-
extractPageFormat
public static PageFormat extractPageFormat(PrintRequestAttributeSet attributeSet)
-
printDirectly
public static void printDirectly(org.pentaho.reporting.engine.classic.core.MasterReport report, PrintService printService) throws PrintException, org.pentaho.reporting.engine.classic.core.ReportProcessingException- Throws:
PrintExceptionorg.pentaho.reporting.engine.classic.core.ReportProcessingException
-
print
public static boolean print(org.pentaho.reporting.engine.classic.core.MasterReport report) throws PrintException, org.pentaho.reporting.engine.classic.core.ReportProcessingException- Throws:
PrintExceptionorg.pentaho.reporting.engine.classic.core.ReportProcessingException
-
print
public static boolean print(org.pentaho.reporting.engine.classic.core.MasterReport report, org.pentaho.reporting.engine.classic.core.event.ReportProgressListener progressListener) throws PrintException, org.pentaho.reporting.engine.classic.core.ReportProcessingException- Throws:
PrintExceptionorg.pentaho.reporting.engine.classic.core.ReportProcessingException
-
-