public class PrintContext extends Object implements Serializable
| Constructor and Description |
|---|
PrintContext()
Construct a new Print context
|
PrintContext(String dialogName,
Document document)
Create a PrintContext based on a Document.
|
PrintContext(String dialogName,
Document document,
Map<String,Object> params)
Create a PrintContext based on a Document.
|
PrintContext(String dialogName,
Document document,
String printerName)
Create a PrintContext based on a Document.
|
PrintContext(String dialogName,
Document document,
String printerName,
Map<String,Object> params)
Create a PrintContext based on a Document.
|
PrintContext(String dialogName,
String xml,
String printerName)
Create a PrintContext based on an XML string.
|
PrintContext(String dialogName,
URI file)
Create a PrintContext based on a file given as an URI.
|
PrintContext(String dialogName,
URI file,
Map<String,Object> params)
Create a PrintContext based on a file given as an URI.
|
PrintContext(String dialogName,
URI file,
String printerName)
Create a PrintContext based on a file given as an URI.
|
PrintContext(String dialogName,
URI file,
String printerName,
Map<String,Object> params)
Create a PrintContext based on a file given as an URI.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDialogName() |
Document |
getDocument() |
URI |
getFile() |
Map<String,Object> |
getParams() |
String |
getPrinterName() |
String |
getXml() |
boolean |
isValid()
Check whether this PrintContext is valid for printing.
|
void |
setDialogName(String dialogName) |
void |
setDocument(Document document) |
void |
setFile(URI file) |
void |
setParams(Map<String,Object> params) |
void |
setPrinterName(String printerName) |
void |
setXml(String xml) |
String |
toString() |
public PrintContext()
public PrintContext(String dialogName, Document document)
dialogName - The name of the print dialog (print template)document - Data to be printed formed in a Documentpublic PrintContext(String dialogName, Document document, String printerName)
dialogName - The name of the print dialog (print template)document - Data to be printed formed in a DocumentprinterName - The name of the printer to be usedpublic PrintContext(String dialogName, URI file)
dialogName - The name of the print dialog (print template)file - Data to be printed formed in a file (XML file)public PrintContext(String dialogName, URI file, String printerName)
dialogName - The name of the print dialog (print template)file - Data to be printed formed in a file (XML file)printerName - The name of the printer to be usedpublic PrintContext(String dialogName, Document document, Map<String,Object> params)
dialogName - The name of the print dialog (print template)document - Data to be printed formed in a Documentparams - Additional print parameterspublic PrintContext(String dialogName, Document document, String printerName, Map<String,Object> params)
dialogName - The name of the print dialog (print template)document - Data to be printed formed in a DocumentprinterName - The name of the printer to be usedparams - Additional print parameterspublic PrintContext(String dialogName, URI file, Map<String,Object> params)
dialogName - The name of the print dialog (print template)file - Data to be printed formed in a file (XML file)params - Additional print parameterspublic PrintContext(String dialogName, URI file, String printerName, Map<String,Object> params)
dialogName - The name of the print dialog (print template)file - Data to be printed formed in a file (XML file)printerName - The name of the printer to be usedparams - Additional print parameterspublic boolean isValid()
public String getDialogName()
public void setDialogName(String dialogName)
dialogName - (missing javadoc)public URI getFile()
public void setFile(URI file)
file - (missing javadoc)public Document getDocument()
public void setDocument(Document document)
document - (missing javadoc)public String getXml()
public void setXml(String xml)
xml - (missing javadoc)public String getPrinterName()
public void setPrinterName(String printerName)
printerName - (missing javadoc)Copyright © 2006–2018 Esito AS. All rights reserved.