APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.event

public Class PrintEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
javax.print.event.PrintJobAttributeEvent, javax.print.event.PrintJobEvent, javax.print.event.PrintServiceAttributeEvent
Imports
java.io.Serial

Class PrintEvent is the super class of all Print Service API events.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
PrintEvent(Object
is the source of the event
source
)

Constructs a PrintEvent object.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a message describing the event
toString
()

Overrides java.util.EventObject.toString.

Returns a string representation of this PrintEvent.

Inherited from java.util.EventObject:
getSource

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrintEventback to summary
public PrintEvent(Object source)

Constructs a PrintEvent object.

Parameters
source:Object

is the source of the event

Exceptions
IllegalArgumentException:
if source is null

Method Detail

toStringback to summary
public String toString()

Overrides java.util.EventObject.toString.

Returns a string representation of this PrintEvent.

Returns:String

a message describing the event