< prev index next >
src/java.desktop/share/classes/java/awt/desktop/OpenURIEvent.java
Print this page
*** 32,47 ****
/**
* Event sent when the app is asked to open a {@code URI}.
*
* @see OpenURIHandler#openURI(OpenURIEvent)
- *
* @since 9
*/
public final class OpenURIEvent extends AppEvent {
private static final long serialVersionUID = 221209100935933476L;
final URI uri;
/**
* Constructs an {@code OpenURIEvent}.
*
--- 32,53 ----
/**
* Event sent when the app is asked to open a {@code URI}.
*
* @see OpenURIHandler#openURI(OpenURIEvent)
* @since 9
*/
public final class OpenURIEvent extends AppEvent {
+ /**
+ * Use serialVersionUID from JDK 9 for interoperability.
+ */
private static final long serialVersionUID = 221209100935933476L;
+
+ /**
+ * The {@code URI} the app was asked to open.
+ */
final URI uri;
/**
* Constructs an {@code OpenURIEvent}.
*
*** 56,66 ****
public OpenURIEvent(final URI uri) {
this.uri = uri;
}
/**
! * Get the {@code URI} the app was asked to open
* @return the {@code URI}
*/
public URI getURI() {
return uri;
}
--- 62,73 ----
public OpenURIEvent(final URI uri) {
this.uri = uri;
}
/**
! * Get the {@code URI} the app was asked to open.
! *
* @return the {@code URI}
*/
public URI getURI() {
return uri;
}
< prev index next >