equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package java.awt.desktop; |
26 package java.awt.desktop; |
27 |
27 |
|
28 import java.awt.Desktop; |
|
29 import java.awt.GraphicsEnvironment; |
|
30 import java.awt.HeadlessException; |
28 |
31 |
29 /** |
32 /** |
30 * Event sent when the application has been hidden or shown. |
33 * Event sent when the application has been hidden or shown. |
31 * |
34 * |
32 * @see AppHiddenListener#appHidden(AppHiddenEvent) |
35 * @see AppHiddenListener#appHidden(AppHiddenEvent) |
33 * @see AppHiddenListener#appUnhidden(AppHiddenEvent) |
36 * @see AppHiddenListener#appUnhidden(AppHiddenEvent) |
34 * |
37 * |
35 * @since 9 |
38 * @since 9 |
36 */ |
39 */ |
37 public final class AppHiddenEvent extends AppEvent { |
40 public final class AppHiddenEvent extends AppEvent { |
|
41 |
38 private static final long serialVersionUID = 2637465279476429224L; |
42 private static final long serialVersionUID = 2637465279476429224L; |
39 |
43 |
40 /** |
44 /** |
41 * Constructs an {@code AppHiddenEvent} |
45 * Constructs an {@code AppHiddenEvent}. |
|
46 * |
|
47 * @throws HeadlessException if {@link GraphicsEnvironment#isHeadless()} |
|
48 * returns {@code true} |
|
49 * @throws UnsupportedOperationException if Desktop API is not supported on |
|
50 * the current platform |
|
51 * @see Desktop#isDesktopSupported() |
|
52 * @see java.awt.GraphicsEnvironment#isHeadless |
42 */ |
53 */ |
43 public AppHiddenEvent() { |
54 public AppHiddenEvent() { |
44 } |
55 } |
45 |
|
46 } |
56 } |