|
|||||||||
Home >> All >> gnu >> javax >> print >> [ ipp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
gnu.javax.print.ipp
Class DocPrintJobImpl

java.lang.Objectgnu.javax.print.ipp.DocPrintJobImpl
- All Implemented Interfaces:
- javax.print.CancelablePrintJob, javax.print.DocPrintJob
- Direct Known Subclasses:
- MultiDocPrintJobImpl
- public class DocPrintJobImpl
- extends java.lang.Object
- implements javax.print.CancelablePrintJob
- extends java.lang.Object
Implementation of the DocPrintJob interface. Implementation is
specific to the IppPrintService
implementation.
Field Summary | |
private java.util.ArrayList |
attributesListener
The print job attributes listeners. |
private java.util.ArrayList |
attributesListenerAttributes
The print job attributes listeners associated attribute set. |
private javax.print.attribute.PrintJobAttributeSet |
currentSet
|
private gnu.javax.print.ipp.attribute.job.JobId |
jobId
Returned job id. |
private gnu.javax.print.ipp.attribute.job.JobUri |
jobUri
Returned job uri. |
private javax.print.attribute.PrintJobAttributeSet |
oldSet
The print job sets. |
private java.lang.String |
password
The password of the user. |
private boolean |
printing
State variable if we already started printing. |
private java.util.HashSet |
printJobListener
The set of print job listeners. |
private javax.print.attribute.standard.RequestingUserName |
requestingUser
The requesting-username for later canceling |
private IppPrintService |
service
The print service this job is bound to. |
private java.lang.String |
username
The username. |
Constructor Summary | |
DocPrintJobImpl(IppPrintService service,
java.lang.String user,
java.lang.String passwd)
Constructs a DocPrintJobImpl instance bound to the given print service. |
Method Summary | |
void |
addPrintJobAttributeListener(javax.print.event.PrintJobAttributeListener listener,
javax.print.attribute.PrintJobAttributeSet attributes)
Registers a listener for changes in the specified attribute set during processing of this print job. |
void |
addPrintJobListener(javax.print.event.PrintJobListener listener)
Registers a listener for events occuring during processing of this print job. |
void |
cancel()
Cancel the print job. |
javax.print.attribute.PrintJobAttributeSet |
getAttributes()
Returns the print job's attributes. |
javax.print.PrintService |
getPrintService()
Returns the PrintService object this print job is bound to. |
private void |
notifyPrintJobListeners(javax.print.event.PrintJobEvent e)
|
void |
print(javax.print.Doc doc,
javax.print.attribute.PrintRequestAttributeSet attributes)
Prints a document with the specified print job attributes. |
void |
removePrintJobAttributeListener(javax.print.event.PrintJobAttributeListener listener)
Removes the given listener from the listeners registered for changes in their provided attribute set during processing of this print job. |
void |
removePrintJobListener(javax.print.event.PrintJobListener listener)
Removes the given listener from the listeners registered for events occuring during processing of this print job. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
service
private IppPrintService service
- The print service this job is bound to.
printJobListener
private java.util.HashSet printJobListener
- The set of print job listeners.
attributesListener
private java.util.ArrayList attributesListener
- The print job attributes listeners.
attributesListenerAttributes
private java.util.ArrayList attributesListenerAttributes
- The print job attributes listeners associated attribute set.
username
private java.lang.String username
- The username.
password
private java.lang.String password
- The password of the user.
jobUri
private gnu.javax.print.ipp.attribute.job.JobUri jobUri
- Returned job uri.
jobId
private gnu.javax.print.ipp.attribute.job.JobId jobId
- Returned job id.
requestingUser
private javax.print.attribute.standard.RequestingUserName requestingUser
- The requesting-username for later canceling
oldSet
private javax.print.attribute.PrintJobAttributeSet oldSet
- The print job sets.
currentSet
private javax.print.attribute.PrintJobAttributeSet currentSet
printing
private boolean printing
- State variable if we already started printing.
Constructor Detail |
DocPrintJobImpl
public DocPrintJobImpl(IppPrintService service, java.lang.String user, java.lang.String passwd)
- Constructs a DocPrintJobImpl instance bound to the given print service.
Method Detail |
addPrintJobAttributeListener
public void addPrintJobAttributeListener(javax.print.event.PrintJobAttributeListener listener, javax.print.attribute.PrintJobAttributeSet attributes)
- Description copied from interface:
javax.print.DocPrintJob
- Registers a listener for changes in the specified attribute set
during processing of this print job.
If the given attribute set is empty no changes will be reported. If the set is
null
all attributes are monitored.- Specified by:
addPrintJobAttributeListener
in interfacejavax.print.DocPrintJob
addPrintJobListener
public void addPrintJobListener(javax.print.event.PrintJobListener listener)
- Description copied from interface:
javax.print.DocPrintJob
- Registers a listener for events occuring during processing
of this print job.
- Specified by:
addPrintJobListener
in interfacejavax.print.DocPrintJob
getAttributes
public javax.print.attribute.PrintJobAttributeSet getAttributes()
- Description copied from interface:
javax.print.DocPrintJob
- Returns the print job's attributes.
The returned set of attributes is a snapshot at the time of calling this method and will not be updated if changes to the print job's attributes happens. To monitor changes register a print job listener.
- Specified by:
getAttributes
in interfacejavax.print.DocPrintJob
getPrintService
public javax.print.PrintService getPrintService()
- Description copied from interface:
javax.print.DocPrintJob
- Returns the
PrintService
object this print job is bound to.- Specified by:
getPrintService
in interfacejavax.print.DocPrintJob
public void print(javax.print.Doc doc, javax.print.attribute.PrintRequestAttributeSet attributes) throws javax.print.PrintException
- Description copied from interface:
javax.print.DocPrintJob
- Prints a document with the specified print job attributes.
If the doc flavor provided by the
Doc
implementation is not supported by this print service aPrintException
implementing theFlavorException
interface will be thrown.- Specified by:
print
in interfacejavax.print.DocPrintJob
removePrintJobAttributeListener
public void removePrintJobAttributeListener(javax.print.event.PrintJobAttributeListener listener)
- Description copied from interface:
javax.print.DocPrintJob
- Removes the given listener from the listeners registered for changes
in their provided attribute set during processing of this print job.
- Specified by:
removePrintJobAttributeListener
in interfacejavax.print.DocPrintJob
removePrintJobListener
public void removePrintJobListener(javax.print.event.PrintJobListener listener)
- Description copied from interface:
javax.print.DocPrintJob
- Removes the given listener from the listeners registered for events
occuring during processing of this print job.
- Specified by:
removePrintJobListener
in interfacejavax.print.DocPrintJob
cancel
public void cancel() throws javax.print.PrintException
- Description copied from interface:
javax.print.CancelablePrintJob
- Cancel the print job.
- Specified by:
cancel
in interfacejavax.print.CancelablePrintJob
notifyPrintJobListeners
private void notifyPrintJobListeners(javax.print.event.PrintJobEvent e)
|
|||||||||
Home >> All >> gnu >> javax >> print >> [ ipp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |