< prev index next >

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

Print this page

        

*** 33,48 **** /** * Event sent when the app is asked to open a list of files. * * @see OpenFilesHandler#openFiles - * * @since 9 */ public final class OpenFilesEvent extends FilesEvent { private static final long serialVersionUID = -3982871005867718956L; final String searchTerm; /** * Constructs an {@code OpenFilesEvent}. * --- 33,54 ---- /** * 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,74 **** ? "" : 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. * <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 --- 67,80 ---- ? "" : 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. * <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 >