Module java.desktop

Class OpenFilesEvent

    • Constructor Detail

      • OpenFilesEvent

        public OpenFilesEvent​(List<File> files,
                              String searchTerm)
        Constructs an OpenFilesEvent
        Parameters:
        files - files
        searchTerm - searchTerm
    • Method Detail

      • 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 Mac OS X, 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.
        Returns:
        the search term used to find the files