author | Stefan Vogel <sv@exept.de> |
Thu, 25 Apr 2013 15:09:57 +0200 | |
changeset 2552 | f4c15588965e |
parent 2396 | fadc6d7a2f5b |
child 2429 | ebece4dcaab9 |
child 2562 | c0a608f4f88c |
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:
2259
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:
2259
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
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:
2259
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:
2259
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:
2259
diff
changeset
|
15 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
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:
2259
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:
2259
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:
2259
diff
changeset
|
19 |
as of 1.9.2010 |
2151 | 20 |
" |
681 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
233 | 23 |
JavaView subclass:#JavaEmbeddedFrameView |
282 | 24 |
instanceVariableNames:'codeURL codeBaseURL documentURL archiveURL parameterDictionary |
25 |
embeddedAppletFrame applet appletID appletThread |
|
288 | 26 |
infoDisplayReceiver autoSetupApplet autoStartApplet |
2087 | 27 |
autoDestroyApplet isNS40 attributeHashTable appletIsPreloaded' |
282 | 28 |
classVariableNames:'NextSequentialAppletID' |
233 | 29 |
poolDictionaries:'' |
2108 | 30 |
category:'Languages-Java-Views-Support' |
233 | 31 |
! |
32 |
||
545 | 33 |
!JavaEmbeddedFrameView class methodsFor:'documentation'! |
34 |
||
35 |
copyright |
|
36 |
" |
|
2151 | 37 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
545 | 38 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
39 |
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:
2259
diff
changeset
|
40 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
41 |
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:
2259
diff
changeset
|
42 |
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:
2259
diff
changeset
|
43 |
|
545 | 44 |
This software is furnished under a license and may be used |
45 |
only in accordance with the terms of that license and with the |
|
46 |
inclusion of the above copyright notice. This software may not |
|
47 |
be provided or otherwise made available to, or used by, any |
|
48 |
other person. No title to or ownership of the software is |
|
49 |
hereby transferred. |
|
50 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
51 |
[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:
2259
diff
changeset
|
52 |
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:
2259
diff
changeset
|
53 |
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:
2259
diff
changeset
|
54 |
as of 1.9.2010 |
545 | 55 |
|
56 |
" |
|
57 |
! ! |
|
233 | 58 |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
59 |
|
397 | 60 |
!JavaEmbeddedFrameView class methodsFor:'support'! |
61 |
||
62 |
newAppletContext |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
63 |
| jMozillaAppletContextClass | |
397 | 64 |
|
65 |
"/ this makes it a modzilla applet context ... |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
66 |
jMozillaAppletContextClass := JavaVM |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
67 |
classForName: 'netscape.applet.MozillaAppletContext'. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
68 |
jMozillaAppletContextClass isNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
69 |
self warn: 'no netscape.applet.MozillaAppletContext class'. |
397 | 70 |
^ nil |
71 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
72 |
jMozillaAppletContextClass instVarNamed: 'debug' put: 1. |
397 | 73 |
^ jMozillaAppletContextClass new. |
74 |
||
75 |
"Created: / 20.10.1998 / 15:40:08 / cg" |
|
76 |
"Modified: / 20.10.1998 / 15:43:47 / cg" |
|
77 |
! ! |
|
78 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
79 |
|
282 | 80 |
!JavaEmbeddedFrameView methodsFor:'accessing'! |
81 |
||
545 | 82 |
applet |
83 |
^ applet |
|
84 |
||
85 |
"Created: / 26.1.1999 / 13:51:10 / cg" |
|
86 |
! |
|
87 |
||
282 | 88 |
appletID |
89 |
"return the value of the instance variable 'appletID' (automatically generated)" |
|
90 |
||
91 |
^ appletID |
|
92 |
||
93 |
"Created: / 28.1.1998 / 21:08:54 / cg" |
|
94 |
! |
|
95 |
||
96 |
appletID:something |
|
97 |
"set the value of the instance variable 'appletID' (automatically generated)" |
|
98 |
||
99 |
appletID := something. |
|
100 |
||
101 |
"Created: / 28.1.1998 / 21:08:54 / cg" |
|
102 |
! |
|
103 |
||
2087 | 104 |
appletIsPreloaded:aBoolean |
105 |
appletIsPreloaded := aBoolean. |
|
106 |
! |
|
107 |
||
282 | 108 |
appletThread |
109 |
^ appletThread |
|
110 |
||
111 |
"Created: / 28.1.1998 / 21:39:42 / cg" |
|
112 |
! |
|
113 |
||
114 |
archiveURL:anArchiveURLString |
|
115 |
archiveURL := anArchiveURLString |
|
116 |
||
117 |
"Created: / 28.1.1998 / 21:00:38 / cg" |
|
118 |
! |
|
119 |
||
120 |
codeBaseURL:aCodeBaseURLString |
|
121 |
codeBaseURL := aCodeBaseURLString |
|
122 |
||
123 |
"Created: / 28.1.1998 / 20:59:34 / cg" |
|
124 |
! |
|
125 |
||
126 |
codeURL:aCodeURLString |
|
127 |
codeURL := aCodeURLString |
|
128 |
||
129 |
"Created: / 28.1.1998 / 21:10:11 / cg" |
|
130 |
! |
|
131 |
||
132 |
documentURL:aDocumentURLString |
|
133 |
documentURL := aDocumentURLString |
|
134 |
||
135 |
"Created: / 28.1.1998 / 21:00:03 / cg" |
|
136 |
"Modified: / 28.1.1998 / 21:00:28 / cg" |
|
137 |
! |
|
138 |
||
139 |
embeddedAppletFrame |
|
140 |
^ embeddedAppletFrame |
|
141 |
||
142 |
"Created: / 28.1.1998 / 21:39:35 / cg" |
|
143 |
! |
|
144 |
||
145 |
infoDisplayReceiver |
|
146 |
"return the value of the instance variable 'infoDisplayReceiver' (automatically generated)" |
|
147 |
||
148 |
^ infoDisplayReceiver |
|
149 |
||
150 |
"Created: / 28.1.1998 / 21:43:54 / cg" |
|
151 |
! |
|
152 |
||
153 |
infoDisplayReceiver:something |
|
154 |
"set the value of the instance variable 'infoDisplayReceiver' (automatically generated)" |
|
155 |
||
156 |
infoDisplayReceiver := something. |
|
157 |
||
158 |
"Created: / 28.1.1998 / 21:43:54 / cg" |
|
159 |
! |
|
160 |
||
545 | 161 |
parameterAt:key put:valueString |
162 |
parameterDictionary isNil ifTrue:[ |
|
163 |
parameterDictionary := IdentityDictionary new. |
|
164 |
]. |
|
165 |
parameterDictionary at:key put:valueString. |
|
166 |
attributeHashTable |
|
167 |
perform:#'put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' |
|
168 |
with:(Java as_String:key) |
|
169 |
with:(Java as_String:valueString) |
|
170 |
||
171 |
"Created: / 26.1.1999 / 13:46:01 / cg" |
|
172 |
"Modified: / 28.1.1999 / 17:59:36 / cg" |
|
173 |
! |
|
174 |
||
282 | 175 |
parameterDictionary:aParameterDictionary |
176 |
parameterDictionary := aParameterDictionary |
|
177 |
||
178 |
"Created: / 28.1.1998 / 21:01:20 / cg" |
|
179 |
! ! |
|
180 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
181 |
|
282 | 182 |
!JavaEmbeddedFrameView methodsFor:'applet control'! |
183 |
||
184 |
appletDESTROY |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
185 |
| ev | |
384 | 186 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
187 |
isNS40 ifTrue: [ |
451 | 188 |
"/ ev = netscape.applet.AppletEvent(APPLET_DESTROY); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
189 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
190 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_DESTROY'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
191 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
192 |
with: ev. |
384 | 193 |
^ self |
194 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
195 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
196 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_DESTROY'). |
282 | 197 |
|
198 |
"Created: / 28.1.1998 / 21:41:45 / cg" |
|
451 | 199 |
"Modified: / 13.11.1998 / 14:19:49 / cg" |
282 | 200 |
! |
201 |
||
202 |
appletDISPOSE |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
203 |
| ev | |
384 | 204 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
205 |
isNS40 ifTrue: [ |
451 | 206 |
"/ ev = netscape.applet.AppletEvent(APPLET_DISPOSE); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
207 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
208 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_DISPOSE'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
209 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
210 |
with: ev. |
384 | 211 |
^ self |
212 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
213 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
214 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_DISPOSE'). |
282 | 215 |
|
216 |
"Created: / 28.1.1998 / 21:41:57 / cg" |
|
451 | 217 |
"Modified: / 13.11.1998 / 14:19:43 / cg" |
282 | 218 |
! |
219 |
||
220 |
appletINIT |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
221 |
| ev | |
384 | 222 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
223 |
isNS40 ifTrue: [ |
451 | 224 |
"/ ev = netscape.applet.AppletEvent(APPLET_INIT); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
225 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
226 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_INIT'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
227 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
228 |
with: ev. |
384 | 229 |
^ self |
230 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
231 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
232 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_INIT'). |
282 | 233 |
|
234 |
"Created: / 28.1.1998 / 21:17:51 / cg" |
|
451 | 235 |
"Modified: / 13.11.1998 / 14:19:35 / cg" |
282 | 236 |
! |
237 |
||
238 |
appletLOAD |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
239 |
| ev | |
384 | 240 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
241 |
isNS40 ifTrue: [ |
451 | 242 |
"/ ev = netscape.applet.AppletEvent(APPLET_LOAD); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
243 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
244 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_LOAD'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
245 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
246 |
with: ev. |
384 | 247 |
^ self |
248 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
249 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
250 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_LOAD'). |
282 | 251 |
|
252 |
"Created: / 28.1.1998 / 21:17:37 / cg" |
|
451 | 253 |
"Modified: / 13.11.1998 / 14:19:31 / cg" |
282 | 254 |
! |
255 |
||
256 |
appletSTART |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
257 |
| ev | |
384 | 258 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
259 |
isNS40 ifTrue: [ |
451 | 260 |
"/ ev = netscape.applet.AppletEvent(APPLET_START); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
261 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
262 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_START'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
263 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
264 |
with: ev. |
384 | 265 |
^ self |
266 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
267 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
268 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_START'). |
282 | 269 |
|
270 |
"Created: / 28.1.1998 / 21:18:01 / cg" |
|
451 | 271 |
"Modified: / 13.11.1998 / 14:19:21 / cg" |
282 | 272 |
! |
273 |
||
274 |
appletSTOP |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
275 |
| ev | |
384 | 276 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
277 |
isNS40 ifTrue: [ |
451 | 278 |
"/ ev = netscape.applet.AppletEvent(APPLET_STOP); |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
279 |
ev := (JavaVM classForName: 'netscape.applet.AppletEvent') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
280 |
newWith_int: (embeddedAppletFrame class instVarNamed: 'APPLET_STOP'). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
281 |
embeddedAppletFrame perform: #'sendEvent(Lnetscape/applet/NEvent;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
282 |
with: ev. |
384 | 283 |
^ self |
284 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
285 |
embeddedAppletFrame perform: #'sendEvent(I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
286 |
with: (embeddedAppletFrame class instVarNamed: 'APPLET_STOP'). |
282 | 287 |
|
288 |
"Created: / 28.1.1998 / 21:41:33 / cg" |
|
451 | 289 |
"Modified: / 13.11.1998 / 14:19:14 / cg" |
282 | 290 |
! |
291 |
||
288 | 292 |
autoDestroyApplet:aBoolean |
293 |
"set/clear the autoDestroy flag. |
|
294 |
If set, the applet will be shutDown whenever the I get destroyed. |
|
295 |
if clear, the applet is not automatically shutDown and must be |
|
296 |
terminated by someone else. |
|
297 |
The default is false." |
|
298 |
||
299 |
autoDestroyApplet := aBoolean. |
|
300 |
||
301 |
"Created: / 29.1.1998 / 15:18:50 / cg" |
|
302 |
"Modified: / 29.1.1998 / 15:21:01 / cg" |
|
303 |
! |
|
304 |
||
305 |
autoSetupApplet:aBoolean |
|
306 |
"set/clear the autoSetup flag. |
|
307 |
If set, the appletFrame will be setup whenever the I get realized |
|
308 |
for the first time. |
|
309 |
If clear, the frame is not automatically setup and must be |
|
310 |
setup by someone else. |
|
311 |
The default is true." |
|
312 |
||
313 |
||
314 |
autoSetupApplet := aBoolean. |
|
315 |
||
316 |
"Created: / 29.1.1998 / 15:18:41 / cg" |
|
317 |
"Modified: / 29.1.1998 / 20:45:37 / cg" |
|
318 |
! |
|
319 |
||
320 |
autoStartApplet:aBoolean |
|
321 |
"set/clear the autoStart flag. |
|
322 |
If set, the applet will be loaded & started whenever the I get realized |
|
323 |
for the first time. |
|
324 |
If clear, the applet is not automatically started and must be |
|
325 |
started by someone else. |
|
326 |
The default is false." |
|
327 |
||
328 |
||
329 |
autoStartApplet := aBoolean. |
|
330 |
||
331 |
"Created: / 29.1.1998 / 15:18:41 / cg" |
|
332 |
"Modified: / 29.1.1998 / 15:20:54 / cg" |
|
333 |
! |
|
334 |
||
282 | 335 |
startApplet |
681 | 336 |
"/ ensure its initialized when the first event comes; |
337 |
"/ therefore, raise my prio above the event dispatchers prio for a while. |
|
282 | 338 |
|
681 | 339 |
Processor activeProcess withPriority:(Processor activePriority + 1) |
340 |
do:[ |
|
341 |
self startAppletThread. |
|
342 |
||
2087 | 343 |
appletIsPreloaded ifFalse:[self appletLOAD]. |
681 | 344 |
self appletINIT. |
345 |
]. |
|
346 |
||
282 | 347 |
self appletSTART |
348 |
||
349 |
"Modified: / 28.1.1998 / 21:30:24 / cg" |
|
350 |
! |
|
351 |
||
352 |
startAppletThread |
|
353 |
|appletName| |
|
354 |
||
355 |
appletThread := JavaProcess |
|
356 |
for:[ |
|
357 |
"/ passnotifications to the documentFrame ... |
|
358 |
Object informationSignal handle:[:ex | |
|
359 |
JavaVM javaConsoleStream showCR:ex errorString. |
|
360 |
ex proceed. |
|
361 |
] do:[ |
|
362 |
Object activityNotificationSignal handle:[:ex | |
|
363 |
infoDisplayReceiver notNil ifTrue:[ |
|
364 |
infoDisplayReceiver infoDisplay:ex errorString. |
|
365 |
] ifFalse:[ |
|
366 |
Transcript showCR:ex errorString |
|
367 |
]. |
|
368 |
ex proceed. |
|
369 |
] do:[ |
|
370 |
[ |
|
2116
6178a12902ca
Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents:
2108
diff
changeset
|
371 |
"/ Transcript showCR:(Timestamp now printString , ' start embeddedAppletFrame'). |
282 | 372 |
embeddedAppletFrame perform:#'run()V'. |
2116
6178a12902ca
Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents:
2108
diff
changeset
|
373 |
] ensure:[ |
690 | 374 |
appletThread notNil ifTrue:[ |
375 |
appletThread terminateAllSubprocesses. |
|
376 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
377 |
Logger log:'JAVA applet startup finished' severity: #info facility: 'JVM' |
282 | 378 |
] |
379 |
] |
|
380 |
] |
|
381 |
] |
|
681 | 382 |
priority:(Processor activePriority "- 1"). |
282 | 383 |
|
384 |
appletName := codeURL asFilename withoutSuffix baseName. |
|
417 | 385 |
appletThread name:('JAVA-' , appletName , '-applet' , ' [startup]'). |
653
a98a3634389a
make processes restartable (for snapshot restart of java threads)
cg
parents:
644
diff
changeset
|
386 |
appletThread restartable:true. |
282 | 387 |
appletThread resume. |
388 |
^ appletThread. |
|
389 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
390 |
"Created: / 28-01-1998 / 21:30:32 / cg" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
391 |
"Modified: / 24-12-1999 / 02:58:50 / cg" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
392 |
"Modified: / 14-09-2011 / 21:40:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
286 | 393 |
! |
394 |
||
395 |
stopApplet |
|
311
b23c5e132b8c
hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents:
303
diff
changeset
|
396 |
|n n2| |
286 | 397 |
|
398 |
(appletThread notNil |
|
399 |
and:[appletThread isDead not])ifTrue:[ |
|
318 | 400 |
"/ 'EmbeddedAppletFrame [info]: send APPLET_STOP ...' infoPrintCR. |
286 | 401 |
self appletSTOP. |
402 |
||
318 | 403 |
"/ 'EmbeddedAppletFrame [info]: send APPLET_DESTROY ...' infoPrintCR. |
286 | 404 |
self appletDESTROY. |
405 |
||
318 | 406 |
"/ 'EmbeddedAppletFrame [info]: send APPLET_DISPOSE ...' infoPrintCR. |
286 | 407 |
self appletDISPOSE. |
408 |
||
409 |
"/ |
|
410 |
"/ give it a chance to stop ... |
|
411 |
"/ |
|
412 |
Processor yield. |
|
311
b23c5e132b8c
hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents:
303
diff
changeset
|
413 |
n2 := 0. |
286 | 414 |
[appletThread isDead] whileFalse:[ |
455 | 415 |
"/ give it a second to shut down ... |
286 | 416 |
n := 0. |
417 |
[n < 10 and:[appletThread isDead not]] whileTrue:[ |
|
418 |
Delay waitForSeconds:0.1. |
|
419 |
n := n + 1. |
|
420 |
]. |
|
421 |
appletThread isDead ifFalse:[ |
|
455 | 422 |
"/ after 3 seconds, kill it. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
423 |
Logger log:'EmbeddedAppletFrame: JAVA thread did not stop - soft terminate ...' severity: #info facility: 'JVM'. |
527 | 424 |
appletThread == JavaVM javaScreenUpdaterThread ifTrue:[self halt]. |
653
a98a3634389a
make processes restartable (for snapshot restart of java threads)
cg
parents:
644
diff
changeset
|
425 |
appletThread == JavaVM javaEventQueueThread ifTrue:[self halt]. |
286 | 426 |
appletThread terminate. |
311
b23c5e132b8c
hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents:
303
diff
changeset
|
427 |
n2 := n2 + 1. |
455 | 428 |
n2 > 3 ifTrue:[ |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
429 |
Logger log:'EmbeddedAppletFrame: JAVA thread did not stop - shooting down ...' severity: #info facility: 'JVM'. |
311
b23c5e132b8c
hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents:
303
diff
changeset
|
430 |
appletThread terminateNoSignal |
b23c5e132b8c
hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents:
303
diff
changeset
|
431 |
] |
286 | 432 |
]. |
433 |
]. |
|
434 |
]. |
|
435 |
appletThread := nil |
|
436 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
437 |
"Modified: / 24-12-1999 / 02:35:25 / cg" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
438 |
"Modified: / 14-09-2011 / 21:42:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
286 | 439 |
! ! |
440 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
441 |
|
286 | 442 |
!JavaEmbeddedFrameView methodsFor:'initialize / release'! |
443 |
||
444 |
destroy |
|
445 |
autoDestroyApplet == true ifTrue:[ |
|
446 |
self stopApplet |
|
447 |
]. |
|
448 |
super destroy. |
|
449 |
||
450 |
"Created: / 29.1.1998 / 15:21:45 / cg" |
|
451 |
"Modified: / 29.1.1998 / 15:28:26 / cg" |
|
452 |
! |
|
453 |
||
545 | 454 |
initialize |
2087 | 455 |
appletIsPreloaded := false. |
545 | 456 |
super initialize. |
457 |
viewBackground := Color black. |
|
458 |
||
459 |
"Modified: / 28.1.1999 / 17:44:11 / cg" |
|
460 |
! |
|
461 |
||
286 | 462 |
realize |
288 | 463 |
autoSetupApplet ~~ false ifTrue:[ |
397 | 464 |
self setupAppletFrameIn:nil initializeJava:true |
288 | 465 |
]. |
286 | 466 |
autoStartApplet == true ifTrue:[ |
288 | 467 |
embeddedAppletFrame notNil ifTrue:[ |
468 |
self startApplet |
|
469 |
] |
|
681 | 470 |
]. |
471 |
super realize. |
|
286 | 472 |
|
473 |
"Created: / 29.1.1998 / 15:21:30 / cg" |
|
397 | 474 |
"Modified: / 20.10.1998 / 15:46:32 / cg" |
282 | 475 |
! ! |
476 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
477 |
|
282 | 478 |
!JavaEmbeddedFrameView methodsFor:'private'! |
479 |
||
397 | 480 |
setupAppletFrameIn:anAppletContextOrNil |
644 | 481 |
^ self setupAppletFrameIn:anAppletContextOrNil initializeJava:true. |
482 |
! |
|
483 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
484 |
setupAppletFrameIn: anAppletContextOrNil initializeJava: initializeJava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
485 |
| appletContext jEmbeddedAppletFrameClass jDerivedAppletFrameClass toolkit peer attribs id jCodeBaseURL jDocumentURL jArchiveURL u fn | |
282 | 486 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
487 |
embeddedAppletFrame notNil ifTrue: [ |
288 | 488 |
"/ already setup |
489 |
^ self |
|
490 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
491 |
codeBaseURL isNil ifTrue: [ ^ self ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
492 |
initializeJava ifTrue: [ Java startupJavaSystem. ] ifFalse: [ |
653
a98a3634389a
make processes restartable (for snapshot restart of java threads)
cg
parents:
644
diff
changeset
|
493 |
JavaVM initializeVMIfNoEventThreadRunning |
644 | 494 |
]. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
495 |
|
644 | 496 |
"/ if its a relative file-URL, make it relative under |
497 |
"/ java... |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
498 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
499 |
u := URL fromString: codeBaseURL. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
500 |
u method = 'file' ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
501 |
fn := Smalltalk getSystemFileName: u file. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
502 |
fn isNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
503 |
fn := Smalltalk getPackageFileName: ('stx/libjava/' , u file). |
644 | 504 |
] |
505 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
506 |
fn notNil ifTrue: [ fn := 'file:' , fn asFilename pathName ] ifFalse: [ |
644 | 507 |
fn := codeBaseURL |
508 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
509 |
jCodeBaseURL := Java as_URL: fn. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
510 |
documentURL notNil ifTrue: [ jDocumentURL := Java as_URL: documentURL. ] ifFalse: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
511 |
jDocumentURL := Java as_URL: fn |
288 | 512 |
]. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
513 |
archiveURL notNil ifTrue: [ jArchiveURL := Java as_URL: archiveURL. ]. |
282 | 514 |
id := appletID. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
515 |
id isNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
516 |
NextSequentialAppletID isNil ifTrue: [ NextSequentialAppletID := 1. ]. |
282 | 517 |
id := NextSequentialAppletID. |
518 |
NextSequentialAppletID := NextSequentialAppletID + 1 |
|
519 |
]. |
|
520 |
attribs := Dictionary new. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
521 |
width notNil ifTrue: [ attribs at: 'width' put: width printString ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
522 |
height notNil ifTrue: [ attribs at: 'height' put: height printString ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
523 |
codeURL notNil ifTrue: [ attribs at: 'code' put: codeURL ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
524 |
parameterDictionary notNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
525 |
attribs declareAllFrom: parameterDictionary |
384 | 526 |
]. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
527 |
attributeHashTable := Java as_Hashtable: attribs. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
528 |
anAppletContextOrNil notNil ifTrue: [ appletContext := anAppletContextOrNil ] ifFalse: [ |
420 | 529 |
appletContext := self class newAppletContext. |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
530 |
appletContext isNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
531 |
self warn: 'no netscape.applet.MozillaAppletContext class'. |
397 | 532 |
^ false |
533 |
]. |
|
534 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
535 |
jEmbeddedAppletFrameClass := JavaVM |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
536 |
classForName: 'netscape.applet.EmbeddedAppletFrame'. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
537 |
jEmbeddedAppletFrameClass isNil ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
538 |
self warn: 'no netscape.applet.EmbeddedAppletFrame class'. |
397 | 539 |
^ false |
540 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
541 |
jDerivedAppletFrameClass := Java |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
542 |
classForName: 'netscape.applet.DerivedAppletFrame'. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
543 |
jDerivedAppletFrameClass notNil ifTrue: [ |
397 | 544 |
"/ ns4.0 |
545 |
embeddedAppletFrame := jDerivedAppletFrameClass new. |
|
546 |
isNS40 := true. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
547 |
] ifFalse: [ |
397 | 548 |
"/ ns3.x |
549 |
embeddedAppletFrame := jEmbeddedAppletFrameClass new. |
|
550 |
isNS40 := false. |
|
551 |
]. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
552 |
embeddedAppletFrame instVarNamed: 'pData' put: self. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
553 |
toolkit := (Java classForName: 'java.awt.Toolkit') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
554 |
perform: #getDefaultToolkit. |
397 | 555 |
peer := toolkit |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
556 |
perform: #'createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
557 |
with: embeddedAppletFrame. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
558 |
(embeddedAppletFrame |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
559 |
respondsTo: #'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;Z)V') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
560 |
ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
561 |
"/ 4.0 netscape |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
562 |
embeddedAppletFrame |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
563 |
perform: #'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;Z)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
564 |
withArguments: (Array |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
565 |
with: jDocumentURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
566 |
with: jCodeBaseURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
567 |
with: jArchiveURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
568 |
with: attributeHashTable |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
569 |
with: appletContext |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
570 |
with: (Java as_Integer: id) |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
571 |
with: 0). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
572 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
573 |
"/ reloadClasses-boolean |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
574 |
] |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
575 |
ifFalse: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
576 |
(embeddedAppletFrame |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
577 |
respondsTo: #'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V') |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
578 |
ifTrue: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
579 |
"/ 3.01 netscape |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
580 |
embeddedAppletFrame |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
581 |
perform: #'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
582 |
with: jDocumentURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
583 |
with: jCodeBaseURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
584 |
with: jArchiveURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
585 |
with: attributeHashTable |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
586 |
with: appletContext |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
587 |
with: (Java as_Integer: id). |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
588 |
] |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
589 |
ifFalse: [ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
590 |
"/ oldStyle netscape |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
591 |
embeddedAppletFrame |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
592 |
perform: #'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;I)V' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
593 |
with: jDocumentURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
594 |
with: jCodeBaseURL |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
595 |
with: attributeHashTable |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
596 |
with: appletContext |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
597 |
with: id. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
598 |
]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
599 |
]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
600 |
embeddedAppletFrame instVarNamed: 'peer' put: peer. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
601 |
self javaPeer: peer. |
282 | 602 |
^ true |
603 |
||
397 | 604 |
"Created: / 20.10.1998 / 15:47:04 / cg" |
653
a98a3634389a
make processes restartable (for snapshot restart of java threads)
cg
parents:
644
diff
changeset
|
605 |
"Modified: / 24.12.1999 / 01:38:17 / cg" |
282 | 606 |
! ! |
607 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
608 |
|
303 | 609 |
!JavaEmbeddedFrameView methodsFor:'resizing'! |
610 |
||
611 |
sizeChanged:how |
|
612 |
super sizeChanged:how. |
|
613 |
^ self. |
|
614 |
embeddedAppletFrame notNil ifTrue:[ |
|
615 |
(embeddedAppletFrame perform:#'isResizable()Z') ~~ 0 ifTrue:[ |
|
616 |
self windowGroup sensor |
|
617 |
pushDamageEvent:(WindowEvent |
|
618 |
for:self |
|
619 |
type:#configureX:y:width:height: |
|
620 |
arguments:(Array with:left with:top with:width with:height)). |
|
621 |
"/ embeddedAppletFrame |
|
622 |
"/ perform:#'appletResize(II)V' |
|
623 |
"/ with:self width |
|
624 |
"/ with:self height. |
|
625 |
] |
|
626 |
] |
|
627 |
||
628 |
"Modified: / 1.2.1998 / 19:15:07 / cg" |
|
629 |
! ! |
|
630 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
631 |
|
233 | 632 |
!JavaEmbeddedFrameView class methodsFor:'documentation'! |
633 |
||
634 |
version |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
635 |
^ '$Header: /cvs/stx/stx/libjava/JavaEmbeddedFrameView.st,v 1.30 2013-02-25 11:15:31 vrany Exp $' |
2259
25d241dbe673
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2162
diff
changeset
|
636 |
! |
25d241dbe673
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2162
diff
changeset
|
637 |
|
25d241dbe673
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2162
diff
changeset
|
638 |
version_CVS |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
639 |
^ '$Header: /cvs/stx/stx/libjava/JavaEmbeddedFrameView.st,v 1.30 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:
2259
diff
changeset
|
640 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
641 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
642 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
643 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
644 |
^ '$Changeset: <not expanded> $' |
2151 | 645 |
! |
646 |
||
647 |
version_SVN |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
648 |
^ '§Id§' |
2084 | 649 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2259
diff
changeset
|
650 |