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