author | Claus Gittinger <cg@exept.de> |
Fri, 26 Feb 1999 13:52:40 +0100 | |
changeset 1113 | ac90f3c50701 |
parent 443 | 5c57a8861677 |
child 1127 | 4565ab2ad23c |
permissions | -rw-r--r-- |
75 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
" |
|
12 |
||
13 |
ValueModel subclass:#PluggableAdaptor |
|
223 | 14 |
instanceVariableNames:'model getBlock putBlock updateBlock' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Interface-Support-Models' |
|
75 | 18 |
! |
19 |
||
20 |
!PluggableAdaptor class methodsFor:'documentation'! |
|
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
38 |
Allows forwarding of value/value:/change messages via blocks. |
|
39 |
Kind of what ST/X always did .... |
|
40 |
||
41 |
PluggableAdaptor is the most general of the adaptor models - |
|
42 |
any other adapter can be simulated. However, they incur certain |
|
82 | 43 |
overhead and complexity. |
44 |
Therefore, in many situations, an AspectAdaptor is the better choice. |
|
223 | 45 |
|
231 | 46 |
Notice: |
47 |
this class was implemented using protocol information |
|
48 |
from alpha testers - it may not be complete or compatible to |
|
49 |
the corresponding ST-80 class. |
|
50 |
If you encounter any incompatibilities, please forward a note |
|
51 |
describing the incompatibility verbal (i.e. no code) to the ST/X team. |
|
52 |
||
223 | 53 |
[author:] |
54 |
Claus Gittinger |
|
76 | 55 |
" |
56 |
! |
|
75 | 57 |
|
76 | 58 |
examples |
59 |
" |
|
60 |
an adaptor for the variable x: |
|
231 | 61 |
[exBegin] |
62 |
|m x t| |
|
75 | 63 |
|
231 | 64 |
m := (PluggableAdaptor new) |
65 |
getBlock:[:m | x] |
|
268 | 66 |
putBlock:[:m :newValue | x := newValue. Transcript showCR:x] |
67 |
updateBlock:[:m :aspect :param | Transcript showCR:'changed']. |
|
231 | 68 |
t := Toggle new. |
69 |
t model:m. |
|
70 |
t label:'toggle me'. |
|
71 |
t open. |
|
72 |
[exEnd] |
|
75 | 73 |
|
74 |
||
76 | 75 |
an adaptor to send #destroy: |
231 | 76 |
[exBegin] |
77 |
|m t| |
|
75 | 78 |
|
231 | 79 |
m := (PluggableAdaptor new) |
80 |
getBlock:[:m | false] |
|
81 |
putBlock:[:m :newValue | t destroy] |
|
82 |
updateBlock:[:m :aspect :param | ]. |
|
83 |
t := Button new. |
|
84 |
t model:m. |
|
85 |
t label:'close me'. |
|
86 |
t open. |
|
87 |
[exEnd] |
|
75 | 88 |
|
89 |
||
90 |
as above, more convenient setup: |
|
231 | 91 |
[exBegin] |
92 |
|m t| |
|
75 | 93 |
|
231 | 94 |
t := Button new. |
75 | 95 |
|
231 | 96 |
m := (PluggableAdaptor on:t) performAction:#destroy. |
97 |
t model:m. |
|
98 |
t label:'close me'. |
|
99 |
t open. |
|
100 |
[exEnd] |
|
75 | 101 |
|
102 |
extract values from a complex model: |
|
231 | 103 |
[exBegin] |
104 |
|model dialog name pId| |
|
75 | 105 |
|
231 | 106 |
model := Plug new. |
107 |
model respondTo:#name with:[name]. |
|
108 |
model respondTo:#name: with:[:newValue | name := newValue]. |
|
109 |
model respondTo:#passportId with:[pId]. |
|
110 |
model respondTo:#passportId: with:[:newValue | pId := newValue]. |
|
111 |
name := 'John Smith'. |
|
112 |
pId := 56785432. |
|
75 | 113 |
|
231 | 114 |
dialog := Dialog new. |
115 |
||
116 |
dialog addInputFieldOn:((PluggableAdaptor on:model) |
|
117 |
getBlock:[:m | m name] |
|
118 |
putBlock:[:m :v | m name:v] |
|
119 |
updateBlock:[:m :a :p | false]). |
|
75 | 120 |
|
231 | 121 |
dialog addVerticalSpace. |
75 | 122 |
|
231 | 123 |
dialog addInputFieldOn:((PluggableAdaptor on:model) |
124 |
getBlock:[:m | m passportId printString] |
|
125 |
putBlock:[:m :v | m passportId:v asNumber] |
|
126 |
updateBlock:[:m :a :p | false]). |
|
127 |
dialog addAbortButton; addOkButton. |
|
128 |
dialog width:200; sizeFixed:true. |
|
129 |
dialog open. |
|
75 | 130 |
|
231 | 131 |
dialog accept value ifTrue:[ |
268 | 132 |
Transcript showCR:'accepted.'. |
231 | 133 |
]. |
268 | 134 |
Transcript showCR:' Name: ' , model name. |
135 |
Transcript showCR:' ID : ' , model passportId printString. |
|
231 | 136 |
[exEnd] |
137 |
||
75 | 138 |
|
139 |
||
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
140 |
extract values from an association into different labels: |
231 | 141 |
[exBegin] |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
142 |
|assoc t l| |
82 | 143 |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
144 |
assoc := 'hello' -> 'world'. |
82 | 145 |
|
231 | 146 |
t := HorizontalPanelView new. |
147 |
t extent:200@50. |
|
148 |
t horizontalLayout:#fitSpace. |
|
82 | 149 |
|
231 | 150 |
l := Label in:t. |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
151 |
l model:((PluggableAdaptor on:assoc) getSelector:#key putSelector:#key:); |
231 | 152 |
labelMessage:#value; aspect:#value; |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
153 |
level:-1. |
231 | 154 |
l := Label in:t. |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
155 |
l model:((PluggableAdaptor on:assoc) getSelector:#value putSelector:#value:); |
231 | 156 |
labelMessage:#value; aspect:#value; |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
157 |
level:-1. |
231 | 158 |
t open. |
82 | 159 |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
160 |
(Delay forSeconds:3) wait. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
161 |
assoc key:'goodbye'. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
162 |
assoc changed. |
231 | 163 |
[exEnd] |
82 | 164 |
|
165 |
extract values from an array into different labels: |
|
231 | 166 |
[exBegin] |
167 |
|a t l| |
|
75 | 168 |
|
231 | 169 |
a := #('one' 'two' 'three'). |
75 | 170 |
|
231 | 171 |
t := HorizontalPanelView new. |
172 |
t extent:200@50. |
|
173 |
t horizontalLayout:#fitSpace. |
|
75 | 174 |
|
231 | 175 |
l := Label in:t. |
176 |
l model:((PluggableAdaptor on:a) collectionIndex:1); |
|
177 |
labelMessage:#value; aspect:#value; |
|
178 |
level:-1; |
|
179 |
sizeFixed:true. |
|
180 |
l := Label in:t. |
|
181 |
l model:((PluggableAdaptor on:a) collectionIndex:2); |
|
182 |
labelMessage:#value; aspect:#value; |
|
183 |
level:-1; |
|
184 |
sizeFixed:true. |
|
185 |
l := Label in:t. |
|
186 |
l model:((PluggableAdaptor on:a) collectionIndex:3); |
|
187 |
labelMessage:#value; aspect:#value; |
|
188 |
level:-1; |
|
189 |
sizeFixed:true. |
|
190 |
t open. |
|
75 | 191 |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
192 |
(Delay forSeconds:3) wait. |
231 | 193 |
a at:1 put:'1'. |
194 |
a changed. |
|
195 |
[exEnd] |
|
75 | 196 |
" |
197 |
! ! |
|
198 |
||
199 |
!PluggableAdaptor class methodsFor:'instance creation'! |
|
200 |
||
201 |
on:anObject |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
202 |
"create & return a new protocolAdaptor. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
203 |
Any get/put and updateBlocks are still to be defined" |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
204 |
|
75 | 205 |
^ self new model:anObject |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
206 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
207 |
"Modified: 21.2.1997 / 18:31:22 / cg" |
75 | 208 |
! ! |
209 |
||
125 | 210 |
!PluggableAdaptor methodsFor:'accessing'! |
75 | 211 |
|
125 | 212 |
setValue:newValue |
213 |
putBlock notNil ifTrue:[ |
|
214 |
^ putBlock value:model value:newValue |
|
75 | 215 |
]. |
125 | 216 |
model value:newValue "/ stupid default |
75 | 217 |
! |
218 |
||
125 | 219 |
value |
220 |
getBlock notNil ifTrue:[ |
|
221 |
^ getBlock value:model |
|
222 |
]. |
|
223 |
^ model value "/ stupid default |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
224 |
! |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
225 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
226 |
valueUsingSubject:someObject |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
227 |
someObject isNil ifTrue:[^ nil]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
228 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
229 |
^ getBlock value:someObject |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
230 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
231 |
"Created: 21.2.1997 / 18:28:35 / cg" |
125 | 232 |
! ! |
75 | 233 |
|
125 | 234 |
!PluggableAdaptor methodsFor:'changes'! |
75 | 235 |
|
125 | 236 |
update:something with:aParameter from:changedObject |
237 |
changedObject == model ifTrue:[ |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
238 |
updateBlock notNil ifTrue:[ |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
239 |
(updateBlock value:model value:something value:aParameter) |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
240 |
ifTrue:[ |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
241 |
self changed:#value |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
242 |
] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
243 |
] |
125 | 244 |
]. |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
245 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
246 |
"Modified: 21.2.1997 / 18:28:52 / cg" |
125 | 247 |
! ! |
75 | 248 |
|
125 | 249 |
!PluggableAdaptor methodsFor:'initialize-release'! |
75 | 250 |
|
251 |
collectionIndex:idx |
|
252 |
"configure the adaptor to translate #value/#value:-messages into |
|
253 |
indexed accesses via #at:/#at:put:, using the supplied index" |
|
254 |
||
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
255 |
getBlock := [:model | model value at:idx]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
256 |
putBlock := [:model :newValue | model value at:idx put:newValue]. |
75 | 257 |
updateBlock := [:model :aspect :parameter | |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
258 |
aspect isNil or:[aspect == #value] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
259 |
] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
260 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
261 |
"Modified: 21.2.1997 / 18:20:24 / cg" |
75 | 262 |
! |
263 |
||
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
264 |
getBlock:newGetBlock putBlock:newPutBlock updateBlock:newUpdateBlock |
75 | 265 |
"configure the adaptor to translate #value/#value:-messages into |
266 |
evaluation of the corresponding block1/block2. |
|
267 |
The getBlock argument block1 is called with one argument, the model, and is |
|
268 |
supposed to extract & return a value from that model. |
|
269 |
The putBlock argument, block2 is called with 2 arguments, the model |
|
270 |
and the new value, and is supposed to store the new value. |
|
271 |
The updateBlock argument, block3 is called with 3 arguments, the model, |
|
272 |
the aspect as changed in the model and the change parameter. It |
|
273 |
is called when the adaptor receives an update message from the model, |
|
274 |
and should return true if a new value should be fetched from the model." |
|
275 |
||
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
276 |
getBlock := newGetBlock. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
277 |
putBlock := newPutBlock. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
278 |
updateBlock := newUpdateBlock. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
279 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
280 |
"Modified: 21.2.1997 / 18:18:38 / cg" |
125 | 281 |
! |
75 | 282 |
|
125 | 283 |
getSelector:getSelector putSelector:putSelector |
284 |
"configure the adaptor to translate #value-messages into a send of |
|
285 |
getSelector and #value:-messages into sends of putSelector." |
|
75 | 286 |
|
125 | 287 |
getBlock := [:model | model perform:getSelector]. |
288 |
putBlock := [:model :newValue | model perform:putSelector with:newValue]. |
|
289 |
updateBlock := [:model :aspect :parameter | |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
290 |
aspect isNil |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
291 |
or:[aspect == getSelector |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
292 |
or:[aspect == #value]] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
293 |
] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
294 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
295 |
"Modified: 21.2.1997 / 18:21:27 / cg" |
125 | 296 |
! |
297 |
||
298 |
model:anObject |
|
299 |
model notNil ifTrue:[ |
|
300 |
model removeDependent:self |
|
75 | 301 |
]. |
125 | 302 |
model := anObject. |
303 |
model addDependent:self |
|
75 | 304 |
! |
305 |
||
125 | 306 |
performAction:aSelector |
307 |
"configure the adaptor to send an aSelector-message to the model |
|
308 |
whenever a new value is stored via #value:" |
|
309 |
||
310 |
getBlock := [:model | nil]. |
|
311 |
putBlock := [:model :newValue | model perform:aSelector]. |
|
312 |
updateBlock := [:model :aspect :parameter | false] |
|
313 |
! |
|
314 |
||
315 |
selectValue:something |
|
316 |
"configure the adaptor to behave like a boolean value, returning |
|
317 |
true whenever the models value equals something" |
|
318 |
||
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
319 |
"/ getBlock := [:model | model value = something]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
320 |
"/ putBlock := [:model :newValue | newValue ifTrue:[model value:something]]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
321 |
"/ updateBlock := [:model :aspect :parameter | |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
322 |
"/ aspect isNil or:[aspect == #value] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
323 |
"/ ] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
324 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
325 |
"/ changed for vw compatibility |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
326 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
327 |
|lastValue| |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
328 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
329 |
lastValue := nil. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
330 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
331 |
getBlock := [:model | lastValue := (model value = something)]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
332 |
putBlock := [:model :newValue | newValue |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
333 |
ifTrue:[model value:something] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
334 |
ifFalse:[model value = something |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
335 |
ifTrue:[model value:nil] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
336 |
] |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
337 |
]. |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
338 |
updateBlock := [:model :aspect :parameter | |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
339 |
((model value = something) = lastValue) not |
352
ba7970fbcde2
Fix #selectValue: (Used by T-gen).
Stefan Vogel <sv@exept.de>
parents:
268
diff
changeset
|
340 |
] |
ba7970fbcde2
Fix #selectValue: (Used by T-gen).
Stefan Vogel <sv@exept.de>
parents:
268
diff
changeset
|
341 |
|
ba7970fbcde2
Fix #selectValue: (Used by T-gen).
Stefan Vogel <sv@exept.de>
parents:
268
diff
changeset
|
342 |
"Modified: 31.12.1996 / 13:58:09 / stefan" |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
343 |
"Modified: 21.2.1997 / 18:27:26 / cg" |
125 | 344 |
! |
345 |
||
346 |
subjectChannel:aValueHolder |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
347 |
"setup to use aValueHolder as model" |
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
348 |
|
125 | 349 |
self model:aValueHolder |
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
350 |
|
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
351 |
"Modified: 21.2.1997 / 18:19:46 / cg" |
75 | 352 |
! ! |
353 |
||
129 | 354 |
!PluggableAdaptor class methodsFor:'documentation'! |
355 |
||
356 |
version |
|
443
5c57a8861677
st-80 compatible selectValue:
Claus Gittinger <cg@exept.de>
parents:
352
diff
changeset
|
357 |
^ '$Header: /cvs/stx/stx/libview2/PluggableAdaptor.st,v 1.14 1997-02-21 19:38:15 cg Exp $' |
129 | 358 |
! ! |