< prev index next >

src/java.desktop/share/classes/java/awt/peer/DesktopPeer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 22,43 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package java.awt.peer; - import java.io.File; - import java.io.IOException; - import java.net.URI; import java.awt.Desktop.Action; import java.awt.desktop.AboutHandler; - import java.awt.desktop.SystemEventListener; import java.awt.desktop.OpenFilesHandler; import java.awt.desktop.OpenURIHandler; import java.awt.desktop.PreferencesHandler; import java.awt.desktop.PrintFilesHandler; import java.awt.desktop.QuitHandler; import java.awt.desktop.QuitStrategy; import javax.swing.JMenuBar; /** * The {@code DesktopPeer} interface provides methods for the operation * of open, edit, print, browse and mail with the given URL or file, by --- 22,46 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package java.awt.peer; import java.awt.Desktop.Action; import java.awt.desktop.AboutHandler; import java.awt.desktop.OpenFilesHandler; + import java.awt.desktop.OpenURIEvent; import java.awt.desktop.OpenURIHandler; + import java.awt.desktop.PreferencesEvent; import java.awt.desktop.PreferencesHandler; import java.awt.desktop.PrintFilesHandler; import java.awt.desktop.QuitHandler; import java.awt.desktop.QuitStrategy; + import java.awt.desktop.SystemEventListener; + import java.io.File; + import java.io.IOException; + import java.net.URI; + import javax.swing.JMenuBar; /** * The {@code DesktopPeer} interface provides methods for the operation * of open, edit, print, browse and mail with the given URL or file, by
*** 160,170 **** * <p> * Setting the {@link PreferencesHandler} to {@code null} reverts it to * the default behavior * * @param preferencesHandler the handler to respond to the ! * {@link java.awt.desktop.PreferencesHandler#handlePreferences(java.awt.PreferencesEvent) } */ default void setPreferencesHandler(final PreferencesHandler preferencesHandler) { } /** --- 163,173 ---- * <p> * Setting the {@link PreferencesHandler} to {@code null} reverts it to * the default behavior * * @param preferencesHandler the handler to respond to the ! * {@link java.awt.desktop.PreferencesHandler#handlePreferences(PreferencesEvent) } */ default void setPreferencesHandler(final PreferencesHandler preferencesHandler) { } /**
*** 189,199 **** /** * Installs the handler which is notified when the application is asked to * open a URL. * * Setting the handler to {@code null} causes all ! * {@link OpenURIHandler#openURI(AppEvent.OpenURIEvent)} requests to be * enqueued until another handler is set. * * @param openURIHandler handler */ default void setOpenURIHandler(final OpenURIHandler openURIHandler) { --- 192,202 ---- /** * Installs the handler which is notified when the application is asked to * open a URL. * * Setting the handler to {@code null} causes all ! * {@link OpenURIHandler#openURI(OpenURIEvent)} requests to be * enqueued until another handler is set. * * @param openURIHandler handler */ default void setOpenURIHandler(final OpenURIHandler openURIHandler) {
< prev index next >