< prev index next >

src/java.desktop/share/classes/java/awt/desktop/AppEvent.java

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  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.util.EventObject;
  32 
  33 /**
  34  * AppEvents are sent to listeners and handlers installed on the
  35  * {@link java.awt.Desktop} instance of the current desktop context.
  36  *
  37  * @since 9
  38  */
  39 public class AppEvent extends EventObject {
  40 



  41     private static final long serialVersionUID = -5958503993556009432L;
  42 
  43     /**
  44      * Constructs an {@code AppEvent}.
  45      *
  46      * @throws HeadlessException if {@link GraphicsEnvironment#isHeadless()}
  47      *         returns {@code true}
  48      * @throws UnsupportedOperationException if Desktop API is not supported on
  49      *         the current platform
  50      * @see Desktop#isDesktopSupported()
  51      * @see java.awt.GraphicsEnvironment#isHeadless
  52      */
  53     AppEvent() {
  54         super(Desktop.getDesktop());
  55     }
  56 }


  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  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.util.EventObject;
  32 
  33 /**
  34  * AppEvents are sent to listeners and handlers installed on the
  35  * {@link java.awt.Desktop} instance of the current desktop context.
  36  *
  37  * @since 9
  38  */
  39 public class AppEvent extends EventObject {
  40 
  41     /**
  42      * Use serialVersionUID from JDK 9 for interoperability.
  43      */
  44     private static final long serialVersionUID = -5958503993556009432L;
  45 
  46     /**
  47      * Constructs an {@code AppEvent}.
  48      *
  49      * @throws HeadlessException if {@link GraphicsEnvironment#isHeadless()}
  50      *         returns {@code true}
  51      * @throws UnsupportedOperationException if Desktop API is not supported on
  52      *         the current platform
  53      * @see Desktop#isDesktopSupported()
  54      * @see java.awt.GraphicsEnvironment#isHeadless
  55      */
  56     AppEvent() {
  57         super(Desktop.getDesktop());
  58     }
  59 }
< prev index next >