com.accendia.netstart.client.service
Class SecurePrinterJob

java.lang.Object
  extended by com.accendia.netstart.client.service.SecurePrinterJob

public class SecurePrinterJob
extends java.lang.Object

Provides the means for the application to print under strict user control. using a PrinterJob.


Method Summary
 java.awt.print.PageFormat getDefaultPage()
          Creates and returns a new default PageFormat.
static SecurePrinterJob getSecurePrinterJob()
          Creates a returns a SecurePrinterJob object.
 void print(java.awt.print.Pageable pageable)
          Displays a print dialog and prints the document provided by the application if the user confirms the print.
 void print(java.awt.print.Printable painter)
          Displays a print dialog and prints the document provided by the application if the user confirms the print.
 java.awt.print.PageFormat showPageFormatDialog(java.awt.print.PageFormat page)
          Displays the PageFormat dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSecurePrinterJob

public static SecurePrinterJob getSecurePrinterJob()
Creates a returns a SecurePrinterJob object.

Returns:
a new SecurePrinterJob.

getDefaultPage

public java.awt.print.PageFormat getDefaultPage()
Creates and returns a new default PageFormat.

Returns:
the default PageFormat.

showPageFormatDialog

public java.awt.print.PageFormat showPageFormatDialog(java.awt.print.PageFormat page)
Displays the PageFormat dialog.

Parameters:
page - The initial PageFormat used to initialize the dialog.
Returns:
The PageFormat modified by the user.

print

public void print(java.awt.print.Pageable pageable)
           throws java.awt.print.PrinterException
Displays a print dialog and prints the document provided by the application if the user confirms the print.

Parameters:
pageable - The document to be printed
Throws:
java.awt.print.PrinterException - If a printing error occurs.

print

public void print(java.awt.print.Printable painter)
           throws java.awt.print.PrinterException
Displays a print dialog and prints the document provided by the application if the user confirms the print.

Parameters:
painter - The document to be printed
Throws:
java.awt.print.PrinterException - If a printing error occurs.