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