author | tvaleev |
Thu, 04 Oct 2018 12:40:55 -0700 | |
changeset 52248 | 2e330da7cbf4 |
parent 51929 | 0e514f1549b4 |
permissions | -rw-r--r-- |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
1 |
/* |
51929
0e514f1549b4
8210692: The "com.sun.awt.SecurityWarning" class can be dropped
serb
parents:
47510
diff
changeset
|
2 |
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
4 |
* |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
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 |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
10 |
* |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
15 |
* accompanied this code). |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
16 |
* |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
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. |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
24 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
25 |
|
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
26 |
package sun.awt; |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
27 |
|
33674
566777f73c32
8140606: Update library code to use internal Unsafe
chegar
parents:
30470
diff
changeset
|
28 |
import jdk.internal.misc.Unsafe; |
10097
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
29 |
|
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
30 |
import javax.accessibility.AccessibleContext; |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
31 |
import java.awt.*; |
37694
c064aefc5a2f
8080395: consider making sun.awt.CausedFocusEvent functionality public
ssadetsky
parents:
35667
diff
changeset
|
32 |
import java.awt.event.FocusEvent.Cause; |
30470 | 33 |
import java.awt.dnd.DragSourceContext; |
34 |
import java.awt.dnd.DropTargetContext; |
|
35 |
import java.awt.dnd.peer.DragSourceContextPeer; |
|
36 |
import java.awt.dnd.peer.DropTargetContextPeer; |
|
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
37 |
import java.awt.event.AWTEventListener; |
6825 | 38 |
import java.awt.event.InputEvent; |
21246 | 39 |
import java.awt.event.InvocationEvent; |
13604 | 40 |
import java.awt.event.KeyEvent; |
47384
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
41 |
import java.awt.event.MouseEvent; |
2451 | 42 |
import java.awt.geom.Point2D; |
23297 | 43 |
import java.awt.image.BufferStrategy; |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
44 |
import java.awt.peer.ComponentPeer; |
16092 | 45 |
|
30469 | 46 |
import java.awt.peer.MenuComponentPeer; |
16092 | 47 |
import java.lang.reflect.InvocationTargetException; |
8816
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
48 |
import java.security.AccessControlContext; |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
49 |
|
12653
07d5ca30e79e
7124337: [macosx] FileDialog fails to select multiple files
dcherepanov
parents:
12047
diff
changeset
|
50 |
import java.io.File; |
20147
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
51 |
import java.util.ResourceBundle; |
13604 | 52 |
import java.util.Vector; |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
53 |
import javax.accessibility.AccessibleBundle; |
12653
07d5ca30e79e
7124337: [macosx] FileDialog fails to select multiple files
dcherepanov
parents:
12047
diff
changeset
|
54 |
|
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
55 |
/** |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
56 |
* The AWTAccessor utility class. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
57 |
* The main purpose of this class is to enable accessing |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
58 |
* private and package-private fields of classes from |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
59 |
* different classes/packages. See sun.misc.SharedSecretes |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
60 |
* for another example. |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
61 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
62 |
public final class AWTAccessor { |
2451 | 63 |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
64 |
private static final Unsafe unsafe = Unsafe.getUnsafe(); |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
65 |
|
2451 | 66 |
/* |
67 |
* We don't need any objects of this class. |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
68 |
* It's rather a collection of static methods |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
69 |
* and interfaces. |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
70 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
71 |
private AWTAccessor() { |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
72 |
} |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
73 |
|
2451 | 74 |
/* |
75 |
* An interface of accessor for the java.awt.Component class. |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
76 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
77 |
public interface ComponentAccessor { |
2451 | 78 |
/* |
79 |
* Sets whether the native background erase for a component |
|
80 |
* has been disabled via SunToolkit.disableBackgroundErase(). |
|
81 |
*/ |
|
82 |
void setBackgroundEraseDisabled(Component comp, boolean disabled); |
|
83 |
/* |
|
84 |
* Indicates whether the native background erase for a |
|
85 |
* component has been disabled via |
|
86 |
* SunToolkit.disableBackgroundErase(). |
|
87 |
*/ |
|
88 |
boolean getBackgroundEraseDisabled(Component comp); |
|
89 |
/* |
|
90 |
* |
|
91 |
* Gets the bounds of this component in the form of a |
|
35667 | 92 |
* {@code Rectangle} object. The bounds specify this |
2451 | 93 |
* component's width, height, and location relative to |
94 |
* its parent. |
|
95 |
*/ |
|
96 |
Rectangle getBounds(Component comp); |
|
2459
08f3416ff334
6804747: Ensure consistent graphicsConfig member across components hierarchy
anthony
parents:
2453
diff
changeset
|
97 |
|
08f3416ff334
6804747: Ensure consistent graphicsConfig member across components hierarchy
anthony
parents:
2453
diff
changeset
|
98 |
/** |
08f3416ff334
6804747: Ensure consistent graphicsConfig member across components hierarchy
anthony
parents:
2453
diff
changeset
|
99 |
* Sets GraphicsConfiguration value for the component. |
08f3416ff334
6804747: Ensure consistent graphicsConfig member across components hierarchy
anthony
parents:
2453
diff
changeset
|
100 |
*/ |
08f3416ff334
6804747: Ensure consistent graphicsConfig member across components hierarchy
anthony
parents:
2453
diff
changeset
|
101 |
void setGraphicsConfiguration(Component comp, GraphicsConfiguration gc); |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
102 |
/* |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
103 |
* Requests focus to the component. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
104 |
*/ |
41805
d30817604de5
8154434: Open the request focus methods of the java.awt.Component which accept FocusEvent.Cause
ssadetsky
parents:
40719
diff
changeset
|
105 |
void requestFocus(Component comp, Cause cause); |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
106 |
/* |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
107 |
* Determines if the component can gain focus. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
108 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
109 |
boolean canBeFocusOwner(Component comp); |
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
110 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
111 |
/** |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
112 |
* Returns whether the component is visible without invoking |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
113 |
* any client code. |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
114 |
*/ |
4371
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
115 |
boolean isVisible(Component comp); |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
116 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
117 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
118 |
* Sets the RequestFocusController. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
119 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
120 |
void setRequestFocusController(RequestFocusController requestController); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
121 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
122 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
123 |
* Returns the appContext of the component. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
124 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
125 |
AppContext getAppContext(Component comp); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
126 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
127 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
128 |
* Sets the appContext of the component. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
129 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
130 |
void setAppContext(Component comp, AppContext appContext); |
4371
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
131 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
132 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
133 |
* Returns the parent of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
134 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
135 |
Container getParent(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
136 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
137 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
138 |
* Sets the parent of the component to the specified parent. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
139 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
140 |
void setParent(Component comp, Container parent); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
141 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
142 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
143 |
* Resizes the component to the specified width and height. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
144 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
145 |
void setSize(Component comp, int width, int height); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
146 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
147 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
148 |
* Returns the location of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
149 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
150 |
Point getLocation(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
151 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
152 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
153 |
* Moves the component to the new location. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
154 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
155 |
void setLocation(Component comp, int x, int y); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
156 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
157 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
158 |
* Determines whether this component is enabled. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
159 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
160 |
boolean isEnabled(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
161 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
162 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
163 |
* Determines whether this component is displayable. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
164 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
165 |
boolean isDisplayable(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
166 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
167 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
168 |
* Gets the cursor set in the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
169 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
170 |
Cursor getCursor(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
171 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
172 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
173 |
* Returns the peer of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
174 |
*/ |
30469 | 175 |
<T extends ComponentPeer> T getPeer(Component comp); |
4371
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
176 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
177 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
178 |
* Sets the peer of the component to the specified peer. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
179 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
180 |
void setPeer(Component comp, ComponentPeer peer); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
181 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
182 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
183 |
* Determines whether this component is lightweight. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
184 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
185 |
boolean isLightweight(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
186 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
187 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
188 |
* Returns whether or not paint messages received from |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
189 |
* the operating system should be ignored. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
190 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
191 |
boolean getIgnoreRepaint(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
192 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
193 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
194 |
* Returns the width of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
195 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
196 |
int getWidth(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
197 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
198 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
199 |
* Returns the height of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
200 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
201 |
int getHeight(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
202 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
203 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
204 |
* Returns the x coordinate of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
205 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
206 |
int getX(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
207 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
208 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
209 |
* Returns the y coordinate of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
210 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
211 |
int getY(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
212 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
213 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
214 |
* Gets the foreground color of this component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
215 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
216 |
Color getForeground(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
217 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
218 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
219 |
* Gets the background color of this component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
220 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
221 |
Color getBackground(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
222 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
223 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
224 |
* Sets the background of this component to the specified color. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
225 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
226 |
void setBackground(Component comp, Color background); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
227 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
228 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
229 |
* Gets the font of the component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
230 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
231 |
Font getFont(Component comp); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
232 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
233 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
234 |
* Processes events occurring on this component. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
235 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
236 |
void processEvent(Component comp, AWTEvent e); |
8816
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
237 |
|
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
238 |
|
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
239 |
/* |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
240 |
* Returns the acc this component was constructed with. |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
241 |
*/ |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
242 |
AccessControlContext getAccessControlContext(Component comp); |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
243 |
|
20097
a4a07c4ead5f
8023474: First mousepress doesn't start editing in JTree
dmarkov
parents:
17899
diff
changeset
|
244 |
/** |
a4a07c4ead5f
8023474: First mousepress doesn't start editing in JTree
dmarkov
parents:
17899
diff
changeset
|
245 |
* Revalidates the component synchronously. |
a4a07c4ead5f
8023474: First mousepress doesn't start editing in JTree
dmarkov
parents:
17899
diff
changeset
|
246 |
*/ |
a4a07c4ead5f
8023474: First mousepress doesn't start editing in JTree
dmarkov
parents:
17899
diff
changeset
|
247 |
void revalidateSynchronously(Component comp); |
a4a07c4ead5f
8023474: First mousepress doesn't start editing in JTree
dmarkov
parents:
17899
diff
changeset
|
248 |
|
23297 | 249 |
/** |
250 |
* Creates a new strategy for multi-buffering on this component. |
|
251 |
*/ |
|
252 |
void createBufferStrategy(Component comp, int numBuffers, |
|
253 |
BufferCapabilities caps) throws AWTException; |
|
254 |
||
255 |
/** |
|
256 |
* returns the buffer strategy used by this component. |
|
257 |
*/ |
|
258 |
BufferStrategy getBufferStrategy(Component comp); |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
259 |
} |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
260 |
|
2451 | 261 |
/* |
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
262 |
* An interface of accessor for the java.awt.Container class. |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
263 |
*/ |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
264 |
public interface ContainerAccessor { |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
265 |
/** |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
266 |
* Validates the container unconditionally. |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
267 |
*/ |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
268 |
void validateUnconditionally(Container cont); |
20165
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
269 |
|
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
270 |
/** |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
271 |
* |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
272 |
* Access to the private version of findComponentAt method which has |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
273 |
* a controllable behavior. Setting 'ignoreEnabled' to 'false' |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
274 |
* bypasses disabled Components during the search. |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
275 |
*/ |
75e673bbdba6
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
alexsch
parents:
20147
diff
changeset
|
276 |
Component findComponentAt(Container cont, int x, int y, boolean ignoreEnabled); |
24147 | 277 |
|
278 |
/** |
|
279 |
* Starts LW Modal. |
|
280 |
*/ |
|
281 |
void startLWModal(Container cont); |
|
282 |
||
283 |
/** |
|
284 |
* Starts LW Modal. |
|
285 |
*/ |
|
286 |
void stopLWModal(Container cont); |
|
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
287 |
} |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
288 |
|
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
289 |
/* |
2451 | 290 |
* An interface of accessor for java.awt.Window class. |
291 |
*/ |
|
292 |
public interface WindowAccessor { |
|
293 |
/* |
|
294 |
* Update the image of a non-opaque (translucent) window. |
|
295 |
*/ |
|
2808
a139a919f645
6794764: Translucent windows are completely repainted on every paint event, on Windows
art
parents:
2472
diff
changeset
|
296 |
void updateWindow(Window window); |
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
297 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
298 |
/** |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
299 |
* Set the size of the security warning. |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
300 |
*/ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
301 |
void setSecurityWarningSize(Window w, int width, int height); |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
302 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
303 |
/** Request to recalculate the new position of the security warning for |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
304 |
* the given window size/location as reported by the native system. |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
305 |
*/ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
306 |
Point2D calculateSecurityWarningPosition(Window window, |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2465
diff
changeset
|
307 |
double x, double y, double w, double h); |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
308 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
309 |
/** Sets the synchronous status of focus requests on lightweight |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
310 |
* components in the specified window to the specified value. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
311 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
312 |
void setLWRequestStatus(Window changed, boolean status); |
4371
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
313 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
314 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
315 |
* Indicates whether this window should receive focus on subsequently |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
316 |
* being shown, or being moved to the front. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
317 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
318 |
boolean isAutoRequestFocus(Window w); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
319 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
320 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
321 |
* Indicates whether the specified window is an utility window for TrayIcon. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
322 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
323 |
boolean isTrayIconWindow(Window w); |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
324 |
|
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
325 |
/** |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
326 |
* Marks the specified window as an utility window for TrayIcon. |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
327 |
*/ |
dc9dcb8b0ae7
6823138: Need to replace ComponentAccessor with AWTAccessor
dcherepanov
parents:
4365
diff
changeset
|
328 |
void setTrayIconWindow(Window w, boolean isTrayIconWindow); |
42731
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
329 |
|
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
330 |
/** |
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
331 |
* Return an array containing all the windows this |
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
332 |
* window currently owns. |
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
333 |
*/ |
631236c16dff
8169589: [macosx] Activating a JDialog puts to back another dialog
dmarkov
parents:
41805
diff
changeset
|
334 |
Window[] getOwnedWindows(Window w); |
2451 | 335 |
} |
336 |
||
13604 | 337 |
/** |
2451 | 338 |
* An accessor for the AWTEvent class. |
339 |
*/ |
|
340 |
public interface AWTEventAccessor { |
|
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
341 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
342 |
* Marks the event as posted. |
2451 | 343 |
*/ |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
344 |
void setPosted(AWTEvent ev); |
6826
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
345 |
|
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
346 |
/** |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
347 |
* Sets the flag on this AWTEvent indicating that it was |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
348 |
* generated by the system. |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
349 |
*/ |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
350 |
void setSystemGenerated(AWTEvent ev); |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
351 |
|
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
352 |
/** |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
353 |
* Indicates whether this AWTEvent was generated by the system. |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
354 |
*/ |
1fc6a05552f2
6991992: Need to forward-port AWT's part of the fix for 6691674
dcherepanov
parents:
6825
diff
changeset
|
355 |
boolean isSystemGenerated(AWTEvent ev); |
8816
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
356 |
|
13604 | 357 |
/** |
8816
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
358 |
* Returns the acc this event was constructed with. |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
359 |
*/ |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
360 |
AccessControlContext getAccessControlContext(AWTEvent ev); |
29f983feda95
6907662: System clipboard should ensure access restrictions
denis
parents:
7668
diff
changeset
|
361 |
|
13604 | 362 |
/** |
363 |
* Returns binary data associated with this event; |
|
364 |
*/ |
|
365 |
byte[] getBData(AWTEvent ev); |
|
366 |
||
367 |
/** |
|
368 |
* Associates binary data with this event; |
|
369 |
*/ |
|
370 |
void setBData(AWTEvent ev, byte[] bdata); |
|
2451 | 371 |
} |
372 |
||
6825 | 373 |
public interface InputEventAccessor { |
374 |
/* |
|
375 |
* Accessor for InputEvent.getButtonDownMasks() |
|
376 |
*/ |
|
377 |
int[] getButtonDownMasks(); |
|
23297 | 378 |
|
379 |
/* |
|
380 |
* Accessor for InputEvent.canAccessSystemClipboard field |
|
381 |
*/ |
|
382 |
boolean canAccessSystemClipboard(InputEvent event); |
|
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
383 |
void setCanAccessSystemClipboard(InputEvent event, |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
384 |
boolean canAccessSystemClipboard); |
6825 | 385 |
} |
386 |
||
47384
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
387 |
/** |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
388 |
* An accessor for the MouseEvent class. |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
389 |
*/ |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
390 |
public interface MouseEventAccessor { |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
391 |
/** |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
392 |
* Indicates whether the event is a result of a touch event. |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
393 |
*/ |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
394 |
boolean isCausedByTouchEvent(MouseEvent ev); |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
395 |
|
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
396 |
/** |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
397 |
* Sets whether the event is a result of a touch event. |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
398 |
*/ |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
399 |
void setCausedByTouchEvent(MouseEvent ev, boolean causedByTouchEvent); |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
400 |
} |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
401 |
|
2451 | 402 |
/* |
2453
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
403 |
* An accessor for the java.awt.Frame class. |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
404 |
*/ |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
405 |
public interface FrameAccessor { |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
406 |
/* |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
407 |
* Sets the state of this frame. |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
408 |
*/ |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
409 |
void setExtendedState(Frame frame, int state); |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
410 |
/* |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
411 |
* Gets the state of this frame. |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
412 |
*/ |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
413 |
int getExtendedState(Frame frame); |
7239
514eb274caa1
6699851: setMaximizedbounds not working properly on dual screen environment
dcherepanov
parents:
6826
diff
changeset
|
414 |
/* |
514eb274caa1
6699851: setMaximizedbounds not working properly on dual screen environment
dcherepanov
parents:
6826
diff
changeset
|
415 |
* Gets the maximized bounds of this frame. |
514eb274caa1
6699851: setMaximizedbounds not working properly on dual screen environment
dcherepanov
parents:
6826
diff
changeset
|
416 |
*/ |
514eb274caa1
6699851: setMaximizedbounds not working properly on dual screen environment
dcherepanov
parents:
6826
diff
changeset
|
417 |
Rectangle getMaximizedBounds(Frame frame); |
2453
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
418 |
} |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
419 |
|
13604 | 420 |
/** |
2465 | 421 |
* An interface of accessor for the java.awt.KeyboardFocusManager class. |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
422 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
423 |
public interface KeyboardFocusManagerAccessor { |
13604 | 424 |
/** |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
425 |
* Indicates whether the native implementation should |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
426 |
* proceed with a pending focus request for the heavyweight. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
427 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
428 |
int shouldNativelyFocusHeavyweight(Component heavyweight, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
429 |
Component descendant, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
430 |
boolean temporary, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
431 |
boolean focusedWindowChangeAllowed, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
432 |
long time, |
37694
c064aefc5a2f
8080395: consider making sun.awt.CausedFocusEvent functionality public
ssadetsky
parents:
35667
diff
changeset
|
433 |
Cause cause); |
13604 | 434 |
/** |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
435 |
* Delivers focus for the lightweight descendant of the heavyweight |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
436 |
* synchronously. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
437 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
438 |
boolean processSynchronousLightweightTransfer(Component heavyweight, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
439 |
Component descendant, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
440 |
boolean temporary, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
441 |
boolean focusedWindowChangeAllowed, |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
442 |
long time); |
13604 | 443 |
/** |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
444 |
* Removes the last focus request for the heavyweight from the queue. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
445 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
446 |
void removeLastFocusRequest(Component heavyweight); |
6634
439221465ac5
6505819: Provide traverseIn method for sun.awt.EmbeddedFrame
ant
parents:
5506
diff
changeset
|
447 |
|
13604 | 448 |
/** |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
449 |
* Gets the most recent focus owner in the window. |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
450 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
451 |
Component getMostRecentFocusOwner(Window window); |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
452 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
453 |
/** |
6634
439221465ac5
6505819: Provide traverseIn method for sun.awt.EmbeddedFrame
ant
parents:
5506
diff
changeset
|
454 |
* Sets the most recent focus owner in the window. |
439221465ac5
6505819: Provide traverseIn method for sun.awt.EmbeddedFrame
ant
parents:
5506
diff
changeset
|
455 |
*/ |
439221465ac5
6505819: Provide traverseIn method for sun.awt.EmbeddedFrame
ant
parents:
5506
diff
changeset
|
456 |
void setMostRecentFocusOwner(Window window, Component component); |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10097
diff
changeset
|
457 |
|
13604 | 458 |
/** |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10097
diff
changeset
|
459 |
* Returns current KFM of the specified AppContext. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10097
diff
changeset
|
460 |
*/ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10097
diff
changeset
|
461 |
KeyboardFocusManager getCurrentKeyboardFocusManager(AppContext ctx); |
13604 | 462 |
|
463 |
/** |
|
464 |
* Return the current focus cycle root |
|
465 |
*/ |
|
466 |
Container getCurrentFocusCycleRoot(); |
|
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
467 |
} |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
468 |
|
13604 | 469 |
/** |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
470 |
* An accessor for the MenuComponent class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
471 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
472 |
public interface MenuComponentAccessor { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
473 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
474 |
* Returns the appContext of the menu component. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
475 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
476 |
AppContext getAppContext(MenuComponent menuComp); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
477 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
478 |
/** |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
479 |
* Sets the appContext of the menu component. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
480 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
481 |
void setAppContext(MenuComponent menuComp, AppContext appContext); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
482 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
483 |
/** |
30469 | 484 |
* Returns the peer of the menu component. |
485 |
*/ |
|
486 |
<T extends MenuComponentPeer> T getPeer(MenuComponent menuComp); |
|
487 |
||
488 |
/** |
|
25764 | 489 |
* Returns the menu container of the menu component. |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
490 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
491 |
MenuContainer getParent(MenuComponent menuComp); |
13604 | 492 |
|
493 |
/** |
|
25764 | 494 |
* Sets the menu container of the menu component. |
495 |
*/ |
|
496 |
void setParent(MenuComponent menuComp, MenuContainer menuContainer); |
|
497 |
||
498 |
/** |
|
13604 | 499 |
* Gets the font used for this menu component. |
500 |
*/ |
|
501 |
Font getFont_NoClientCode(MenuComponent menuComp); |
|
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
502 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
503 |
|
13604 | 504 |
/** |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
505 |
* An accessor for the EventQueue class |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
506 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
507 |
public interface EventQueueAccessor { |
13604 | 508 |
/** |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
509 |
* Gets the event dispatch thread. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
510 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
511 |
Thread getDispatchThread(EventQueue eventQueue); |
13604 | 512 |
|
513 |
/** |
|
4365 | 514 |
* Checks if the current thread is EDT for the given EQ. |
515 |
*/ |
|
516 |
public boolean isDispatchThreadImpl(EventQueue eventQueue); |
|
13604 | 517 |
|
518 |
/** |
|
519 |
* Removes any pending events for the specified source object. |
|
520 |
*/ |
|
521 |
void removeSourceEvents(EventQueue eventQueue, Object source, boolean removeAllEvents); |
|
522 |
||
523 |
/** |
|
524 |
* Returns whether an event is pending on any of the separate Queues. |
|
525 |
*/ |
|
526 |
boolean noEvents(EventQueue eventQueue); |
|
527 |
||
528 |
/** |
|
529 |
* Called from PostEventQueue.postEvent to notify that a new event |
|
530 |
* appeared. |
|
531 |
*/ |
|
532 |
void wakeup(EventQueue eventQueue, boolean isShutdown); |
|
16092 | 533 |
|
534 |
/** |
|
535 |
* Static in EventQueue |
|
536 |
*/ |
|
537 |
void invokeAndWait(Object source, Runnable r) |
|
538 |
throws InterruptedException, InvocationTargetException; |
|
17899 | 539 |
|
540 |
/** |
|
541 |
* Sets the delegate for the EventQueue used by FX/AWT single threaded mode |
|
542 |
*/ |
|
25133
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
543 |
void setFwDispatcher(EventQueue eventQueue, FwDispatcher dispatcher); |
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
544 |
|
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
545 |
/** |
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
546 |
* Gets most recent event time in the EventQueue |
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
547 |
*/ |
a327a33a1e0a
8041990: [macosx] Language specific keys does not work in applets when opened outside the browser
pchelko
parents:
24538
diff
changeset
|
548 |
long getMostRecentEventTime(EventQueue eventQueue); |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
549 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
550 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
551 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
552 |
* An accessor for the PopupMenu class |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
553 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
554 |
public interface PopupMenuAccessor { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
555 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
556 |
* Returns whether the popup menu is attached to a tray |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
557 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
558 |
boolean isTrayIconPopup(PopupMenu popupMenu); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
559 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
560 |
|
4913
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
561 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
562 |
* An accessor for the FileDialog class |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
563 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
564 |
public interface FileDialogAccessor { |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
565 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
566 |
* Sets the files the user selects |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
567 |
*/ |
52248
2e330da7cbf4
8211300: Convert C-style array declarations in JDK client code
tvaleev
parents:
51929
diff
changeset
|
568 |
void setFiles(FileDialog fileDialog, File[] files); |
4913
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
569 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
570 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
571 |
* Sets the file the user selects |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
572 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
573 |
void setFile(FileDialog fileDialog, String file); |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
574 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
575 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
576 |
* Sets the directory the user selects |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
577 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
578 |
void setDirectory(FileDialog fileDialog, String directory); |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
579 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
580 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
581 |
* Returns whether the file dialog allows the multiple file selection. |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
582 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
583 |
boolean isMultipleMode(FileDialog fileDialog); |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
584 |
} |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
585 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
586 |
/* |
10097
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
587 |
* An accessor for the ScrollPaneAdjustable class. |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
588 |
*/ |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
589 |
public interface ScrollPaneAdjustableAccessor { |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
590 |
/* |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
591 |
* Sets the value of this scrollbar to the specified value. |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
592 |
*/ |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
593 |
void setTypedValue(final ScrollPaneAdjustable adj, final int v, |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
594 |
final int type); |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
595 |
} |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
596 |
|
13604 | 597 |
/** |
598 |
* An accessor for the CheckboxMenuItem class |
|
599 |
*/ |
|
600 |
public interface CheckboxMenuItemAccessor { |
|
601 |
/** |
|
602 |
* Returns whether menu item is checked |
|
603 |
*/ |
|
604 |
boolean getState(CheckboxMenuItem cmi); |
|
605 |
} |
|
606 |
||
607 |
/** |
|
608 |
* An accessor for the Cursor class |
|
609 |
*/ |
|
610 |
public interface CursorAccessor { |
|
611 |
/** |
|
612 |
* Returns pData of the Cursor class |
|
613 |
*/ |
|
614 |
long getPData(Cursor cursor); |
|
615 |
||
616 |
/** |
|
617 |
* Sets pData to the Cursor class |
|
618 |
*/ |
|
619 |
void setPData(Cursor cursor, long pData); |
|
620 |
||
621 |
/** |
|
622 |
* Return type of the Cursor class |
|
623 |
*/ |
|
624 |
int getType(Cursor cursor); |
|
625 |
} |
|
626 |
||
627 |
/** |
|
628 |
* An accessor for the MenuBar class |
|
629 |
*/ |
|
630 |
public interface MenuBarAccessor { |
|
631 |
/** |
|
632 |
* Returns help menu |
|
633 |
*/ |
|
634 |
Menu getHelpMenu(MenuBar menuBar); |
|
635 |
||
636 |
/** |
|
637 |
* Returns menus |
|
638 |
*/ |
|
24538
25bf8153fbfe
8039642: Fix raw and unchecked warnings in sun.awt.*
henryjen
parents:
24523
diff
changeset
|
639 |
Vector<Menu> getMenus(MenuBar menuBar); |
13604 | 640 |
} |
641 |
||
642 |
/** |
|
643 |
* An accessor for the MenuItem class |
|
644 |
*/ |
|
645 |
public interface MenuItemAccessor { |
|
646 |
/** |
|
647 |
* Returns whether menu item is enabled |
|
648 |
*/ |
|
649 |
boolean isEnabled(MenuItem item); |
|
650 |
||
651 |
/** |
|
652 |
* Gets the command name of the action event that is fired |
|
653 |
* by this menu item. |
|
654 |
*/ |
|
655 |
String getActionCommandImpl(MenuItem item); |
|
656 |
||
657 |
/** |
|
658 |
* Returns true if the item and all its ancestors are |
|
659 |
* enabled, false otherwise |
|
660 |
*/ |
|
661 |
boolean isItemEnabled(MenuItem item); |
|
662 |
||
663 |
/** |
|
664 |
* Returns label |
|
665 |
*/ |
|
666 |
String getLabel(MenuItem item); |
|
667 |
||
668 |
/** |
|
669 |
* Returns shortcut |
|
670 |
*/ |
|
671 |
MenuShortcut getShortcut(MenuItem item); |
|
672 |
} |
|
673 |
||
674 |
/** |
|
675 |
* An accessor for the Menu class |
|
676 |
*/ |
|
677 |
public interface MenuAccessor { |
|
678 |
/** |
|
679 |
* Returns vector of the items that are part of the Menu |
|
680 |
*/ |
|
24538
25bf8153fbfe
8039642: Fix raw and unchecked warnings in sun.awt.*
henryjen
parents:
24523
diff
changeset
|
681 |
Vector<MenuItem> getItems(Menu menu); |
13604 | 682 |
} |
683 |
||
684 |
/** |
|
685 |
* An accessor for the KeyEvent class |
|
686 |
*/ |
|
687 |
public interface KeyEventAccessor { |
|
688 |
/** |
|
689 |
* Sets rawCode field for KeyEvent |
|
690 |
*/ |
|
691 |
void setRawCode(KeyEvent ev, long rawCode); |
|
692 |
||
693 |
/** |
|
694 |
* Sets primaryLevelUnicode field for KeyEvent |
|
695 |
*/ |
|
696 |
void setPrimaryLevelUnicode(KeyEvent ev, long primaryLevelUnicode); |
|
697 |
||
698 |
/** |
|
699 |
* Sets extendedKeyCode field for KeyEvent |
|
700 |
*/ |
|
701 |
void setExtendedKeyCode(KeyEvent ev, long extendedKeyCode); |
|
14310
708173457cc0
8001633: Wrong alt processing during switching between windows.
alexp
parents:
13656
diff
changeset
|
702 |
|
708173457cc0
8001633: Wrong alt processing during switching between windows.
alexp
parents:
13656
diff
changeset
|
703 |
/** |
708173457cc0
8001633: Wrong alt processing during switching between windows.
alexp
parents:
13656
diff
changeset
|
704 |
* Gets original source for KeyEvent |
708173457cc0
8001633: Wrong alt processing during switching between windows.
alexp
parents:
13656
diff
changeset
|
705 |
*/ |
708173457cc0
8001633: Wrong alt processing during switching between windows.
alexp
parents:
13656
diff
changeset
|
706 |
Component getOriginalSource(KeyEvent ev); |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
707 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
708 |
/** |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
709 |
* Gets isProxyActive field for KeyEvent |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
710 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
711 |
boolean isProxyActive(KeyEvent ev); |
13604 | 712 |
} |
713 |
||
714 |
/** |
|
715 |
* An accessor for the ClientPropertyKey class |
|
716 |
*/ |
|
717 |
public interface ClientPropertyKeyAccessor { |
|
718 |
/** |
|
719 |
* Retrieves JComponent_TRANSFER_HANDLER enum object |
|
720 |
*/ |
|
721 |
Object getJComponent_TRANSFER_HANDLER(); |
|
722 |
} |
|
723 |
||
724 |
/** |
|
725 |
* An accessor for the SystemTray class |
|
726 |
*/ |
|
727 |
public interface SystemTrayAccessor { |
|
728 |
/** |
|
729 |
* Support for reporting bound property changes for Object properties. |
|
730 |
*/ |
|
731 |
void firePropertyChange(SystemTray tray, String propertyName, Object oldValue, Object newValue); |
|
732 |
} |
|
733 |
||
734 |
/** |
|
735 |
* An accessor for the TrayIcon class |
|
736 |
*/ |
|
737 |
public interface TrayIconAccessor { |
|
738 |
void addNotify(TrayIcon trayIcon) throws AWTException; |
|
739 |
void removeNotify(TrayIcon trayIcon); |
|
740 |
} |
|
741 |
||
742 |
/** |
|
743 |
* An accessor for the DefaultKeyboardFocusManager class |
|
744 |
*/ |
|
745 |
public interface DefaultKeyboardFocusManagerAccessor { |
|
746 |
public void consumeNextKeyTyped(DefaultKeyboardFocusManager dkfm, KeyEvent e); |
|
747 |
} |
|
748 |
||
10097
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
749 |
/* |
13652
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
750 |
* An accessor for the SequencedEventAccessor class |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
751 |
*/ |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
752 |
public interface SequencedEventAccessor { |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
753 |
/* |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
754 |
* Returns the nested event. |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
755 |
*/ |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
756 |
AWTEvent getNested(AWTEvent sequencedEvent); |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
757 |
|
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
758 |
/* |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
759 |
* Returns true if the event is an instances of SequencedEvent. |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
760 |
*/ |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
761 |
boolean isSequencedEvent(AWTEvent event); |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
762 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
763 |
/* |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
764 |
* Creates SequencedEvent with the given nested event |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
765 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
766 |
AWTEvent create(AWTEvent event); |
13652
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
767 |
} |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
768 |
|
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
769 |
/* |
20147
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
770 |
* An accessor for the Toolkit class |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
771 |
*/ |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
772 |
public interface ToolkitAccessor { |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
773 |
void setPlatformResources(ResourceBundle bundle); |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
774 |
} |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
775 |
|
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
776 |
/* |
21246 | 777 |
* An accessor object for the InvocationEvent class |
778 |
*/ |
|
779 |
public interface InvocationEventAccessor { |
|
780 |
void dispose(InvocationEvent event); |
|
781 |
} |
|
782 |
||
783 |
/* |
|
23268 | 784 |
* An accessor object for the SystemColor class |
785 |
*/ |
|
786 |
public interface SystemColorAccessor { |
|
787 |
void updateSystemColors(); |
|
788 |
} |
|
789 |
||
790 |
/* |
|
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
791 |
* An accessor object for the AccessibleContext class |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
792 |
*/ |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
793 |
public interface AccessibleContextAccessor { |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
794 |
void setAppContext(AccessibleContext accessibleContext, AppContext appContext); |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
795 |
AppContext getAppContext(AccessibleContext accessibleContext); |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
796 |
Object getNativeAXResource(AccessibleContext accessibleContext); |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
797 |
void setNativeAXResource(AccessibleContext accessibleContext, Object value); |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
798 |
} |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
799 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
800 |
/* |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
801 |
* An accessor object for the AccessibleContext class |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
802 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
803 |
public interface AccessibleBundleAccessor { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
804 |
String getKey(AccessibleBundle accessibleBundle); |
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
805 |
} |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
806 |
|
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
807 |
/* |
30470 | 808 |
* An accessor object for the DragSourceContext class |
809 |
*/ |
|
810 |
public interface DragSourceContextAccessor { |
|
811 |
/** |
|
812 |
* Returns the peer of the DragSourceContext. |
|
813 |
*/ |
|
814 |
DragSourceContextPeer getPeer(DragSourceContext dsc); |
|
815 |
} |
|
816 |
||
817 |
/* |
|
818 |
* An accessor object for the DropTargetContext class |
|
819 |
*/ |
|
820 |
public interface DropTargetContextAccessor { |
|
821 |
/** |
|
822 |
* Resets the DropTargetContext. |
|
823 |
*/ |
|
824 |
void reset(DropTargetContext dtc); |
|
825 |
/** |
|
826 |
* Sets the {@code DropTargetContextPeer} |
|
827 |
*/ |
|
828 |
void setDropTargetContextPeer(DropTargetContext dtc, |
|
829 |
DropTargetContextPeer dtcp); |
|
830 |
} |
|
831 |
||
832 |
/* |
|
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
833 |
* Accessor instances are initialized in the static initializers of |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
834 |
* corresponding AWT classes by using setters defined below. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
835 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
836 |
private static ComponentAccessor componentAccessor; |
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
837 |
private static ContainerAccessor containerAccessor; |
2451 | 838 |
private static WindowAccessor windowAccessor; |
839 |
private static AWTEventAccessor awtEventAccessor; |
|
6825 | 840 |
private static InputEventAccessor inputEventAccessor; |
47384
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
841 |
private static MouseEventAccessor mouseEventAccessor; |
2453
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
842 |
private static FrameAccessor frameAccessor; |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
843 |
private static KeyboardFocusManagerAccessor kfmAccessor; |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
844 |
private static MenuComponentAccessor menuComponentAccessor; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
845 |
private static EventQueueAccessor eventQueueAccessor; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
846 |
private static PopupMenuAccessor popupMenuAccessor; |
4913
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
847 |
private static FileDialogAccessor fileDialogAccessor; |
10097
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
848 |
private static ScrollPaneAdjustableAccessor scrollPaneAdjustableAccessor; |
13604 | 849 |
private static CheckboxMenuItemAccessor checkboxMenuItemAccessor; |
850 |
private static CursorAccessor cursorAccessor; |
|
851 |
private static MenuBarAccessor menuBarAccessor; |
|
852 |
private static MenuItemAccessor menuItemAccessor; |
|
853 |
private static MenuAccessor menuAccessor; |
|
854 |
private static KeyEventAccessor keyEventAccessor; |
|
855 |
private static ClientPropertyKeyAccessor clientPropertyKeyAccessor; |
|
856 |
private static SystemTrayAccessor systemTrayAccessor; |
|
857 |
private static TrayIconAccessor trayIconAccessor; |
|
858 |
private static DefaultKeyboardFocusManagerAccessor defaultKeyboardFocusManagerAccessor; |
|
13652
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
859 |
private static SequencedEventAccessor sequencedEventAccessor; |
20147
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
860 |
private static ToolkitAccessor toolkitAccessor; |
21246 | 861 |
private static InvocationEventAccessor invocationEventAccessor; |
23268 | 862 |
private static SystemColorAccessor systemColorAccessor; |
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
863 |
private static AccessibleContextAccessor accessibleContextAccessor; |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
864 |
private static AccessibleBundleAccessor accessibleBundleAccessor; |
30470 | 865 |
private static DragSourceContextAccessor dragSourceContextAccessor; |
866 |
private static DropTargetContextAccessor dropTargetContextAccessor; |
|
4913
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
867 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
868 |
/* |
2451 | 869 |
* Set an accessor object for the java.awt.Component class. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
870 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
871 |
public static void setComponentAccessor(ComponentAccessor ca) { |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
872 |
componentAccessor = ca; |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
873 |
} |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
874 |
|
2451 | 875 |
/* |
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
876 |
* Retrieve the accessor object for the java.awt.Component class. |
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
877 |
*/ |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
878 |
public static ComponentAccessor getComponentAccessor() { |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
879 |
if (componentAccessor == null) { |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
880 |
unsafe.ensureClassInitialized(Component.class); |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
881 |
} |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
882 |
|
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
883 |
return componentAccessor; |
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
diff
changeset
|
884 |
} |
2451 | 885 |
|
886 |
/* |
|
7241
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
887 |
* Set an accessor object for the java.awt.Container class. |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
888 |
*/ |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
889 |
public static void setContainerAccessor(ContainerAccessor ca) { |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
890 |
containerAccessor = ca; |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
891 |
} |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
892 |
|
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
893 |
/* |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
894 |
* Retrieve the accessor object for the java.awt.Container class. |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
895 |
*/ |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
896 |
public static ContainerAccessor getContainerAccessor() { |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
897 |
if (containerAccessor == null) { |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
898 |
unsafe.ensureClassInitialized(Container.class); |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
899 |
} |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
900 |
|
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
901 |
return containerAccessor; |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
902 |
} |
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
903 |
|
ed85b6040a98
7002856: Provide an accessor for Container.validateUnconditionally()
anthony
parents:
7239
diff
changeset
|
904 |
/* |
2451 | 905 |
* Set an accessor object for the java.awt.Window class. |
906 |
*/ |
|
907 |
public static void setWindowAccessor(WindowAccessor wa) { |
|
908 |
windowAccessor = wa; |
|
909 |
} |
|
910 |
||
911 |
/* |
|
912 |
* Retrieve the accessor object for the java.awt.Window class. |
|
913 |
*/ |
|
914 |
public static WindowAccessor getWindowAccessor() { |
|
915 |
if (windowAccessor == null) { |
|
916 |
unsafe.ensureClassInitialized(Window.class); |
|
917 |
} |
|
918 |
return windowAccessor; |
|
919 |
} |
|
920 |
||
921 |
/* |
|
922 |
* Set an accessor object for the java.awt.AWTEvent class. |
|
923 |
*/ |
|
924 |
public static void setAWTEventAccessor(AWTEventAccessor aea) { |
|
925 |
awtEventAccessor = aea; |
|
926 |
} |
|
927 |
||
928 |
/* |
|
929 |
* Retrieve the accessor object for the java.awt.AWTEvent class. |
|
930 |
*/ |
|
931 |
public static AWTEventAccessor getAWTEventAccessor() { |
|
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
932 |
if (awtEventAccessor == null) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
933 |
unsafe.ensureClassInitialized(AWTEvent.class); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
934 |
} |
2451 | 935 |
return awtEventAccessor; |
936 |
} |
|
2453
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
937 |
|
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
938 |
/* |
6825 | 939 |
* Set an accessor object for the java.awt.event.InputEvent class. |
940 |
*/ |
|
941 |
public static void setInputEventAccessor(InputEventAccessor iea) { |
|
942 |
inputEventAccessor = iea; |
|
943 |
} |
|
944 |
||
945 |
/* |
|
946 |
* Retrieve the accessor object for the java.awt.event.InputEvent class. |
|
947 |
*/ |
|
948 |
public static InputEventAccessor getInputEventAccessor() { |
|
949 |
if (inputEventAccessor == null) { |
|
950 |
unsafe.ensureClassInitialized(InputEvent.class); |
|
951 |
} |
|
952 |
return inputEventAccessor; |
|
953 |
} |
|
954 |
||
955 |
/* |
|
47384
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
956 |
* Set an accessor object for the java.awt.event.MouseEvent class. |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
957 |
*/ |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
958 |
public static void setMouseEventAccessor(MouseEventAccessor mea) { |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
959 |
mouseEventAccessor = mea; |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
960 |
} |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
961 |
|
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
962 |
/* |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
963 |
* Retrieve the accessor object for the java.awt.event.MouseEvent class. |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
964 |
*/ |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
965 |
public static MouseEventAccessor getMouseEventAccessor() { |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
966 |
if (mouseEventAccessor == null) { |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
967 |
unsafe.ensureClassInitialized(MouseEvent.class); |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
968 |
} |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
969 |
return mouseEventAccessor; |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
970 |
} |
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
971 |
|
3b244a98d5ab
8166772: Touch keyboard is not shown for text components on a screen touch
alitvinov
parents:
47216
diff
changeset
|
972 |
/* |
2453
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
973 |
* Set an accessor object for the java.awt.Frame class. |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
974 |
*/ |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
975 |
public static void setFrameAccessor(FrameAccessor fa) { |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
976 |
frameAccessor = fa; |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
977 |
} |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
978 |
|
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
979 |
/* |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
980 |
* Retrieve the accessor object for the java.awt.Frame class. |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
981 |
*/ |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
982 |
public static FrameAccessor getFrameAccessor() { |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
983 |
if (frameAccessor == null) { |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
984 |
unsafe.ensureClassInitialized(Frame.class); |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
985 |
} |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
986 |
return frameAccessor; |
35e5fab82613
6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
dcherepanov
parents:
2451
diff
changeset
|
987 |
} |
2464
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
988 |
|
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
989 |
/* |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
990 |
* Set an accessor object for the java.awt.KeyboardFocusManager class. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
991 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
992 |
public static void setKeyboardFocusManagerAccessor(KeyboardFocusManagerAccessor kfma) { |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
993 |
kfmAccessor = kfma; |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
994 |
} |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
995 |
|
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
996 |
/* |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
997 |
* Retrieve the accessor object for the java.awt.KeyboardFocusManager class. |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
998 |
*/ |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
999 |
public static KeyboardFocusManagerAccessor getKeyboardFocusManagerAccessor() { |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
1000 |
if (kfmAccessor == null) { |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
1001 |
unsafe.ensureClassInitialized(KeyboardFocusManager.class); |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
1002 |
} |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
1003 |
return kfmAccessor; |
3c6755bdc55f
6806217: implement synthetic focus model for MS Windows
ant
parents:
2459
diff
changeset
|
1004 |
} |
3084
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1005 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1006 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1007 |
* Set an accessor object for the java.awt.MenuComponent class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1008 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1009 |
public static void setMenuComponentAccessor(MenuComponentAccessor mca) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1010 |
menuComponentAccessor = mca; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1011 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1012 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1013 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1014 |
* Retrieve the accessor object for the java.awt.MenuComponent class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1015 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1016 |
public static MenuComponentAccessor getMenuComponentAccessor() { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1017 |
if (menuComponentAccessor == null) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1018 |
unsafe.ensureClassInitialized(MenuComponent.class); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1019 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1020 |
return menuComponentAccessor; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1021 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1022 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1023 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1024 |
* Set an accessor object for the java.awt.EventQueue class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1025 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1026 |
public static void setEventQueueAccessor(EventQueueAccessor eqa) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1027 |
eventQueueAccessor = eqa; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1028 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1029 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1030 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1031 |
* Retrieve the accessor object for the java.awt.EventQueue class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1032 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1033 |
public static EventQueueAccessor getEventQueueAccessor() { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1034 |
if (eventQueueAccessor == null) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1035 |
unsafe.ensureClassInitialized(EventQueue.class); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1036 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1037 |
return eventQueueAccessor; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1038 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1039 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1040 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1041 |
* Set an accessor object for the java.awt.PopupMenu class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1042 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1043 |
public static void setPopupMenuAccessor(PopupMenuAccessor pma) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1044 |
popupMenuAccessor = pma; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1045 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1046 |
|
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1047 |
/* |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1048 |
* Retrieve the accessor object for the java.awt.PopupMenu class. |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1049 |
*/ |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1050 |
public static PopupMenuAccessor getPopupMenuAccessor() { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1051 |
if (popupMenuAccessor == null) { |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1052 |
unsafe.ensureClassInitialized(PopupMenu.class); |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1053 |
} |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1054 |
return popupMenuAccessor; |
67ca55732362
6824169: Need to remove some AWT class dependencies
dcherepanov
parents:
2808
diff
changeset
|
1055 |
} |
4913
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1056 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1057 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1058 |
* Set an accessor object for the java.awt.FileDialog class. |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1059 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1060 |
public static void setFileDialogAccessor(FileDialogAccessor fda) { |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1061 |
fileDialogAccessor = fda; |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1062 |
} |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1063 |
|
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1064 |
/* |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1065 |
* Retrieve the accessor object for the java.awt.FileDialog class. |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1066 |
*/ |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1067 |
public static FileDialogAccessor getFileDialogAccessor() { |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1068 |
if (fileDialogAccessor == null) { |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1069 |
unsafe.ensureClassInitialized(FileDialog.class); |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1070 |
} |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1071 |
return fileDialogAccessor; |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1072 |
} |
9b3caa50afcf
6705345: Enable multiple file selection in AWT FileDialog
dcherepanov
parents:
4371
diff
changeset
|
1073 |
|
10097
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1074 |
/* |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1075 |
* Set an accessor object for the java.awt.ScrollPaneAdjustable class. |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1076 |
*/ |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1077 |
public static void setScrollPaneAdjustableAccessor(ScrollPaneAdjustableAccessor adj) { |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1078 |
scrollPaneAdjustableAccessor = adj; |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1079 |
} |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1080 |
|
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1081 |
/* |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1082 |
* Retrieve the accessor object for the java.awt.ScrollPaneAdjustable |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1083 |
* class. |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1084 |
*/ |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1085 |
public static ScrollPaneAdjustableAccessor getScrollPaneAdjustableAccessor() { |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1086 |
if (scrollPaneAdjustableAccessor == null) { |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1087 |
unsafe.ensureClassInitialized(ScrollPaneAdjustable.class); |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1088 |
} |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1089 |
return scrollPaneAdjustableAccessor; |
67449ffe5991
6642728: Use reflection to access ScrollPane's private method from within sun.awt package
serb
parents:
9035
diff
changeset
|
1090 |
} |
13604 | 1091 |
|
1092 |
/** |
|
1093 |
* Set an accessor object for the java.awt.CheckboxMenuItem class. |
|
1094 |
*/ |
|
1095 |
public static void setCheckboxMenuItemAccessor(CheckboxMenuItemAccessor cmia) { |
|
1096 |
checkboxMenuItemAccessor = cmia; |
|
1097 |
} |
|
1098 |
||
1099 |
/** |
|
1100 |
* Retrieve the accessor object for the java.awt.CheckboxMenuItem class. |
|
1101 |
*/ |
|
1102 |
public static CheckboxMenuItemAccessor getCheckboxMenuItemAccessor() { |
|
1103 |
if (checkboxMenuItemAccessor == null) { |
|
1104 |
unsafe.ensureClassInitialized(CheckboxMenuItemAccessor.class); |
|
1105 |
} |
|
1106 |
return checkboxMenuItemAccessor; |
|
1107 |
} |
|
1108 |
||
1109 |
/** |
|
1110 |
* Set an accessor object for the java.awt.Cursor class. |
|
1111 |
*/ |
|
1112 |
public static void setCursorAccessor(CursorAccessor ca) { |
|
1113 |
cursorAccessor = ca; |
|
1114 |
} |
|
1115 |
||
1116 |
/** |
|
1117 |
* Retrieve the accessor object for the java.awt.Cursor class. |
|
1118 |
*/ |
|
1119 |
public static CursorAccessor getCursorAccessor() { |
|
1120 |
if (cursorAccessor == null) { |
|
1121 |
unsafe.ensureClassInitialized(CursorAccessor.class); |
|
1122 |
} |
|
1123 |
return cursorAccessor; |
|
1124 |
} |
|
1125 |
||
1126 |
/** |
|
1127 |
* Set an accessor object for the java.awt.MenuBar class. |
|
1128 |
*/ |
|
1129 |
public static void setMenuBarAccessor(MenuBarAccessor mba) { |
|
1130 |
menuBarAccessor = mba; |
|
1131 |
} |
|
1132 |
||
1133 |
/** |
|
1134 |
* Retrieve the accessor object for the java.awt.MenuBar class. |
|
1135 |
*/ |
|
1136 |
public static MenuBarAccessor getMenuBarAccessor() { |
|
1137 |
if (menuBarAccessor == null) { |
|
1138 |
unsafe.ensureClassInitialized(MenuBarAccessor.class); |
|
1139 |
} |
|
1140 |
return menuBarAccessor; |
|
1141 |
} |
|
1142 |
||
1143 |
/** |
|
1144 |
* Set an accessor object for the java.awt.MenuItem class. |
|
1145 |
*/ |
|
1146 |
public static void setMenuItemAccessor(MenuItemAccessor mia) { |
|
1147 |
menuItemAccessor = mia; |
|
1148 |
} |
|
1149 |
||
1150 |
/** |
|
1151 |
* Retrieve the accessor object for the java.awt.MenuItem class. |
|
1152 |
*/ |
|
1153 |
public static MenuItemAccessor getMenuItemAccessor() { |
|
1154 |
if (menuItemAccessor == null) { |
|
1155 |
unsafe.ensureClassInitialized(MenuItemAccessor.class); |
|
1156 |
} |
|
1157 |
return menuItemAccessor; |
|
1158 |
} |
|
1159 |
||
1160 |
/** |
|
1161 |
* Set an accessor object for the java.awt.Menu class. |
|
1162 |
*/ |
|
1163 |
public static void setMenuAccessor(MenuAccessor ma) { |
|
1164 |
menuAccessor = ma; |
|
1165 |
} |
|
1166 |
||
1167 |
/** |
|
1168 |
* Retrieve the accessor object for the java.awt.Menu class. |
|
1169 |
*/ |
|
1170 |
public static MenuAccessor getMenuAccessor() { |
|
1171 |
if (menuAccessor == null) { |
|
1172 |
unsafe.ensureClassInitialized(MenuAccessor.class); |
|
1173 |
} |
|
1174 |
return menuAccessor; |
|
1175 |
} |
|
1176 |
||
1177 |
/** |
|
1178 |
* Set an accessor object for the java.awt.event.KeyEvent class. |
|
1179 |
*/ |
|
1180 |
public static void setKeyEventAccessor(KeyEventAccessor kea) { |
|
1181 |
keyEventAccessor = kea; |
|
1182 |
} |
|
1183 |
||
1184 |
/** |
|
1185 |
* Retrieve the accessor object for the java.awt.event.KeyEvent class. |
|
1186 |
*/ |
|
1187 |
public static KeyEventAccessor getKeyEventAccessor() { |
|
1188 |
if (keyEventAccessor == null) { |
|
1189 |
unsafe.ensureClassInitialized(KeyEventAccessor.class); |
|
1190 |
} |
|
1191 |
return keyEventAccessor; |
|
1192 |
} |
|
1193 |
||
1194 |
/** |
|
1195 |
* Set an accessor object for the javax.swing.ClientPropertyKey class. |
|
1196 |
*/ |
|
1197 |
public static void setClientPropertyKeyAccessor(ClientPropertyKeyAccessor cpka) { |
|
1198 |
clientPropertyKeyAccessor = cpka; |
|
1199 |
} |
|
1200 |
||
1201 |
/** |
|
1202 |
* Retrieve the accessor object for the javax.swing.ClientPropertyKey class. |
|
1203 |
*/ |
|
1204 |
public static ClientPropertyKeyAccessor getClientPropertyKeyAccessor() { |
|
1205 |
if (clientPropertyKeyAccessor == null) { |
|
1206 |
unsafe.ensureClassInitialized(ClientPropertyKeyAccessor.class); |
|
1207 |
} |
|
1208 |
return clientPropertyKeyAccessor; |
|
1209 |
} |
|
1210 |
||
1211 |
/** |
|
1212 |
* Set an accessor object for the java.awt.SystemTray class. |
|
1213 |
*/ |
|
1214 |
public static void setSystemTrayAccessor(SystemTrayAccessor sta) { |
|
1215 |
systemTrayAccessor = sta; |
|
1216 |
} |
|
1217 |
||
1218 |
/** |
|
1219 |
* Retrieve the accessor object for the java.awt.SystemTray class. |
|
1220 |
*/ |
|
1221 |
public static SystemTrayAccessor getSystemTrayAccessor() { |
|
1222 |
if (systemTrayAccessor == null) { |
|
1223 |
unsafe.ensureClassInitialized(SystemTrayAccessor.class); |
|
1224 |
} |
|
1225 |
return systemTrayAccessor; |
|
1226 |
} |
|
1227 |
||
1228 |
/** |
|
1229 |
* Set an accessor object for the java.awt.TrayIcon class. |
|
1230 |
*/ |
|
1231 |
public static void setTrayIconAccessor(TrayIconAccessor tia) { |
|
1232 |
trayIconAccessor = tia; |
|
1233 |
} |
|
1234 |
||
1235 |
/** |
|
1236 |
* Retrieve the accessor object for the java.awt.TrayIcon class. |
|
1237 |
*/ |
|
1238 |
public static TrayIconAccessor getTrayIconAccessor() { |
|
1239 |
if (trayIconAccessor == null) { |
|
1240 |
unsafe.ensureClassInitialized(TrayIconAccessor.class); |
|
1241 |
} |
|
1242 |
return trayIconAccessor; |
|
1243 |
} |
|
1244 |
||
1245 |
/** |
|
1246 |
* Set an accessor object for the java.awt.DefaultKeyboardFocusManager class. |
|
1247 |
*/ |
|
1248 |
public static void setDefaultKeyboardFocusManagerAccessor(DefaultKeyboardFocusManagerAccessor dkfma) { |
|
1249 |
defaultKeyboardFocusManagerAccessor = dkfma; |
|
1250 |
} |
|
1251 |
||
1252 |
/** |
|
1253 |
* Retrieve the accessor object for the java.awt.DefaultKeyboardFocusManager class. |
|
1254 |
*/ |
|
1255 |
public static DefaultKeyboardFocusManagerAccessor getDefaultKeyboardFocusManagerAccessor() { |
|
1256 |
if (defaultKeyboardFocusManagerAccessor == null) { |
|
1257 |
unsafe.ensureClassInitialized(DefaultKeyboardFocusManagerAccessor.class); |
|
1258 |
} |
|
1259 |
return defaultKeyboardFocusManagerAccessor; |
|
1260 |
} |
|
13652
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1261 |
/* |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1262 |
* Set an accessor object for the java.awt.SequencedEvent class. |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1263 |
*/ |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1264 |
public static void setSequencedEventAccessor(SequencedEventAccessor sea) { |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1265 |
sequencedEventAccessor = sea; |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1266 |
} |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1267 |
|
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1268 |
/* |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1269 |
* Get the accessor object for the java.awt.SequencedEvent class. |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1270 |
*/ |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1271 |
public static SequencedEventAccessor getSequencedEventAccessor() { |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1272 |
if (sequencedEventAccessor == null) { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1273 |
try { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1274 |
unsafe.ensureClassInitialized( |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1275 |
Class.forName("java.awt.SequencedEvent")); |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1276 |
} catch (ClassNotFoundException ignore) { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1277 |
} |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1278 |
} |
13652
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1279 |
return sequencedEventAccessor; |
42544e68dc39
6981400: Tabbing between textfield do not work properly when ALT+TAB
ant
parents:
12653
diff
changeset
|
1280 |
} |
20147
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1281 |
|
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1282 |
/* |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1283 |
* Set an accessor object for the java.awt.Toolkit class. |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1284 |
*/ |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1285 |
public static void setToolkitAccessor(ToolkitAccessor ta) { |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1286 |
toolkitAccessor = ta; |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1287 |
} |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1288 |
|
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1289 |
/* |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1290 |
* Get the accessor object for the java.awt.Toolkit class. |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1291 |
*/ |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1292 |
public static ToolkitAccessor getToolkitAccessor() { |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1293 |
if (toolkitAccessor == null) { |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1294 |
unsafe.ensureClassInitialized(Toolkit.class); |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1295 |
} |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1296 |
|
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1297 |
return toolkitAccessor; |
78e51d8fcb92
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
leonidr
parents:
20097
diff
changeset
|
1298 |
} |
21246 | 1299 |
|
1300 |
/* |
|
1301 |
* Get the accessor object for the java.awt.event.InvocationEvent class. |
|
1302 |
*/ |
|
1303 |
public static void setInvocationEventAccessor(InvocationEventAccessor invocationEventAccessor) { |
|
1304 |
AWTAccessor.invocationEventAccessor = invocationEventAccessor; |
|
1305 |
} |
|
1306 |
||
1307 |
/* |
|
1308 |
* Set the accessor object for the java.awt.event.InvocationEvent class. |
|
1309 |
*/ |
|
1310 |
public static InvocationEventAccessor getInvocationEventAccessor() { |
|
1311 |
return invocationEventAccessor; |
|
1312 |
} |
|
23268 | 1313 |
|
1314 |
/* |
|
1315 |
* Get the accessor object for the java.awt.SystemColor class. |
|
1316 |
*/ |
|
1317 |
public static SystemColorAccessor getSystemColorAccessor() { |
|
1318 |
if (systemColorAccessor == null) { |
|
1319 |
unsafe.ensureClassInitialized(SystemColor.class); |
|
1320 |
} |
|
1321 |
||
1322 |
return systemColorAccessor; |
|
1323 |
} |
|
1324 |
||
1325 |
/* |
|
1326 |
* Set the accessor object for the java.awt.SystemColor class. |
|
1327 |
*/ |
|
1328 |
public static void setSystemColorAccessor(SystemColorAccessor systemColorAccessor) { |
|
1329 |
AWTAccessor.systemColorAccessor = systemColorAccessor; |
|
1330 |
} |
|
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1331 |
|
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1332 |
/* |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1333 |
* Get the accessor object for the javax.accessibility.AccessibleContext class. |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1334 |
*/ |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1335 |
public static AccessibleContextAccessor getAccessibleContextAccessor() { |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1336 |
if (accessibleContextAccessor == null) { |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1337 |
unsafe.ensureClassInitialized(AccessibleContext.class); |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1338 |
} |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1339 |
return accessibleContextAccessor; |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1340 |
} |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1341 |
|
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1342 |
/* |
40719
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1343 |
* Set the accessor object for the javax.accessibility.AccessibleBundle class. |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1344 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1345 |
public static void setAccessibleBundleAccessor(AccessibleBundleAccessor accessor) { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1346 |
AWTAccessor.accessibleBundleAccessor = accessor; |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1347 |
} |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1348 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1349 |
/* |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1350 |
* Get the accessor object for the javax.accessibility.AccessibleBundle class. |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1351 |
*/ |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1352 |
public static AccessibleBundleAccessor getAccessibleBundleAccessor() { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1353 |
if (accessibleBundleAccessor == null) { |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1354 |
unsafe.ensureClassInitialized(AccessibleBundle.class); |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1355 |
} |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1356 |
return accessibleBundleAccessor; |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1357 |
} |
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1358 |
|
4ae72a69bd3b
8129854: Remove reflection from AWT/Swing classes
alexsch
parents:
37694
diff
changeset
|
1359 |
/* |
24523
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1360 |
* Set the accessor object for the javax.accessibility.AccessibleContext class. |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1361 |
*/ |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1362 |
public static void setAccessibleContextAccessor(AccessibleContextAccessor accessor) { |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1363 |
AWTAccessor.accessibleContextAccessor = accessor; |
d3d9e027b190
8037477: Reproducible hang of JAWS and webstart application with JAB 2.0.4
pchelko
parents:
24147
diff
changeset
|
1364 |
} |
30470 | 1365 |
|
1366 |
/* |
|
1367 |
* Get the accessor object for the java.awt.dnd.DragSourceContext class. |
|
1368 |
*/ |
|
1369 |
public static DragSourceContextAccessor getDragSourceContextAccessor() { |
|
1370 |
if (dragSourceContextAccessor == null) { |
|
1371 |
unsafe.ensureClassInitialized(DragSourceContext.class); |
|
1372 |
} |
|
1373 |
return dragSourceContextAccessor; |
|
1374 |
} |
|
1375 |
||
1376 |
/* |
|
1377 |
* Set the accessor object for the java.awt.dnd.DragSourceContext class. |
|
1378 |
*/ |
|
1379 |
public static void setDragSourceContextAccessor(DragSourceContextAccessor accessor) { |
|
1380 |
AWTAccessor.dragSourceContextAccessor = accessor; |
|
1381 |
} |
|
1382 |
||
1383 |
/* |
|
1384 |
* Get the accessor object for the java.awt.dnd.DropTargetContext class. |
|
1385 |
*/ |
|
1386 |
public static DropTargetContextAccessor getDropTargetContextAccessor() { |
|
1387 |
if (dropTargetContextAccessor == null) { |
|
1388 |
unsafe.ensureClassInitialized(DropTargetContext.class); |
|
1389 |
} |
|
1390 |
return dropTargetContextAccessor; |
|
1391 |
} |
|
1392 |
||
1393 |
/* |
|
1394 |
* Set the accessor object for the java.awt.dnd.DropTargetContext class. |
|
1395 |
*/ |
|
1396 |
public static void setDropTargetContextAccessor(DropTargetContextAccessor accessor) { |
|
1397 |
AWTAccessor.dropTargetContextAccessor = accessor; |
|
1398 |
} |
|
1399 |
||
41805
d30817604de5
8154434: Open the request focus methods of the java.awt.Component which accept FocusEvent.Cause
ssadetsky
parents:
40719
diff
changeset
|
1400 |
} |