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

public Class PrintServiceAttributeEvent

extends PrintEvent
Class Inheritance
Imports
java.io.Serial, javax.print.PrintService, javax.print.attribute.AttributeSetUtilities, .PrintServiceAttributeSet

Class PrintServiceAttributeEvent encapsulates an event a Print Service instance reports to let the client know of changes in the print service state.

Field Summary

Modifier and TypeField and Description
private PrintServiceAttributeSet
private static final long
serialVersionUID

Hides javax.print.event.PrintEvent.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
public
PrintServiceAttributeEvent(PrintService
the print job generating this event
source
,
PrintServiceAttributeSet
the attribute changes being reported
attributes
)

Constructs a PrintServiceAttributeEvent object.

Method Summary

Modifier and TypeMethod and Description
public PrintServiceAttributeSet

Returns:

attributes containing the new values for the service attributes that changed. The returned set may be unmodifiable.
getAttributes
()

Determine the printing service attributes that changed and their new values.

public PrintService

Returns:

PrintService object
getPrintService
()

Returns the print service.

Inherited from javax.print.event.PrintEvent:
toString

Field Detail

attributesback to summary
private PrintServiceAttributeSet attributes
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.event.PrintEvent.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrintServiceAttributeEventback to summary
public PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)

Constructs a PrintServiceAttributeEvent object.

Parameters
source:PrintService

the print job generating this event

attributes:PrintServiceAttributeSet

the attribute changes being reported

Exceptions
IllegalArgumentException:
if source is null

Method Detail

getAttributesback to summary
public PrintServiceAttributeSet getAttributes()

Determine the printing service attributes that changed and their new values.

Returns:PrintServiceAttributeSet

attributes containing the new values for the service attributes that changed. The returned set may be unmodifiable.

getPrintServiceback to summary
public PrintService getPrintService()

Returns the print service.

Returns:PrintService

PrintService object