|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.levigo.jadice.printer.event.PrintEvent
public class PrintEvent
Instances of PrintEvents
will be reported by print jobs executed by jadice print api
to let listeners know of the progress in the processing of the document print job.
Nested Class Summary | |
---|---|
static class |
PrintEvent.PrintEventType
|
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PrintEvent(Object printSource,
PrintEvent.PrintEventType type,
Document document,
Page page,
String eventMessage)
Creates a new PrintEvent . |
Method Summary | |
---|---|
Document |
getDocument()
Return the document which this event pertains to. |
String |
getErrorMessage()
Return an error message describing the problem which may appear while printing or null if no error occurred. |
Page |
getPage()
Gets the page. |
Object |
getPrintSource()
The print source on which this event initially occurred. |
PrintEvent.PrintEventType |
getType()
Gets the type of this event |
String |
paramString()
Returns a parameter string identifying this event. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrintEvent(Object printSource, PrintEvent.PrintEventType type, Document document, Page page, String eventMessage)
PrintEvent
.
printSource
- The source of the event, usually an instance of AbstractPrinter
or a
subclass of ittype
- The type of event to be createddocument
- the Document
to which the event is related to.page
- the Page
to which the event is related to.eventMessage
- an error message describing the problem which may appear while printingMethod Detail |
---|
public Object getPrintSource()
AbstractPrinter
or a subclass of
itpublic String getErrorMessage()
null
if no error occurred.
public PrintEvent.PrintEventType getType()
public Page getPage()
Page
or null
if none present.public Document getDocument()
Document
or null
if none present.public String paramString()
public String toString()
toString
in class EventObject
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |