Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.noa.internal.printing
Class PrintService

java.lang.Object
  extended by ag.ion.noa.internal.printing.PrintService
All Implemented Interfaces:
IPrintService

public class PrintService
extends java.lang.Object
implements IPrintService

Service for printing documents.


Constructor Summary
PrintService(IDocument document)
          Constructs new PrintService.
 
Method Summary
 IPrinter createPrinter(java.lang.String name)
          Constructs a printer with the given properties and returns it.
 IPrinter getActivePrinter()
          Returns the active printer.
 boolean isActivePrinterBusy()
          Returns if the active printer is busy.
 void print()
          Prints the document to the active printer.
 void print(IPrintProperties printProperties)
          Prints the document to the active printer with the given print properties.
 void setActivePrinter(IPrinter printer)
          Sets the active printer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintService

public PrintService(IDocument document)
Constructs new PrintService.

Parameters:
document - the document using this print service
Method Detail

print

public void print()
           throws DocumentException
Prints the document to the active printer.

Specified by:
print in interface IPrintService
Throws:
DocumentException - if printing fails

print

public void print(IPrintProperties printProperties)
           throws DocumentException
Prints the document to the active printer with the given print properties.

Specified by:
print in interface IPrintService
Parameters:
printProperties - the properties to print with, or null to use default settings
Throws:
DocumentException - if printing fails

isActivePrinterBusy

public boolean isActivePrinterBusy()
                            throws NOAException
Returns if the active printer is busy.

Specified by:
isActivePrinterBusy in interface IPrintService
Returns:
if the active printer is busy
Throws:
NOAException - if the busy state could not be retrieved

getActivePrinter

public IPrinter getActivePrinter()
                          throws NOAException
Returns the active printer.

Specified by:
getActivePrinter in interface IPrintService
Returns:
the active printer
Throws:
NOAException - if printer could not be retrieved

setActivePrinter

public void setActivePrinter(IPrinter printer)
                      throws NOAException
Sets the active printer.

Specified by:
setActivePrinter in interface IPrintService
Parameters:
printer - the printer to be set to be active
Throws:
NOAException - if printer could not be set

createPrinter

public IPrinter createPrinter(java.lang.String name)
                       throws NOAException
Constructs a printer with the given properties and returns it.

Specified by:
createPrinter in interface IPrintService
Parameters:
name - the name of the printer cue to be used
Returns:
the constructed printer
Throws:
NOAException - if printer could not be constructed

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013