22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.awt.desktop; 27 28 import java.awt.Desktop; 29 import java.awt.GraphicsEnvironment; 30 import java.awt.HeadlessException; 31 import java.io.File; 32 import java.util.List; 33 34 /** 35 * Event sent when the app is asked to print a list of files. 36 * 37 * @see PrintFilesHandler#printFiles(PrintFilesEvent) 38 * @since 9 39 */ 40 public final class PrintFilesEvent extends FilesEvent { 41 42 private static final long serialVersionUID = -5752560876153618618L; 43 44 /** 45 * Constructs a {@code PrintFilesEvent}. 46 * 47 * @param files the list of files 48 * @throws HeadlessException if {@link GraphicsEnvironment#isHeadless()} 49 * returns {@code true} 50 * @throws UnsupportedOperationException if Desktop API is not supported on 51 * the current platform 52 * @see Desktop#isDesktopSupported() 53 * @see java.awt.GraphicsEnvironment#isHeadless 54 */ 55 public PrintFilesEvent(final List<File> files) { 56 super(files); 57 } 58 } | 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.awt.desktop; 27 28 import java.awt.Desktop; 29 import java.awt.GraphicsEnvironment; 30 import java.awt.HeadlessException; 31 import java.io.File; 32 import java.util.List; 33 34 /** 35 * Event sent when the app is asked to print a list of files. 36 * 37 * @see PrintFilesHandler#printFiles(PrintFilesEvent) 38 * @since 9 39 */ 40 public final class PrintFilesEvent extends FilesEvent { 41 42 /** 43 * Use serialVersionUID from JDK 9 for interoperability. 44 */ 45 private static final long serialVersionUID = -5752560876153618618L; 46 47 /** 48 * Constructs a {@code PrintFilesEvent}. 49 * 50 * @param files the list of files 51 * @throws HeadlessException if {@link GraphicsEnvironment#isHeadless()} 52 * returns {@code true} 53 * @throws UnsupportedOperationException if Desktop API is not supported on 54 * the current platform 55 * @see Desktop#isDesktopSupported() 56 * @see java.awt.GraphicsEnvironment#isHeadless 57 */ 58 public PrintFilesEvent(final List<File> files) { 59 super(files); 60 } 61 } |