author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 24 May 2013 17:55:42 +0100 | |
branch | builtin-class-support |
changeset 2629 | cedb88626902 |
parent 2429 | ebece4dcaab9 |
child 2711 | a00302fe5083 |
permissions | -rw-r--r-- |
545 | 1 |
" |
2151 | 2 |
COPYRIGHT (c) 1996-2011 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 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
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 |
" |
|
2151 | 34 |
COPYRIGHT (c) 1996-2011 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 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
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 |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
56 |
|
481 | 57 |
!JavaPopUpView methodsFor:'accessing'! |
58 |
||
59 |
delegate:anObject |
|
60 |
"/ super delegate:anObject. |
|
61 |
eventReceiver := anObject. |
|
62 |
||
63 |
"Modified: / 2.12.1998 / 23:57:57 / cg" |
|
64 |
"Created: / 4.12.1998 / 14:09:12 / cg" |
|
65 |
! |
|
66 |
||
67 |
getNextUpdateRectangle |
|
68 |
|r| |
|
69 |
||
70 |
updateRegions size == 0 ifTrue:[^ nil]. |
|
71 |
r := updateRegions removeFirst. |
|
72 |
updateRegions size == 0 ifTrue:[updateRegions := nil]. |
|
73 |
^ r |
|
74 |
||
75 |
"Created: / 4.12.1998 / 14:09:12 / cg" |
|
76 |
! |
|
77 |
||
78 |
javaPeer |
|
79 |
"for debugging support - here is a handle to the corresponding |
|
80 |
javaPeer" |
|
81 |
||
82 |
^ javaPeer |
|
83 |
||
84 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
85 |
! |
|
86 |
||
87 |
javaPeer:aJavaView |
|
88 |
"for debugging support - here is a handle to the corresponding |
|
89 |
javaPeer" |
|
90 |
||
91 |
javaPeer := aJavaView |
|
92 |
||
93 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
94 |
! ! |
|
95 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
96 |
|
481 | 97 |
!JavaPopUpView methodsFor:'defaults'! |
98 |
||
99 |
defaultShadow |
|
100 |
^ false |
|
101 |
||
102 |
"Created: / 4.12.1998 / 15:12:13 / cg" |
|
103 |
! ! |
|
104 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
105 |
|
481 | 106 |
!JavaPopUpView methodsFor:'event handling'! |
107 |
||
108 |
exposeX:x y:y width:w height:h |
|
109 |
|ev rect| |
|
110 |
||
111 |
rect := Rectangle left:x top:y width:w height:h. |
|
112 |
||
113 |
"/ 'JavaView expose' printCR. |
|
114 |
||
115 |
updateRegions isNil ifTrue:[ |
|
116 |
updateRegions := OrderedCollection new. |
|
117 |
]. |
|
118 |
updateRegions add:rect. |
|
119 |
eventReceiver notNil ifTrue:[ |
|
120 |
ev := WindowEvent |
|
121 |
damageFor:self |
|
122 |
rectangle:rect. |
|
123 |
eventReceiver processEvent:ev. |
|
124 |
]. |
|
125 |
"/ super exposeX:x y:y width:w height:h |
|
126 |
||
127 |
"Modified: / 19.10.1998 / 23:10:15 / cg" |
|
128 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
129 |
! ! |
|
130 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
131 |
|
481 | 132 |
!JavaPopUpView methodsFor:'initialization'! |
133 |
||
134 |
initialize |
|
135 |
super initialize. |
|
136 |
||
137 |
self enableMotionEvents. |
|
138 |
||
139 |
"Modified: / 2.12.1998 / 23:32:30 / cg" |
|
140 |
"Created: / 4.12.1998 / 14:09:13 / cg" |
|
141 |
! ! |
|
142 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
143 |
|
481 | 144 |
!JavaPopUpView methodsFor:'queries'! |
145 |
||
146 |
isJavaView |
|
147 |
^ true |
|
148 |
||
149 |
"Created: / 4.12.1998 / 14:09:40 / cg" |
|
150 |
! ! |
|
151 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
152 |
|
481 | 153 |
!JavaPopUpView class methodsFor:'documentation'! |
154 |
||
155 |
version |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
156 |
^ '$Header: /cvs/stx/stx/libjava/JavaPopUpView.st,v 1.7 2013-02-25 11:15:31 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
|
157 |
! |
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 |
version_CVS |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
160 |
^ '$Header: /cvs/stx/stx/libjava/JavaPopUpView.st,v 1.7 2013-02-25 11:15:31 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
|
161 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
162 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2164
diff
changeset
|
163 |
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
|
164 |
|
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 |
^ '$Changeset: <not expanded> $' |
2151 | 166 |
! |
167 |
||
168 |
version_SVN |
|
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
|
169 |
^ '§Id§' |
2108 | 170 |
! ! |
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
|
171 |