public static final class PrintJobInfo.Builder extends Object
PrintJobInfo
.Constructor and Description |
---|
Builder(PrintJobInfo prototype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PrintJobInfo |
build()
Creates a new
PrintJobInfo instance. |
void |
putAdvancedOption(String key,
int value)
Puts an advanced (printer specific) option.
|
void |
putAdvancedOption(String key,
String value)
Puts an advanced (printer specific) option.
|
void |
setAttributes(PrintAttributes attributes)
Sets the print job attributes.
|
void |
setCopies(int copies)
Sets the number of copies.
|
void |
setPages(PageRange[] pages)
Sets the included pages.
|
void |
setProgress(float progress)
Sets the progress of the print job.
|
void |
setStatus(CharSequence status)
Sets the status of the print job.
|
public Builder(PrintJobInfo prototype)
prototype
- Prototype to use as a starting point.
Can be null
.public void setCopies(int copies)
copies
- The number of copies.public void setAttributes(PrintAttributes attributes)
attributes
- The attributes.public void setPages(PageRange[] pages)
pages
- The included pages.public void setProgress(float progress)
progress
- the progress of the jobpublic void setStatus(CharSequence status)
status
- the status of the job, can be nullpublic void putAdvancedOption(String key, String value)
key
- The option key.value
- The option value.public void putAdvancedOption(String key, int value)
key
- The option key.value
- The option value.public PrintJobInfo build()
PrintJobInfo
instance.