ewe.fx.print
Class PrinterJob

java.lang.Object
  extended byewe.fx.print.PrinterJobObject
      extended byewe.fx.print.PrinterJob

public class PrinterJob
extends PrinterJobObject


Field Summary
 
Fields inherited from class ewe.fx.print.PrinterJobObject
nativeJob, printerSelected
 
Constructor Summary
PrinterJob()
           
 
Method Summary
static PrinterJob getPrinterJob()
          Get a new PrinterJob object.
protected  Task getPrintTask(Printable toPrint, PageFormat format, PrintOptions po)
          Return a Task object that does the printing.
 boolean printDialog(Frame parent)
          This displays the printer select/setup dialog box, which may be a native OS dialog box.
 
Methods inherited from class ewe.fx.print.PrinterJobObject
cancel, getCurrentPrintingHandle, isPrinting, print, printingComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

PrinterJob

public PrinterJob()
Method Detail

getPrinterJob

public static PrinterJob getPrinterJob()
Get a new PrinterJob object. Under some ewe environments (e.g. under Win32) this will automatically bring up the PrinterSelect dialog box. If the user cancels the dialog box, getPrinterJob() will return false.


printDialog

public boolean printDialog(Frame parent)
This displays the printer select/setup dialog box, which may be a native OS dialog box.

Parameters:
parent - The parent Frame - which can be null.
Returns:
true if the user pressed OK, false if the user pressed Cancel.

getPrintTask

protected Task getPrintTask(Printable toPrint,
                            PageFormat format,
                            PrintOptions po)
Return a Task object that does the printing.

Specified by:
getPrintTask in class PrinterJobObject