public class ParametersForPrinting
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ParameterStore |
parameterStore |
Constructor and Description |
---|
ParametersForPrinting(ParameterStore parameterStore)
Constructs a new ParameterForPrinting class.
|
Modifier and Type | Method and Description |
---|---|
ParameterStore |
getParameterStore() |
java.lang.String |
getPrinterName(java.lang.Class<? extends java.lang.Object> printingClass)
Returns the printer name for the specified printing class.
|
java.lang.String |
getPrinterTray(java.lang.Class<? extends java.lang.Object> printingClass)
Returns the tray name for the specified printing class.
|
void |
setPrinterName(java.lang.Class<? extends java.lang.Object> printingClass,
java.lang.String printerName)
Set the printer name for the specified printing class.
|
void |
setPrinterTray(java.lang.Class<? extends java.lang.Object> printingClass,
java.lang.String printerName)
Set the printer tray for the specified printing class.
|
protected ParameterStore parameterStore
public ParametersForPrinting(ParameterStore parameterStore)
parameterStore
- the ParameterStore to be used to store the parameters;
the ParameterStore implementation must at least support a key length of 3 characters
larger than the longest print class name (simple name)public ParameterStore getParameterStore()
public java.lang.String getPrinterName(java.lang.Class<? extends java.lang.Object> printingClass)
printingClass
- the printing class whose printing attribute values are to be retrievedpublic void setPrinterName(java.lang.Class<? extends java.lang.Object> printingClass, java.lang.String printerName)
printingClass
- the printing class whose printing attribute values are to be setprinterName
- the printer name to setpublic java.lang.String getPrinterTray(java.lang.Class<? extends java.lang.Object> printingClass)
printingClass
- the printing class whose printing attribute values are to be retrievedpublic void setPrinterTray(java.lang.Class<? extends java.lang.Object> printingClass, java.lang.String printerName)
printingClass
- the printing class whose printing attribute values are to be setprinterName
- the printer tray to setCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de