author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 27 Sep 2018 23:09:30 +0100 | |
changeset 3854 | 193b04caef42 |
parent 3412 | df11bb428463 |
permissions | -rw-r--r-- |
545 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
545 | 3 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
8 |
|
545 | 9 |
This software is furnished under a license and may be used |
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
15 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
19 |
as of 1.9.2010 |
2151 | 20 |
" |
713 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
481 | 23 |
PopUpView subclass:#JavaPopUpView |
24 |
instanceVariableNames:'eventReceiver updateRegions javaPeer' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
713 | 27 |
category:'Languages-Java-Views-Support' |
481 | 28 |
! |
29 |
||
545 | 30 |
!JavaPopUpView class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
34 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
545 | 35 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
36 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
37 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
39 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
40 |
|
545 | 41 |
This software is furnished under a license and may be used |
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
48 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
49 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
50 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
51 |
as of 1.9.2010 |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
52 |
|
545 | 53 |
" |
54 |
! ! |
|
481 | 55 |
|
56 |
!JavaPopUpView methodsFor:'accessing'! |
|
57 |
||
58 |
delegate:anObject |
|
59 |
"/ super delegate:anObject. |
|
60 |
eventReceiver := anObject. |
|
61 |
||
62 |
"Modified: / 2.12.1998 / 23:57:57 / cg" |
|
63 |
"Created: / 4.12.1998 / 14:09:12 / cg" |
|
64 |
! |
|
65 |
||
66 |
getNextUpdateRectangle |
|
67 |
|r| |
|
68 |
||
69 |
updateRegions size == 0 ifTrue:[^ nil]. |
|
70 |
r := updateRegions removeFirst. |
|
71 |
updateRegions size == 0 ifTrue:[updateRegions := nil]. |
|
72 |
^ r |
|
73 |
||
74 |
"Created: / 4.12.1998 / 14:09:12 / cg" |
|
75 |
! |
|
76 |
||
77 |
javaPeer |
|
78 |
"for debugging support - here is a handle to the corresponding |
|
79 |
javaPeer" |
|
80 |
||
81 |
^ javaPeer |
|
82 |
||
83 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
84 |
! |
|
85 |
||
86 |
javaPeer:aJavaView |
|
87 |
"for debugging support - here is a handle to the corresponding |
|
88 |
javaPeer" |
|
89 |
||
90 |
javaPeer := aJavaView |
|
91 |
||
92 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
93 |
! ! |
|
94 |
||
95 |
!JavaPopUpView methodsFor:'defaults'! |
|
96 |
||
97 |
defaultShadow |
|
98 |
^ false |
|
99 |
||
100 |
"Created: / 4.12.1998 / 15:12:13 / cg" |
|
101 |
! ! |
|
102 |
||
103 |
!JavaPopUpView methodsFor:'event handling'! |
|
104 |
||
105 |
exposeX:x y:y width:w height:h |
|
106 |
|ev rect| |
|
107 |
||
108 |
rect := Rectangle left:x top:y width:w height:h. |
|
109 |
||
110 |
"/ 'JavaView expose' printCR. |
|
111 |
||
112 |
updateRegions isNil ifTrue:[ |
|
113 |
updateRegions := OrderedCollection new. |
|
114 |
]. |
|
115 |
updateRegions add:rect. |
|
116 |
eventReceiver notNil ifTrue:[ |
|
117 |
ev := WindowEvent |
|
118 |
damageFor:self |
|
119 |
rectangle:rect. |
|
120 |
eventReceiver processEvent:ev. |
|
121 |
]. |
|
122 |
"/ super exposeX:x y:y width:w height:h |
|
123 |
||
124 |
"Modified: / 19.10.1998 / 23:10:15 / cg" |
|
125 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
126 |
! ! |
|
127 |
||
128 |
!JavaPopUpView methodsFor:'initialization'! |
|
129 |
||
130 |
initialize |
|
131 |
super initialize. |
|
132 |
||
133 |
self enableMotionEvents. |
|
134 |
||
135 |
"Modified: / 2.12.1998 / 23:32:30 / cg" |
|
136 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
137 |
! ! |
|
138 |
||
139 |
!JavaPopUpView methodsFor:'queries'! |
|
140 |
||
141 |
isJavaView |
|
142 |
^ true |
|
143 |
||
144 |
"Created: / 4.12.1998 / 14:09:40 / cg" |
|
145 |
! ! |
|
146 |
||
147 |
!JavaPopUpView class methodsFor:'documentation'! |
|
148 |
||
149 |
version |
|
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
150 |
^ '$Header: /cvs/stx/stx/libjava/JavaPopUpView.st,v 1.10 2015-03-20 12:08:00 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
151 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
152 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
153 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
154 |
^ '$Header: /cvs/stx/stx/libjava/JavaPopUpView.st,v 1.10 2015-03-20 12:08:00 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
155 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
156 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
157 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
158 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
159 |
^ '$Changeset: <not expanded> $' |
2151 | 160 |
! |
161 |
||
162 |
version_SVN |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
163 |
^ 'Id' |
2108 | 164 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
165 |