Class OpenFilesEvent
java.lang.Object
java.util.EventObject
java.awt.desktop.AppEvent
java.awt.desktop.FilesEvent
java.awt.desktop.OpenFilesEvent
- All Implemented Interfaces:
- Serializable
Event sent when the app is asked to open a list of files.
- Since:
- 9
- See Also:
- 
Field SummaryFields declared in class EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionOpenFilesEvent(List<File> files, String searchTerm) Constructs anOpenFilesEvent.
- 
Method SummaryMethods declared in class FilesEventgetFilesMethods declared in class EventObjectgetSource, toString
- 
Constructor Details- 
OpenFilesEventConstructs anOpenFilesEvent.- Parameters:
- files- the list of files
- searchTerm- the search term
- Throws:
- HeadlessException- if- GraphicsEnvironment.isHeadless()returns- true
- UnsupportedOperationException- if Desktop API is not supported on the current platform
- See Also:
 
 
- 
- 
Method Details- 
getSearchTermGets 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. - Returns:
- the search term used to find the files
 
 
-