public class PrintEvent extends EventObject
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.Modifier and Type | Class and Description |
---|---|
static class |
PrintEvent.PrintEventType |
source
Constructor and Description |
---|
PrintEvent(Object printSource,
PrintEvent.PrintEventType type,
Document document,
Page page,
String eventMessage)
Creates a new
PrintEvent . |
Modifier and Type | Method and Description |
---|---|
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() |
getSource
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 printingpublic 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()
Copyright © 2024 levigo holding gmbh. All rights reserved.