1 |
/* PrintJobAdapter.java -- |
/* PrintJobAdapter.java -- |
2 |
Copyright (C) 2004 Free Software Foundation, Inc. |
Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
39 |
|
|
40 |
|
|
41 |
/** |
/** |
42 |
|
* Adapter class for implementing {@link javax.print.event.PrintJobListener} |
43 |
|
* classes. The methods in this class do nothing by default. Subclasses may |
44 |
|
* only implement the methods for the {@link javax.print.event.PrintJobEvent}s |
45 |
|
* they are interested in. |
46 |
|
* |
47 |
* @author Michael Koch (konqueror@gmx.de) |
* @author Michael Koch (konqueror@gmx.de) |
48 |
*/ |
*/ |
49 |
public abstract class PrintJobAdapter |
public abstract class PrintJobAdapter |
58 |
} |
} |
59 |
|
|
60 |
/** |
/** |
61 |
* Called to notify the client that all data has bin successfully transferred |
* Called to notify the client that all data has been successfully transferred |
62 |
* to the print service. |
* to the print service. |
63 |
|
* <p>The default implementation does nothing.</p> |
64 |
* |
* |
65 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
66 |
*/ |
*/ |
67 |
public void printDataTransferCompleted(PrintJobEvent event) |
public void printDataTransferCompleted(PrintJobEvent event) |
68 |
{ |
{ |
70 |
} |
} |
71 |
|
|
72 |
/** |
/** |
73 |
* Called to notify the client that a print job was canceled. |
* Called to notify the client that a print job was canceled. |
74 |
|
* <p>The default implementation does nothing.</p> |
75 |
* |
* |
76 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
77 |
*/ |
*/ |
78 |
public void printJobCanceled(PrintJobEvent event) |
public void printJobCanceled(PrintJobEvent event) |
79 |
{ |
{ |
82 |
|
|
83 |
/** |
/** |
84 |
* Called to notify the client that a print job was successfully completed. |
* Called to notify the client that a print job was successfully completed. |
85 |
|
* <p>The default implementation does nothing.</p> |
86 |
* |
* |
87 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
88 |
*/ |
*/ |
89 |
public void printJobCompleted(PrintJobEvent event) |
public void printJobCompleted(PrintJobEvent event) |
90 |
{ |
{ |
94 |
/** |
/** |
95 |
* Called to notify the client that a print job failed to complete |
* Called to notify the client that a print job failed to complete |
96 |
* successfully. |
* successfully. |
97 |
|
* <p>The default implementation does nothing.</p> |
98 |
* |
* |
99 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
100 |
*/ |
*/ |
101 |
public void printJobFailed(PrintJobEvent event) |
public void printJobFailed(PrintJobEvent event) |
102 |
{ |
{ |
105 |
|
|
106 |
/** |
/** |
107 |
* Called to notify the client that no more job events will be send. |
* Called to notify the client that no more job events will be send. |
108 |
|
* <p>The default implementation does nothing.</p> |
109 |
* |
* |
110 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
111 |
*/ |
*/ |
112 |
public void printJobNoMoreEvents(PrintJobEvent event) |
public void printJobNoMoreEvents(PrintJobEvent event) |
113 |
{ |
{ |
115 |
} |
} |
116 |
|
|
117 |
/** |
/** |
118 |
* Called to notify the client that a problem occured during printing |
* Called to notify the client that a problem occured during printing. |
119 |
* but the user may be able to fix it. |
* This event signals problems a user might be able to fix |
120 |
|
* (e.g. out of paper or paper jam). |
121 |
|
* <p>The default implementation does nothing.</p> |
122 |
* |
* |
123 |
* <p>The default implementation does nothing</p> |
* @param event the event. |
124 |
*/ |
*/ |
125 |
public void printJobRequiresAttention(PrintJobEvent event) |
public void printJobRequiresAttention(PrintJobEvent event) |
126 |
{ |
{ |