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.printing
Interface IPrintService

All Known Implementing Classes:
PrintService

public interface IPrintService

Service for printing documents.


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.
 

Method Detail

print

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

Throws:
DocumentException - if printing fails

print

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

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

isActivePrinterBusy

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

Returns:
if the active printer is busy
Throws:
NOAException - if the busy state could not be retrieved

getActivePrinter

IPrinter getActivePrinter()
                          throws NOAException
Returns the active printer.

Returns:
the active printer
Throws:
NOAException - if printer could not be retrieved

setActivePrinter

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

Parameters:
printer - the printer to be set to be active
Throws:
NOAException - if printer could not be set

createPrinter

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

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