| Modifier and Type | Method and Description |
|---|---|
| public void | addPrintJobAttributeListener(PrintJobAttributeListener
the object implementing the listener interface listener, PrintJobAttributeSet the attributes to listen on, or attributes)null to mean
all attributes that can change, as determined by the jobRegisters a listener for changes in the specified attributes. |
| public void | addPrintJobListener(PrintJobListener
the object implementing the listener interface listener)Registers a listener for event occurring during this print job. |
| public PrintJobAttributeSet | Returns: the print job attributesObtains this Print Job's set of printing attributes. |
| public PrintService | Returns: PrintService objectDetermines the |
| public void | print(Doc
the document to be printed. It must be a flavor supported by
this PrintJob. doc, PrintRequestAttributeSet the job attributes to be applied to this print job. If
this parameter is attributes)null then the default attributes are
used.Prints a document with the specified job attributes. |
| public void | removePrintJobAttributeListener(PrintJobAttributeListener
the object implementing the listener interface listener)Removes an attribute listener from this print job. |
| public void | removePrintJobListener(PrintJobListener
the object implementing the listener interface listener)Removes a listener from this print job. |
| addPrintJobAttributeListener | back to summary |
|---|---|
| public void addPrintJobAttributeListener(PrintJobAttributeListener listener, PrintJobAttributeSet attributes) Registers a listener for changes in the specified attributes. If listener
is If listener is already registered, it will be registered again.
| |
| addPrintJobListener | back to summary |
|---|---|
| public void addPrintJobListener(PrintJobListener listener) Registers a listener for event occurring during this print job. If
listener is
| |
| getAttributes | back to summary |
|---|---|
| public PrintJobAttributeSet getAttributes() Obtains this Print Job's set of printing attributes. The returned
attribute set object is unmodifiable. The returned attribute set object
is a "snapshot" of this Print Job's attribute set at the time of the
| |
| getPrintService | back to summary |
|---|---|
| public PrintService getPrintService() Determines the
| |
| back to summary | |
|---|---|
| public void print(Doc doc, PrintRequestAttributeSet attributes) throws PrintException Prints a document with the specified job attributes. This method should
only be called once for a given print job. Calling it again will not
result in a new job being spooled to the printer. The service
implementation will define policy for service interruption and recovery.
When the print method returns, printing may not yet have completed as
printing may happen asynchronously, perhaps in a different thread.
Application clients which want to monitor the success or failure should
register a
Print service implementors should close any print data streams (ie
| |
| removePrintJobAttributeListener | back to summary |
|---|---|
| public void removePrintJobAttributeListener(PrintJobAttributeListener listener) Removes an attribute listener from this print job. This method performs
no function, nor does it throw an exception, if the listener specified by
the argument was not previously added to this print job. If the listener
is
| |
| removePrintJobListener | back to summary |
|---|---|
| public void removePrintJobListener(PrintJobListener listener) Removes a listener from this print job. This method performs no function,
nor does it throw an exception, if the listener specified by the argument
was not previously added to this print job. If listener is
| |