APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt.desktop

public final Class OpenURIEvent

extends AppEvent
Class Inheritance
Imports
java.awt.Desktop, .GraphicsEnvironment, .HeadlessException, java.io.Serial, java.net.URI

Event sent when the app is asked to open a URI.
Since
9
See Also
OpenURIHandler#openURI(OpenURIEvent)

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.awt.desktop.AppEvent.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.
pack-priv final URI

Constructor Summary

AccessConstructor and Description
public
OpenURIEvent(final URI
the URI the app was asked to open
uri
)

Constructs an OpenURIEvent.

Method Summary

Modifier and TypeMethod and Description
public URI

Returns:

the URI
getURI
()

Get the URI the app was asked to open.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.desktop.AppEvent.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Annotations
@Serial
uriback to summary
pack-priv final URI uri

Constructor Detail

OpenURIEventback to summary
public OpenURIEvent(final URI uri)

Constructs an OpenURIEvent.

Parameters
uri:URI

the URI the app was asked to open

Exceptions
HeadlessException:
if GraphicsEnvironment#isHeadless() returns true
UnsupportedOperationException:
if Desktop API is not supported on the current platform
See Also
Desktop#isDesktopSupported(), java.awt.GraphicsEnvironment#isHeadless

Method Detail

getURIback to summary
public URI getURI()

Get the URI the app was asked to open.

Returns:URI

the URI