|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.printer.PrintManager
public class PrintManager
The PrintManager
manages and executes print requests.
Method Summary | |
---|---|
static void |
executePrintJob(AbstractPrinter printer)
Executes a print job using the given printer instance. |
static void |
executePrintJob(PrintJobConfiguration cfg)
Executes a print job using a configuration specified in the given PrintJobConfiguration
object. |
static void |
executePrintJob(PrintJobConfiguration cfg,
AbstractPrintDialog dialog)
Executes a print job using a configuration specified in the given PrintJobConfiguration
object. |
static String |
getLastPrintServiceName()
Returns the last used print service name if available. |
static String[] |
getLastPrintServiceNames()
Returns all last used print service names if available. |
static boolean |
isPrintServiceAvailable()
Returns whether any printing service is available. |
static void |
setLastPrintServiceName(String lastPrintServiceName)
Sets the last used print service name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void executePrintJob(AbstractPrinter printer)
Whether the print job runs asynchronously or synchronously depends on the
PrintJobConfiguration.isAsynchronousPrinting()
setting provided by the
PrintJobConfiguration
retrieved with AbstractPrinter.getPrintJobConfiguration()
.
printer
- the AbstractPrinter
that should be executed.public static void executePrintJob(PrintJobConfiguration cfg)
PrintJobConfiguration
object.
The print job runs asynchronously or synchronously depending on the
PrintJobConfiguration.isAsynchronousPrinting()
setting.
cfg
- the PrintJobConfiguration
that provides the configuration for the print job
to be executed.public static void executePrintJob(PrintJobConfiguration cfg, AbstractPrintDialog dialog)
PrintJobConfiguration
object.
The print job runs asynchronously or synchronously depending on the
PrintJobConfiguration.isAsynchronousPrinting()
setting.
cfg
- the PrintJobConfiguration
that provides the configuration for the print job
to be executed.dialog
- a print dialog instance to be displayed before the print job execution starts.
This parameter may be null
.public static String getLastPrintServiceName()
null
if not available.public static String[] getLastPrintServiceNames()
null
if not availablepublic static void setLastPrintServiceName(String lastPrintServiceName)
lastPrintServiceName
- last used print service name.
IllegalArgumentException
- if argument for lastPrintServiceName is null
.public static boolean isPrintServiceAvailable()
true
if at least one print service is available and printing is possible,
false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |