Top Description Inners Fields Constructors Methods
javax.print.attribute.standard

public final Class DialogOwner

extends Object
implements PrintRequestAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintRequestAttribute, javax.print.attribute.Attribute, java.io.Serializable
Imports
java.awt.Window, java.io.Serial, javax.print.attribute.Attribute, .PrintRequestAttribute, sun.print.DialogOwnerAccessor

An attribute class used to support requesting a print or page setup dialog be kept displayed on top of all windows or some specific window.

Constructed without any arguments it will request that a print or page setup dialog be configured as if the application directly was to specify java.awt.Window.setAlwaysOnTop(true), subject to permission checks.

Constructed with a java.awt.Window parameter, it requests that the dialog be owned by the specified window.

Since
11

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static DialogOwner.Accessor
private transient long
private Window
owner

The owner of the dialog.

private static final long
serialVersionUID

Use serialVersionUID from JDK 11 for interoperability.

Constructor Summary

AccessConstructor and Description
public
DialogOwner()

Constructs an instance which can be used to request java.awt.Window.setAlwaysOnTop(true) behaviour.

public
DialogOwner(Window
window.
owner
)

Constructs an instance which can be used to request that the specified java.awt.Window be the owner of the dialog.

pack-priv
DialogOwner(long
a native window identifier or handle
id
)

Constructs an instance which requests that the dialog be displayed as if it were a child of a native platform window, specified using its opqaue platform identifier or handle.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

pack-priv long

Returns:

a native platform id.
getID
()

Returns a native platform id or handle, if one was specified, otherwise, zero.

public final String
getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

public Window

Returns:

an owner window.
getOwner
()

Returns a Window owner, if one was specified, otherwise null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessorback to summary
private static DialogOwner.Accessor accessor
idback to summary
private transient long id
ownerback to summary
private Window owner

The owner of the dialog.

serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 11 for interoperability.

Annotations
@Serial

Constructor Detail

DialogOwnerback to summary
public DialogOwner()

Constructs an instance which can be used to request java.awt.Window.setAlwaysOnTop(true) behaviour. This should be used where there is no application preferred owner window. Whether this has any effect depends on if always on top is supported for this platform and the particular dialog to be displayed.

DialogOwnerback to summary
public DialogOwner(Window owner)

Constructs an instance which can be used to request that the specified java.awt.Window be the owner of the dialog.

Parameters
owner:Window

window.

DialogOwnerback to summary
pack-priv DialogOwner(long id)

Constructs an instance which requests that the dialog be displayed as if it were a child of a native platform window, specified using its opqaue platform identifier or handle. This is useful mainly for the case where the id represents a window which may not be an AWT Window, but instead was created by another UI toolkit, such as OpenJFX. Any effect is platform dependent.

Parameters
id:long

a native window identifier or handle

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class DialogOwner, the category is class DialogOwner itself.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

getIDback to summary
pack-priv long getID()

Returns a native platform id or handle, if one was specified, otherwise, zero.

Returns:long

a native platform id.

getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

For class DialogOwner, the category name is "dialog-owner".

Returns:String

Doc from javax.print.attribute.Attribute.getName.

attribute category name

getOwnerback to summary
public Window getOwner()

Returns a Window owner, if one was specified, otherwise null.

Returns:Window

an owner window.

javax.print.attribute.standard back to summary

private Class DialogOwner.Accessor

extends DialogOwnerAccessor
Class Inheritance

Field Summary

Inherited from sun.print.DialogOwnerAccessor:
accessor

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
Inherited from sun.print.DialogOwnerAccessor:
getIDsetAccessor

Constructor Detail

Accessorback to summary
private Accessor()

Method Detail

getOwnerIDback to summary
public long getOwnerID(DialogOwner owner)

Implements abstract sun.print.DialogOwnerAccessor.getOwnerID.