author | serb |
Mon, 31 Aug 2015 16:56:09 +0300 | |
changeset 32493 | 31bd2a308840 |
parent 25859 | 3317bb8137f4 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
22635
da42d49ea2d5
8033181: Fix doclint missing issues in java.awt.{peer, im[.spi]}
darcy
parents:
22260
diff
changeset
|
2 |
* Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 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. |
|
2 | 24 |
*/ |
25 |
||
26 |
package java.awt.peer; |
|
27 |
||
28 |
import java.awt.*; |
|
29 |
||
30 |
/** |
|
1975 | 31 |
* The peer interface for {@link Window}. |
32 |
* |
|
2 | 33 |
* The peer interfaces are intended only for use in porting |
34 |
* the AWT. They are not intended for use by application |
|
35 |
* developers, and developers should not implement peers |
|
36 |
* nor invoke any of the peer methods directly on the peer |
|
37 |
* instances. |
|
38 |
*/ |
|
39 |
public interface WindowPeer extends ContainerPeer { |
|
1975 | 40 |
|
41 |
/** |
|
42 |
* Makes this window the topmost window on the desktop. |
|
43 |
* |
|
44 |
* @see Window#toFront() |
|
45 |
*/ |
|
2 | 46 |
void toFront(); |
1975 | 47 |
|
48 |
/** |
|
49 |
* Makes this window the bottommost window on the desktop. |
|
50 |
* |
|
51 |
* @see Window#toBack() |
|
52 |
*/ |
|
2 | 53 |
void toBack(); |
1975 | 54 |
|
55 |
/** |
|
16892 | 56 |
* Updates the window's always-on-top state. |
57 |
* Sets if the window should always stay |
|
58 |
* on top of all other windows or not. |
|
1975 | 59 |
* |
22260
c9185e010e03
8031082: Fix non-missing doclint problems in client libraries
darcy
parents:
16892
diff
changeset
|
60 |
* @see Window#isAlwaysOnTop() |
1975 | 61 |
* @see Window#setAlwaysOnTop(boolean) |
62 |
*/ |
|
16892 | 63 |
void updateAlwaysOnTopState(); |
1975 | 64 |
|
65 |
/** |
|
66 |
* Updates the window's focusable state. |
|
67 |
* |
|
68 |
* @see Window#setFocusableWindowState(boolean) |
|
69 |
*/ |
|
2 | 70 |
void updateFocusableWindowState(); |
1975 | 71 |
|
72 |
/** |
|
73 |
* Sets if this window is blocked by a modal dialog or not. |
|
74 |
* |
|
75 |
* @param blocker the blocking modal dialog |
|
76 |
* @param blocked {@code true} to block the window, {@code false} |
|
77 |
* to unblock it |
|
78 |
*/ |
|
2 | 79 |
void setModalBlocked(Dialog blocker, boolean blocked); |
1975 | 80 |
|
81 |
/** |
|
82 |
* Updates the minimum size on the peer. |
|
83 |
* |
|
84 |
* @see Window#setMinimumSize(Dimension) |
|
85 |
*/ |
|
2 | 86 |
void updateMinimumSize(); |
1975 | 87 |
|
88 |
/** |
|
89 |
* Updates the icons for the window. |
|
90 |
* |
|
91 |
* @see Window#setIconImages(java.util.List) |
|
92 |
*/ |
|
2 | 93 |
void updateIconImages(); |
2451 | 94 |
|
95 |
/** |
|
96 |
* Sets the level of opacity for the window. |
|
22635
da42d49ea2d5
8033181: Fix doclint missing issues in java.awt.{peer, im[.spi]}
darcy
parents:
22260
diff
changeset
|
97 |
* @param opacity the level of opacity |
2451 | 98 |
* @see Window#setOpacity(float) |
99 |
*/ |
|
100 |
void setOpacity(float opacity); |
|
101 |
||
102 |
/** |
|
103 |
* Enables the per-pixel alpha support for the window. |
|
22635
da42d49ea2d5
8033181: Fix doclint missing issues in java.awt.{peer, im[.spi]}
darcy
parents:
22260
diff
changeset
|
104 |
* @param isOpaque whether or not per-pixel alpha support is |
da42d49ea2d5
8033181: Fix doclint missing issues in java.awt.{peer, im[.spi]}
darcy
parents:
22260
diff
changeset
|
105 |
* enabled |
2451 | 106 |
* @see Window#setBackground(Color) |
107 |
*/ |
|
108 |
void setOpaque(boolean isOpaque); |
|
109 |
||
110 |
/** |
|
2808
a139a919f645
6794764: Translucent windows are completely repainted on every paint event, on Windows
art
parents:
2472
diff
changeset
|
111 |
* Updates the native part of non-opaque window. |
2451 | 112 |
* |
113 |
* @see Window#setBackground(Color) |
|
114 |
*/ |
|
2808
a139a919f645
6794764: Translucent windows are completely repainted on every paint event, on Windows
art
parents:
2472
diff
changeset
|
115 |
void updateWindow(); |
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2451
diff
changeset
|
116 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2451
diff
changeset
|
117 |
/** |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2451
diff
changeset
|
118 |
* Instructs the peer to update the position of the security warning. |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2451
diff
changeset
|
119 |
*/ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2451
diff
changeset
|
120 |
void repositionSecurityWarning(); |
2 | 121 |
} |