< prev index next >

src/java.desktop/share/classes/java/awt/desktop/OpenFilesEvent.java

Print this page

        

@@ -33,16 +33,22 @@
 
 /**
  * Event sent when the app is asked to open a list of files.
  *
  * @see OpenFilesHandler#openFiles
- *
  * @since 9
  */
 public final class OpenFilesEvent extends FilesEvent {
 
+    /**
+     * Use serialVersionUID from JDK 9 for interoperability.
+     */
     private static final long serialVersionUID = -3982871005867718956L;
+
+    /**
+     * The search term used to find the files.
+     */
     final String searchTerm;
 
     /**
      * Constructs an {@code OpenFilesEvent}.
      *

@@ -61,14 +67,14 @@
                             ? ""
                             : searchTerm;
     }
 
     /**
-     * Gets the search term. The platform may optionally provide the search
-     * term that was used to find the files. This is for example the case
-     * on Mac OS X, when the files were opened using the Spotlight search
-     * menu or a Finder search window.
+     * Gets the search term. The platform may optionally provide the search term
+     * that was used to find the files. This is for example the case on Mac OS
+     * X, when the files were opened using the Spotlight search menu or a Finder
+     * search window.
      * <p>
      * This is useful for highlighting the search term in the documents when
      * they are opened.
      *
      * @return the search term used to find the files
< prev index next >