author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 24 Aug 2013 17:31:12 +0100 | |
branch | development |
changeset 2670 | 085986ee1b15 |
parent 2429 | ebece4dcaab9 |
child 2711 | a00302fe5083 |
permissions | -rw-r--r-- |
545 | 1 |
" |
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
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
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 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
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:
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 |
" |
|
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
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
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 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
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 |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
56 |
|
194 | 57 |
!SmalltalkAppletStub methodsFor:'accessing'! |
58 |
||
59 |
appletContext |
|
60 |
"return the value of the instance variable 'appletContext' (automatically generated)" |
|
61 |
||
62 |
^ appletContext |
|
63 |
||
64 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
65 |
! |
|
66 |
||
67 |
appletContext:something |
|
68 |
"set the value of the instance variable 'appletContext' (automatically generated)" |
|
69 |
||
70 |
appletContext := something. |
|
71 |
||
72 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
73 |
! |
|
74 |
||
75 |
codeBase |
|
76 |
"return the value of the instance variable 'codeBase' (automatically generated)" |
|
77 |
||
78 |
^ codeBase |
|
79 |
||
80 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
81 |
! |
|
82 |
||
83 |
codeBase:something |
|
84 |
"set the value of the instance variable 'codeBase' (automatically generated)" |
|
85 |
||
86 |
codeBase := something. |
|
87 |
||
88 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
89 |
! |
|
90 |
||
91 |
documentBase |
|
92 |
"return the value of the instance variable 'documentBase' (automatically generated)" |
|
93 |
||
94 |
^ documentBase |
|
95 |
||
96 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
97 |
! |
|
98 |
||
99 |
documentBase:something |
|
100 |
"set the value of the instance variable 'documentBase' (automatically generated)" |
|
101 |
||
102 |
documentBase := something. |
|
103 |
||
104 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
105 |
! |
|
106 |
||
107 |
parameter |
|
108 |
"return the value of the instance variable 'parameter' (automatically generated)" |
|
109 |
||
110 |
^ parameter |
|
111 |
||
112 |
"Created: 1.8.1997 / 15:56:19 / cg" |
|
113 |
! |
|
114 |
||
115 |
parameter:something |
|
116 |
"set the value of the instance variable 'parameter' (automatically generated)" |
|
117 |
||
118 |
parameter := something. |
|
119 |
||
120 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
121 |
! ! |
|
122 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
123 |
|
217 | 124 |
!SmalltalkAppletStub methodsFor:'applet actions'! |
125 |
||
126 |
appletResize:newWidth _:newHeight |
|
127 |
self halt. |
|
128 |
||
129 |
"Created: 13.8.1997 / 00:18:41 / cg" |
|
130 |
! ! |
|
131 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
132 |
|
194 | 133 |
!SmalltalkAppletStub methodsFor:'java accessing'! |
134 |
||
255 | 135 |
doesNotUnderstand:aMessage |
259 | 136 |
|selector base| |
255 | 137 |
|
138 |
selector := aMessage selector. |
|
139 |
selector == #'getParameter(Ljava/lang/String;)Ljava/lang/String;' ifTrue:[ |
|
140 |
^ self getParameter:(aMessage arguments at:1) |
|
141 |
]. |
|
142 |
selector == #'getAppletContext()Ljava/applet/AppletContext;' ifTrue:[ |
|
143 |
^ self getAppletContext |
|
144 |
]. |
|
259 | 145 |
selector == #'getCodeBase()Ljava/net/URL;' ifTrue:[ |
146 |
^ self getCodeBase. |
|
147 |
]. |
|
255 | 148 |
selector == #'appletResize(II)V' ifTrue:[ |
149 |
self appletResize:(aMessage arguments at:1) _:(aMessage arguments at:2). |
|
150 |
^ nil "/ void |
|
151 |
]. |
|
152 |
^ super doesNotUnderstand:aMessage |
|
153 |
||
154 |
"Created: / 7.1.1998 / 17:13:11 / cg" |
|
259 | 155 |
"Modified: / 12.1.1998 / 23:50:40 / cg" |
255 | 156 |
! |
157 |
||
194 | 158 |
getAppletContext |
159 |
^ appletContext |
|
160 |
||
161 |
"Created: 1.8.1997 / 15:57:20 / cg" |
|
162 |
! |
|
163 |
||
164 |
getCodeBase |
|
165 |
^ codeBase |
|
166 |
||
167 |
"Created: 1.8.1997 / 15:57:11 / cg" |
|
168 |
! |
|
169 |
||
170 |
getDocumentBase |
|
171 |
^ documentBase |
|
172 |
||
173 |
"Created: 1.8.1997 / 15:57:05 / cg" |
|
174 |
! |
|
175 |
||
176 |
getParameter:arg |
|
217 | 177 |
|s| |
178 |
||
203 | 179 |
(parameter includesKey:arg) ifFalse:[ |
217 | 180 |
"/ self halt:'no parameter for: ' , arg displayString. |
218 | 181 |
^ nil. |
182 |
||
217 | 183 |
s := Dialog request:('applet wants parameter for ' , (Java as_ST_String:arg)). |
184 |
^ Java as_String:s. |
|
203 | 185 |
]. |
194 | 186 |
^ parameter at:arg ifAbsent:nil |
187 |
||
188 |
"Created: 1.8.1997 / 15:56:51 / cg" |
|
218 | 189 |
"Modified: 14.8.1997 / 01:28:56 / cg" |
194 | 190 |
! ! |
191 |
||
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
192 |
|
194 | 193 |
!SmalltalkAppletStub class methodsFor:'documentation'! |
194 |
||
195 |
version |
|
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
196 |
^ '$Header: /cvs/stx/stx/libjava/SmalltalkAppletStub.st,v 1.13 2013-02-25 11:15:32 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_CVS |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
200 |
^ '$Header: /cvs/stx/stx/libjava/SmalltalkAppletStub.st,v 1.13 2013-02-25 11:15:32 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
|
201 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
202 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
203 |
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
|
204 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2253
diff
changeset
|
205 |
^ '$Changeset: <not expanded> $' |
2151 | 206 |
! |
207 |
||
208 |
version_SVN |
|
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
|
209 |
^ '§Id§' |
2108 | 210 |
! ! |
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
|
211 |