Class DialogOwner
java.lang.Object
javax.print.attribute.standard.DialogOwner
- All Implemented Interfaces:
Serializable, Attribute, PrintRequestAttribute
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 Window parameter, it requests that
the dialog be owned by the specified window.
- Since:
- 11
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance which can be used to requestjava.awt.Window.setAlwaysOnTop(true)behaviour.DialogOwner(Window owner) Constructs an instance which can be used to request that the specifiedWindowbe the owner of the dialog. -
Method Summary
Modifier and TypeMethodDescriptionGet the printing attribute class which is to be used as the "category" for this printing attribute value.final StringgetName()Get the name of the category of which this attribute value is an instance.getOwner()Returns aWindow owner, if one was specified, otherwisenull.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
DialogOwner
public DialogOwner()Constructs an instance which can be used to requestjava.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. -
DialogOwner
-
-
Method Details
-
getOwner
Returns aWindow owner, if one was specified, otherwisenull.- Returns:
- an owner window.
-
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 classDialogOwneritself.- Specified by:
getCategoryin interfaceAttribute- Returns:
- printing attribute class (category), an instance of class
java.lang.Class
-
getName
-