author | Claus Gittinger <cg@exept.de> |
Thu, 24 Nov 2011 12:51:40 +0100 | |
changeset 2253 | d570b55ffd59 |
parent 2151 | c0b6570c6f9b |
child 2353 | fa7400d022a0 |
permissions | -rw-r--r-- |
545 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
713 | 12 |
"{ Package: 'stx:libjava' }" |
13 |
||
194 | 14 |
Object subclass:#SmalltalkAppletStub |
15 |
instanceVariableNames:'parameter documentBase codeBase appletContext' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
713 | 18 |
category:'Languages-Java-Views-Support' |
194 | 19 |
! |
20 |
||
545 | 21 |
!SmalltalkAppletStub class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1997 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
||
36 |
||
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
[Author:] |
|
43 |
Claus Gittinger |
|
44 |
" |
|
45 |
||
46 |
||
47 |
! ! |
|
194 | 48 |
|
49 |
!SmalltalkAppletStub methodsFor:'accessing'! |
|
50 |
||
51 |
appletContext |
|
52 |
"return the value of the instance variable 'appletContext' (automatically generated)" |
|
53 |
||
54 |
^ appletContext |
|
55 |
||
56 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
57 |
! |
|
58 |
||
59 |
appletContext:something |
|
60 |
"set the value of the instance variable 'appletContext' (automatically generated)" |
|
61 |
||
62 |
appletContext := something. |
|
63 |
||
64 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
65 |
! |
|
66 |
||
67 |
codeBase |
|
68 |
"return the value of the instance variable 'codeBase' (automatically generated)" |
|
69 |
||
70 |
^ codeBase |
|
71 |
||
72 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
73 |
! |
|
74 |
||
75 |
codeBase:something |
|
76 |
"set the value of the instance variable 'codeBase' (automatically generated)" |
|
77 |
||
78 |
codeBase := something. |
|
79 |
||
80 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
81 |
! |
|
82 |
||
83 |
documentBase |
|
84 |
"return the value of the instance variable 'documentBase' (automatically generated)" |
|
85 |
||
86 |
^ documentBase |
|
87 |
||
88 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
89 |
! |
|
90 |
||
91 |
documentBase:something |
|
92 |
"set the value of the instance variable 'documentBase' (automatically generated)" |
|
93 |
||
94 |
documentBase := something. |
|
95 |
||
96 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
97 |
! |
|
98 |
||
99 |
parameter |
|
100 |
"return the value of the instance variable 'parameter' (automatically generated)" |
|
101 |
||
102 |
^ parameter |
|
103 |
||
104 |
"Created: 1.8.1997 / 15:56:19 / cg" |
|
105 |
! |
|
106 |
||
107 |
parameter:something |
|
108 |
"set the value of the instance variable 'parameter' (automatically generated)" |
|
109 |
||
110 |
parameter := something. |
|
111 |
||
112 |
"Created: 1.8.1997 / 15:56:20 / cg" |
|
113 |
! ! |
|
114 |
||
217 | 115 |
!SmalltalkAppletStub methodsFor:'applet actions'! |
116 |
||
117 |
appletResize:newWidth _:newHeight |
|
118 |
self halt. |
|
119 |
||
120 |
"Created: 13.8.1997 / 00:18:41 / cg" |
|
121 |
! ! |
|
122 |
||
194 | 123 |
!SmalltalkAppletStub methodsFor:'java accessing'! |
124 |
||
255 | 125 |
doesNotUnderstand:aMessage |
259 | 126 |
|selector base| |
255 | 127 |
|
128 |
selector := aMessage selector. |
|
129 |
selector == #'getParameter(Ljava/lang/String;)Ljava/lang/String;' ifTrue:[ |
|
130 |
^ self getParameter:(aMessage arguments at:1) |
|
131 |
]. |
|
132 |
selector == #'getAppletContext()Ljava/applet/AppletContext;' ifTrue:[ |
|
133 |
^ self getAppletContext |
|
134 |
]. |
|
259 | 135 |
selector == #'getCodeBase()Ljava/net/URL;' ifTrue:[ |
136 |
^ self getCodeBase. |
|
137 |
]. |
|
255 | 138 |
selector == #'appletResize(II)V' ifTrue:[ |
139 |
self appletResize:(aMessage arguments at:1) _:(aMessage arguments at:2). |
|
140 |
^ nil "/ void |
|
141 |
]. |
|
142 |
^ super doesNotUnderstand:aMessage |
|
143 |
||
144 |
"Created: / 7.1.1998 / 17:13:11 / cg" |
|
259 | 145 |
"Modified: / 12.1.1998 / 23:50:40 / cg" |
255 | 146 |
! |
147 |
||
194 | 148 |
getAppletContext |
149 |
^ appletContext |
|
150 |
||
151 |
"Created: 1.8.1997 / 15:57:20 / cg" |
|
152 |
! |
|
153 |
||
154 |
getCodeBase |
|
155 |
^ codeBase |
|
156 |
||
157 |
"Created: 1.8.1997 / 15:57:11 / cg" |
|
158 |
! |
|
159 |
||
160 |
getDocumentBase |
|
161 |
^ documentBase |
|
162 |
||
163 |
"Created: 1.8.1997 / 15:57:05 / cg" |
|
164 |
! |
|
165 |
||
166 |
getParameter:arg |
|
217 | 167 |
|s| |
168 |
||
203 | 169 |
(parameter includesKey:arg) ifFalse:[ |
217 | 170 |
"/ self halt:'no parameter for: ' , arg displayString. |
218 | 171 |
^ nil. |
172 |
||
217 | 173 |
s := Dialog request:('applet wants parameter for ' , (Java as_ST_String:arg)). |
174 |
^ Java as_String:s. |
|
203 | 175 |
]. |
194 | 176 |
^ parameter at:arg ifAbsent:nil |
177 |
||
178 |
"Created: 1.8.1997 / 15:56:51 / cg" |
|
218 | 179 |
"Modified: 14.8.1997 / 01:28:56 / cg" |
194 | 180 |
! ! |
181 |
||
182 |
!SmalltalkAppletStub class methodsFor:'documentation'! |
|
183 |
||
184 |
version |
|
2253
d570b55ffd59
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2151
diff
changeset
|
185 |
^ '$Header: /cvs/stx/stx/libjava/SmalltalkAppletStub.st,v 1.11 2011-11-24 11:51:40 cg Exp $' |
2151 | 186 |
! |
187 |
||
188 |
version_SVN |
|
2253
d570b55ffd59
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2151
diff
changeset
|
189 |
^ '§Id: SmalltalkAppletStub.st,v 1.10 2011/08/18 18:42:48 vrany Exp §' |
2108 | 190 |
! ! |