Module java.desktop

Class OpenFilesEvent

All Implemented Interfaces:

public final class OpenFilesEvent extends FilesEvent
Event sent when the app is asked to open a list of files.
See Also:
OpenFilesHandler.openFiles(java.awt.desktop.OpenFilesEvent), Serialized Form
  • Constructor Details

  • Method Details

    • getSearchTerm

      public String getSearchTerm()
      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 MacOS, when the files were opened using the Spotlight search menu or a Finder search window.

      This is useful for highlighting the search term in the documents when they are opened.

      the search term used to find the files