author | mdoerr |
Tue, 12 Nov 2019 16:13:16 +0100 | |
changeset 59032 | ad05ed6f2a77 |
parent 50656 | 362e45aeb983 |
permissions | -rw-r--r-- |
50656
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
1 |
/* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
2 |
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
4 |
* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
10 |
* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
15 |
* accompanied this code). |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
16 |
* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
20 |
* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
23 |
* questions. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
24 |
*/ |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
25 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
26 |
package jdk.swing.interop; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
27 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
28 |
import java.awt.Component; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
29 |
import java.awt.dnd.DragGestureRecognizer; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
30 |
import java.awt.dnd.DragGestureListener; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
31 |
import java.awt.dnd.DragSource; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
32 |
import java.awt.dnd.DragGestureEvent; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
33 |
import java.awt.dnd.InvalidDnDOperationException; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
34 |
import java.awt.dnd.peer.DragSourceContextPeer; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
35 |
import java.awt.dnd.DropTarget; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
36 |
import javax.swing.JComponent; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
37 |
import sun.swing.LightweightContent; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
38 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
39 |
/** |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
40 |
* This class provides a wrapper over inner LightweightContentProxy class |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
41 |
* which implements jdk internal sun.swing.LightweightContent interface |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
42 |
* and provides APIs to be used by FX swing interop to access and use |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
43 |
* LightweightContent APIs. |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
44 |
* |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
45 |
* @since 11 |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
46 |
*/ |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
47 |
public abstract class LightweightContentWrapper { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
48 |
private LightweightContentProxy lwCnt; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
49 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
50 |
public LightweightContentWrapper() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
51 |
lwCnt = new LightweightContentProxy(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
52 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
53 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
54 |
LightweightContentProxy getContent() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
55 |
return lwCnt; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
56 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
57 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
58 |
public abstract void imageBufferReset(int[] data, int x, int y, int width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
59 |
int height, int linestride); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
60 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
61 |
public abstract void imageBufferReset(int[] data, int x, int y, int width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
62 |
int height, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
63 |
int linestride, double scaleX, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
64 |
double scaleY); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
65 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
66 |
public abstract JComponent getComponent(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
67 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
68 |
public abstract void paintLock(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
69 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
70 |
public abstract void paintUnlock(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
71 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
72 |
public abstract void imageReshaped(int x, int y, int width, int height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
73 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
74 |
public abstract void imageUpdated(int dirtyX, int dirtyY,int dirtyWidth, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
75 |
int dirtyHeight); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
76 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
77 |
public abstract void focusGrabbed(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
78 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
79 |
public abstract void focusUngrabbed(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
80 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
81 |
public abstract void preferredSizeChanged(int width, int height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
82 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
83 |
public abstract void maximumSizeChanged(int width, int height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
84 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
85 |
public abstract void minimumSizeChanged(int width, int height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
86 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
87 |
public abstract <T extends DragGestureRecognizer> T createDragGestureRecognizer( |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
88 |
Class<T> abstractRecognizerClass, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
89 |
DragSource ds, Component c, int srcActions, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
90 |
DragGestureListener dgl); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
91 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
92 |
public abstract DragSourceContextWrapper createDragSourceContext(DragGestureEvent dge) |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
93 |
throws InvalidDnDOperationException; |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
94 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
95 |
public abstract void addDropTarget(DropTarget dt); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
96 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
97 |
public abstract void removeDropTarget(DropTarget dt); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
98 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
99 |
private class LightweightContentProxy implements LightweightContent { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
100 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
101 |
public JComponent getComponent() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
102 |
return LightweightContentWrapper.this.getComponent(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
103 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
104 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
105 |
public void paintLock() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
106 |
LightweightContentWrapper.this.paintLock(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
107 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
108 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
109 |
public void paintUnlock() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
110 |
LightweightContentWrapper.this.paintUnlock(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
111 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
112 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
113 |
public void imageBufferReset(int[] data, int x, int y, int width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
114 |
int height, int linestride) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
115 |
LightweightContentWrapper.this.imageBufferReset(data, x, y, width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
116 |
height, linestride); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
117 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
118 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
119 |
public void imageBufferReset(int[] data, int x, int y, int width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
120 |
int height, int linestride, double scaleX, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
121 |
double scaleY) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
122 |
LightweightContentWrapper.this.imageBufferReset(data, x, y, width, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
123 |
height, linestride, scaleX, scaleY); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
124 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
125 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
126 |
public void imageReshaped(int x, int y, int width, int height) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
127 |
LightweightContentWrapper.this.imageReshaped(x, y, width, height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
128 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
129 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
130 |
public void imageUpdated(int dirtyX, int dirtyY,int dirtyWidth, int dirtyHeight) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
131 |
LightweightContentWrapper.this.imageUpdated(dirtyX, dirtyY, dirtyWidth, dirtyHeight); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
132 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
133 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
134 |
public void focusGrabbed() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
135 |
LightweightContentWrapper.this.focusGrabbed(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
136 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
137 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
138 |
public void focusUngrabbed() { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
139 |
LightweightContentWrapper.this.focusUngrabbed(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
140 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
141 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
142 |
public void preferredSizeChanged(int width, int height) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
143 |
LightweightContentWrapper.this.preferredSizeChanged(width, height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
144 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
145 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
146 |
public void maximumSizeChanged(int width, int height) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
147 |
LightweightContentWrapper.this.maximumSizeChanged(width, height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
148 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
149 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
150 |
public void minimumSizeChanged(int width, int height) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
151 |
LightweightContentWrapper.this.minimumSizeChanged(width, height); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
152 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
153 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
154 |
public <T extends DragGestureRecognizer> T createDragGestureRecognizer( |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
155 |
Class<T> abstractRecognizerClass, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
156 |
DragSource ds, Component c, int srcActions, |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
157 |
DragGestureListener dgl) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
158 |
return LightweightContentWrapper.this.createDragGestureRecognizer( |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
159 |
abstractRecognizerClass, ds, c, srcActions, dgl); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
160 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
161 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
162 |
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
163 |
throws InvalidDnDOperationException { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
164 |
DragSourceContextWrapper peerWrapper = |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
165 |
LightweightContentWrapper.this.createDragSourceContext(dge); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
166 |
return peerWrapper.getPeer(); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
167 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
168 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
169 |
public void addDropTarget(DropTarget dt) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
170 |
LightweightContentWrapper.this.addDropTarget(dt); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
171 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
172 |
|
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
173 |
public void removeDropTarget(DropTarget dt) { |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
174 |
LightweightContentWrapper.this.removeDropTarget(dt); |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
175 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
176 |
} |
362e45aeb983
8202199: Provide public, unsupported JDK API for JavaFX/Swing interop
psadhukhan
parents:
diff
changeset
|
177 |
} |