author | Claus Gittinger <cg@exept.de> |
Fri, 01 Nov 2019 13:44:29 +0100 | |
branch | cvs_MAIN |
changeset 3973 | ee0b2d717637 |
parent 3412 | df11bb428463 |
permissions | -rw-r--r-- |
545 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
3 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
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:
2253
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
545 | 8 |
|
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:
2253
diff
changeset
|
15 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
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:
2253
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:
2253
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:
2253
diff
changeset
|
19 |
as of 1.9.2010 |
545 | 20 |
" |
713 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
194 | 23 |
Object subclass:#SmalltalkAppletStub |
24 |
instanceVariableNames:'parameter documentBase codeBase appletContext' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
713 | 27 |
category:'Languages-Java-Views-Support' |
194 | 28 |
! |
29 |
||
545 | 30 |
!SmalltalkAppletStub class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
34 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
35 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
36 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
37 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
39 |
SWING Research Group, Czech Technical University in Prague |
545 | 40 |
|
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
48 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
49 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
50 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
51 |
as of 1.9.2010 |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
52 |
|
545 | 53 |
" |
54 |
! ! |
|
194 | 55 |
|
56 |
!SmalltalkAppletStub methodsFor:'accessing'! |
|
57 |
||
58 |
appletContext |
|
59 |
"return the value of the instance variable 'appletContext' (automatically generated)" |
|
60 |
||
61 |
^ appletContext |
|
62 |
||
63 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
64 |
! |
|
65 |
||
66 |
appletContext:something |
|
67 |
"set the value of the instance variable 'appletContext' (automatically generated)" |
|
68 |
||
69 |
appletContext := something. |
|
70 |
||
71 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
72 |
! |
|
73 |
||
74 |
codeBase |
|
75 |
"return the value of the instance variable 'codeBase' (automatically generated)" |
|
76 |
||
77 |
^ codeBase |
|
78 |
||
79 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
80 |
! |
|
81 |
||
82 |
codeBase:something |
|
83 |
"set the value of the instance variable 'codeBase' (automatically generated)" |
|
84 |
||
85 |
codeBase := something. |
|
86 |
||
87 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
88 |
! |
|
89 |
||
90 |
documentBase |
|
91 |
"return the value of the instance variable 'documentBase' (automatically generated)" |
|
92 |
||
93 |
^ documentBase |
|
94 |
||
95 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
96 |
! |
|
97 |
||
98 |
documentBase:something |
|
99 |
"set the value of the instance variable 'documentBase' (automatically generated)" |
|
100 |
||
101 |
documentBase := something. |
|
102 |
||
103 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
104 |
! |
|
105 |
||
106 |
parameter |
|
107 |
"return the value of the instance variable 'parameter' (automatically generated)" |
|
108 |
||
109 |
^ parameter |
|
110 |
||
111 |
"Created: 1.8.1997 / 15:56:19 / cg" |
|
112 |
! |
|
113 |
||
114 |
parameter:something |
|
115 |
"set the value of the instance variable 'parameter' (automatically generated)" |
|
116 |
||
117 |
parameter := something. |
|
118 |
||
119 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
120 |
! ! |
|
121 |
||
217 | 122 |
!SmalltalkAppletStub methodsFor:'applet actions'! |
123 |
||
124 |
appletResize:newWidth _:newHeight |
|
125 |
self halt. |
|
126 |
||
127 |
"Created: 13.8.1997 / 00:18:41 / cg" |
|
128 |
! ! |
|
129 |
||
194 | 130 |
!SmalltalkAppletStub methodsFor:'java accessing'! |
131 |
||
255 | 132 |
doesNotUnderstand:aMessage |
259 | 133 |
|selector base| |
255 | 134 |
|
135 |
selector := aMessage selector. |
|
136 |
selector == #'getParameter(Ljava/lang/String;)Ljava/lang/String;' ifTrue:[ |
|
137 |
^ self getParameter:(aMessage arguments at:1) |
|
138 |
]. |
|
139 |
selector == #'getAppletContext()Ljava/applet/AppletContext;' ifTrue:[ |
|
140 |
^ self getAppletContext |
|
141 |
]. |
|
259 | 142 |
selector == #'getCodeBase()Ljava/net/URL;' ifTrue:[ |
143 |
^ self getCodeBase. |
|
144 |
]. |
|
255 | 145 |
selector == #'appletResize(II)V' ifTrue:[ |
146 |
self appletResize:(aMessage arguments at:1) _:(aMessage arguments at:2). |
|
147 |
^ nil "/ void |
|
148 |
]. |
|
149 |
^ super doesNotUnderstand:aMessage |
|
150 |
||
151 |
"Created: / 7.1.1998 / 17:13:11 / cg" |
|
259 | 152 |
"Modified: / 12.1.1998 / 23:50:40 / cg" |
255 | 153 |
! |
154 |
||
194 | 155 |
getAppletContext |
156 |
^ appletContext |
|
157 |
||
158 |
"Created: 1.8.1997 / 15:57:20 / cg" |
|
159 |
! |
|
160 |
||
161 |
getCodeBase |
|
162 |
^ codeBase |
|
163 |
||
164 |
"Created: 1.8.1997 / 15:57:11 / cg" |
|
165 |
! |
|
166 |
||
167 |
getDocumentBase |
|
168 |
^ documentBase |
|
169 |
||
170 |
"Created: 1.8.1997 / 15:57:05 / cg" |
|
171 |
! |
|
172 |
||
173 |
getParameter:arg |
|
217 | 174 |
|s| |
175 |
||
203 | 176 |
(parameter includesKey:arg) ifFalse:[ |
217 | 177 |
"/ self halt:'no parameter for: ' , arg displayString. |
218 | 178 |
^ nil. |
179 |
||
217 | 180 |
s := Dialog request:('applet wants parameter for ' , (Java as_ST_String:arg)). |
181 |
^ Java as_String:s. |
|
203 | 182 |
]. |
194 | 183 |
^ parameter at:arg ifAbsent:nil |
184 |
||
185 |
"Created: 1.8.1997 / 15:56:51 / cg" |
|
218 | 186 |
"Modified: 14.8.1997 / 01:28:56 / cg" |
194 | 187 |
! ! |
188 |
||
189 |
!SmalltalkAppletStub class methodsFor:'documentation'! |
|
190 |
||
191 |
version |
|
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
192 |
^ '$Header: /cvs/stx/stx/libjava/SmalltalkAppletStub.st,v 1.16 2015-03-20 12:08:01 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
193 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
194 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
195 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
196 |
^ '$Header: /cvs/stx/stx/libjava/SmalltalkAppletStub.st,v 1.16 2015-03-20 12:08:01 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
197 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
198 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
199 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
200 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
201 |
^ '$Changeset: <not expanded> $' |
2151 | 202 |
! |
203 |
||
204 |
version_SVN |
|
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
205 |
^ 'Id' |
2108 | 206 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
207 |