author | Stefan Vogel <sv@exept.de> |
Mon, 30 Sep 2002 15:19:07 +0200 | |
changeset 2622 | 21c8f2e131ea |
parent 2445 | 311a83c7d4ee |
child 2748 | c1efcd93841b |
permissions | -rw-r--r-- |
133 | 1 |
" |
2 |
COPYRIGHT (c) 1994 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 |
" |
|
114 | 12 |
|
2251 | 13 |
"{ Package: 'stx:libwidg' }" |
14 |
||
129 | 15 |
ValueHolder subclass:#SelectionInList |
359 | 16 |
instanceVariableNames:'listHolder selectionIndexHolder' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-Support-Models' |
|
114 | 20 |
! |
21 |
||
133 | 22 |
!SelectionInList class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1994 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 |
Instances of SelectionInList can be used as model for |
|
41 |
a SelectionInListView or a PopUpList. |
|
42 |
They keep two values: a list value and a selection value; |
|
43 |
both are referred to via valueHolders. |
|
44 |
||
577 | 45 |
If any of those two changes, the selectionInList notifies its |
46 |
dependents via a change notification, |
|
47 |
using #list or #selectionIndex as update aspect respectively. |
|
48 |
||
49 |
A popupList also knows how to deal with a selectionInList model; |
|
133 | 50 |
this makes it possible to have popupLists be somewhat exchangable |
51 |
with selectionInListViews. |
|
576 | 52 |
|
577 | 53 |
SelectionInLists only support a single selection within the list; |
54 |
use MultiSelectionInList, if multiple selections are needed. |
|
55 |
||
56 |
[instance variables:] |
|
57 |
listHolder <ValueHolder> holds the list |
|
58 |
selectionIndexHolder <ValueHolder> holdes the selectionIndex |
|
59 |
||
60 |
||
576 | 61 |
[see also:] |
577 | 62 |
SelectionInListView PopUpList |
63 |
MultiSelectionInList Model ValueHolder |
|
583 | 64 |
|
65 |
[author:] |
|
66 |
Claus Gittinger |
|
133 | 67 |
" |
68 |
! |
|
69 |
||
70 |
examples |
|
71 |
" |
|
576 | 72 |
basic setup using a selectionInList as model of a selectionInListView: |
590 | 73 |
[exBegin] |
133 | 74 |
|m v| |
75 |
||
76 |
m := SelectionInList new. |
|
77 |
m list:#('one' 'two' 'three' 'four'). |
|
78 |
m selectionIndex:2. |
|
79 |
||
80 |
v := SelectionInListView on:m. |
|
81 |
v open |
|
590 | 82 |
[exEnd] |
133 | 83 |
|
576 | 84 |
|
85 |
similar, a selectionInList as model of a popUpList: |
|
590 | 86 |
[exBegin] |
576 | 87 |
|m v| |
88 |
||
89 |
m := SelectionInList new. |
|
90 |
m list:#('one' 'two' 'three' 'four'). |
|
91 |
m selectionIndex:2. |
|
92 |
||
93 |
v := PopUpList on:m. |
|
94 |
v open |
|
590 | 95 |
[exEnd] |
576 | 96 |
|
97 |
||
98 |
using a combination-instance creation method: |
|
590 | 99 |
[exBegin] |
576 | 100 |
|m v| |
101 |
||
102 |
m := SelectionInList |
|
103 |
with:#('one' 'two' 'three' 'four') |
|
104 |
initialSelection:2. |
|
105 |
||
106 |
v := PopUpList on:m. |
|
107 |
v open |
|
590 | 108 |
[exEnd] |
576 | 109 |
|
110 |
||
111 |
two different views on the same selectionInList model: |
|
590 | 112 |
[exBegin] |
576 | 113 |
|m v1 v2| |
114 |
||
115 |
m := SelectionInList new. |
|
116 |
m list:#('one' 'two' 'three' 'four'). |
|
117 |
m selectionIndex:2. |
|
118 |
||
119 |
v1 := PopUpList on:m. |
|
120 |
v1 open. |
|
121 |
||
122 |
v2 := SelectionInListView on:m. |
|
123 |
v2 open |
|
590 | 124 |
[exEnd] |
576 | 125 |
|
126 |
||
133 | 127 |
two views on the same selectionInList: |
128 |
and a button, which adds an item to the list. |
|
590 | 129 |
[exBegin] |
133 | 130 |
|m v1 v2 b numItems| |
131 |
||
132 |
numItems := 4. |
|
133 |
||
134 |
m := SelectionInList new. |
|
135 |
m list:((1 to:numItems) collect:[:i | i printString]). |
|
136 |
m selectionIndex:2. |
|
137 |
||
138 |
v1 := ScrollableView forView:(SelectionInListView on:m). |
|
139 |
v1 open. |
|
140 |
||
141 |
v2 := ScrollableView forView:(SelectionInListView on:m). |
|
142 |
v2 open. |
|
143 |
||
144 |
b := Button label:'add item'. |
|
145 |
b action:[numItems := numItems + 1. |
|
576 | 146 |
m list:((1 to:numItems) collect:[:i | i printString]). |
147 |
]. |
|
133 | 148 |
b open |
590 | 149 |
[exEnd] |
133 | 150 |
" |
151 |
! ! |
|
152 |
||
114 | 153 |
!SelectionInList class methodsFor:'instance creation'! |
154 |
||
576 | 155 |
with:aList |
156 |
"return a new instance holding aList" |
|
157 |
||
1541 | 158 |
^ self new listHolder:(ValueHolder with:aList) |
576 | 159 |
|
1541 | 160 |
"Modified: / 21.5.1998 / 03:17:16 / cg" |
576 | 161 |
! |
162 |
||
163 |
with:aList initialSelection:index |
|
164 |
"return a new instance holding aList and initially selecting |
|
165 |
the item at index." |
|
166 |
||
167 |
^ (self with:aList) |
|
1541 | 168 |
selectionIndexHolder:(ValueHolder with:index) |
576 | 169 |
|
1541 | 170 |
"Created: / 24.4.1996 / 08:47:33 / cg" |
171 |
"Modified: / 21.5.1998 / 03:17:31 / cg" |
|
114 | 172 |
! ! |
173 |
||
200 | 174 |
!SelectionInList methodsFor:'accessing-holders'! |
175 |
||
176 |
listHolder |
|
576 | 177 |
"return the valueHolder which holds the list" |
200 | 178 |
|
179 |
^ listHolder |
|
576 | 180 |
|
181 |
"Modified: 24.4.1996 / 08:39:44 / cg" |
|
200 | 182 |
! |
183 |
||
184 |
listHolder:aValueHolder |
|
576 | 185 |
"set the valueHolder which holds the list. |
200 | 186 |
Q: should we forward a change-notification ?" |
187 |
||
188 |
listHolder notNil ifTrue:[ |
|
576 | 189 |
listHolder removeDependent:self |
200 | 190 |
]. |
191 |
listHolder := aValueHolder. |
|
192 |
listHolder addDependent:self |
|
576 | 193 |
|
194 |
"Modified: 24.4.1996 / 08:39:59 / cg" |
|
200 | 195 |
! |
114 | 196 |
|
200 | 197 |
selectionHolder |
576 | 198 |
"return someone holding on the selection itself (not the index). |
199 |
Since we have no one, create an adapter, to get up-to-date values." |
|
200 | 200 |
|
201 |
^ AspectAdaptor |
|
544 | 202 |
subject:self |
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
203 |
sendsUpdates:false |
544 | 204 |
accessWith:#selection |
205 |
assignWith:#'selection:' |
|
206 |
aspect:#selectionIndex |
|
207 |
||
576 | 208 |
"Modified: 24.4.1996 / 08:40:19 / cg" |
200 | 209 |
! |
210 |
||
211 |
selectionIndexHolder |
|
576 | 212 |
"return the valueHolder which holds the index" |
200 | 213 |
|
214 |
^ selectionIndexHolder |
|
576 | 215 |
|
216 |
"Modified: 24.4.1996 / 08:40:31 / cg" |
|
200 | 217 |
! |
218 |
||
219 |
selectionIndexHolder:aValueHolder |
|
576 | 220 |
"set the valueHolder which holdes the index. |
200 | 221 |
Q: should we forward a change-notification ?" |
222 |
||
223 |
selectionIndexHolder notNil ifTrue:[ |
|
576 | 224 |
selectionIndexHolder removeDependent:self |
200 | 225 |
]. |
226 |
selectionIndexHolder := aValueHolder. |
|
227 |
selectionIndexHolder addDependent:self |
|
576 | 228 |
|
229 |
"Modified: 24.4.1996 / 08:40:42 / cg" |
|
114 | 230 |
! ! |
231 |
||
133 | 232 |
!SelectionInList methodsFor:'accessing-values'! |
114 | 233 |
|
129 | 234 |
list |
576 | 235 |
"return the list - thats the thingy held by the listHolder" |
236 |
||
129 | 237 |
^ listHolder value |
576 | 238 |
|
239 |
"Modified: 24.4.1996 / 08:41:05 / cg" |
|
129 | 240 |
! |
241 |
||
133 | 242 |
list:aCollection |
577 | 243 |
"set the list - thats the thingy held by the listHolder" |
244 |
||
1436
72e392844594
send change notification if same list is assigned
Claus Gittinger <cg@exept.de>
parents:
1412
diff
changeset
|
245 |
aCollection == listHolder value ifTrue:[ |
72e392844594
send change notification if same list is assigned
Claus Gittinger <cg@exept.de>
parents:
1412
diff
changeset
|
246 |
"/ same value set again - send change notification |
1440 | 247 |
"/ manually (valueHolder does not ...) |
248 |
listHolder changed. |
|
2281
40177aeb765c
change notifications when changing the listHolder
Claus Gittinger <cg@exept.de>
parents:
2251
diff
changeset
|
249 |
] ifFalse:[ |
2445
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
250 |
aCollection isList ifTrue:[ |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
251 |
self listHolder:aCollection. |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
252 |
listHolder changed. |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
253 |
] ifFalse:[ |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
254 |
listHolder value:aCollection. |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
255 |
] |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
256 |
"/ listHolder value:aCollection. |
1436
72e392844594
send change notification if same list is assigned
Claus Gittinger <cg@exept.de>
parents:
1412
diff
changeset
|
257 |
]. |
577 | 258 |
|
1440 | 259 |
"Modified: / 2.2.1998 / 13:05:56 / cg" |
133 | 260 |
! |
261 |
||
262 |
selection |
|
577 | 263 |
"return the selections value (i.e. the entry in the list - not its index). |
264 |
If nothing is selected, nil is returned." |
|
129 | 265 |
|
266 |
|idx| |
|
267 |
||
268 |
idx := self selectionIndex. |
|
269 |
(idx isNil or:[idx == 0]) ifTrue:[^ nil]. |
|
270 |
^ self list at:idx |
|
576 | 271 |
|
577 | 272 |
"Modified: 24.4.1996 / 08:53:23 / cg" |
114 | 273 |
! |
274 |
||
133 | 275 |
selection:anObject |
276 |
"set the selection to be anObject. |
|
277 |
If anObject is not in the list, the selection is cleared" |
|
278 |
||
279 |
^ self selectionIndex:(self list indexOf:anObject ifAbsent:0) |
|
200 | 280 |
! |
281 |
||
576 | 282 |
selectionIndex |
577 | 283 |
"return the selections index (1..). Thats the thingy held by the indexHolder. |
284 |
For ST-80 compatibility, 0 is returned if nothing is selected." |
|
576 | 285 |
|
200 | 286 |
^ selectionIndexHolder value |
576 | 287 |
|
577 | 288 |
"Modified: 24.4.1996 / 08:53:45 / cg" |
200 | 289 |
! |
290 |
||
576 | 291 |
selectionIndex:newIndex |
292 |
"set the selectionIndex" |
|
293 |
||
200 | 294 |
selectionIndexHolder value ~= newIndex ifTrue:[ |
576 | 295 |
selectionIndexHolder value:newIndex |
200 | 296 |
] |
576 | 297 |
|
298 |
"Modified: 24.4.1996 / 08:42:04 / cg" |
|
133 | 299 |
! ! |
300 |
||
301 |
!SelectionInList methodsFor:'change & update'! |
|
302 |
||
303 |
update:something with:aParameter from:changedObject |
|
304 |
"whenever one of my holders value changes, |
|
305 |
tell my dependents about this" |
|
306 |
||
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
307 |
|oldSelection| |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
308 |
|
133 | 309 |
changedObject == selectionIndexHolder ifTrue:[ |
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
310 |
self changed:#selectionIndex |
133 | 311 |
] ifFalse:[ |
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
312 |
changedObject == listHolder ifTrue:[ |
2445
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
313 |
(something == #value |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
314 |
or:[ listHolder isList ]) |
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
315 |
ifTrue:[ |
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
316 |
oldSelection := selectionIndexHolder value. |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
317 |
self clearSelection. "/ clears without update |
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
318 |
self changed:#list. |
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
319 |
oldSelection ~= (selectionIndexHolder value) ifTrue:[ |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
320 |
selectionIndexHolder changed:#value |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
321 |
] |
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
322 |
] |
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
323 |
] |
133 | 324 |
] |
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
325 |
|
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
326 |
"Modified: 20.4.1996 / 13:08:32 / cg" |
133 | 327 |
! ! |
328 |
||
200 | 329 |
!SelectionInList methodsFor:'initialization'! |
330 |
||
331 |
initialize |
|
576 | 332 |
"initialize; create the valueHolders for the index and the list" |
333 |
||
1541 | 334 |
self listHolder:(ValueHolder with:List new). |
335 |
self selectionIndexHolder:(ValueHolder with:self zeroIndex). |
|
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
336 |
|
1541 | 337 |
"Modified: / 21.5.1998 / 03:17:56 / cg" |
200 | 338 |
! ! |
339 |
||
2251 | 340 |
!SelectionInList methodsFor:'obsolete - backward compatibility'! |
133 | 341 |
|
342 |
index |
|
576 | 343 |
"return the selections index. |
344 |
This is an OBSOLETE backward compatibility interface" |
|
133 | 345 |
|
2368 | 346 |
<resource:#obsolete> |
347 |
||
133 | 348 |
self obsoleteMethodWarning:'use #selectionIndex'. |
349 |
^ self selectionIndex |
|
576 | 350 |
|
351 |
"Modified: 24.4.1996 / 08:43:10 / cg" |
|
114 | 352 |
! |
353 |
||
129 | 354 |
index:newIndex |
576 | 355 |
"set the selections index. |
356 |
This is an OBSOLETE backward compatibility interface" |
|
129 | 357 |
|
2368 | 358 |
<resource:#obsolete> |
359 |
||
133 | 360 |
self obsoleteMethodWarning:'use #selectionIndex:'. |
129 | 361 |
^ self selectionIndex:newIndex |
576 | 362 |
|
363 |
"Modified: 24.4.1996 / 08:43:06 / cg" |
|
129 | 364 |
! |
365 |
||
133 | 366 |
indexHolder |
576 | 367 |
"return the valueHolder of the selections index. |
368 |
This is an OBSOLETE backward compatibility interface" |
|
133 | 369 |
|
2368 | 370 |
<resource:#obsolete> |
371 |
||
133 | 372 |
self obsoleteMethodWarning:'use #selectionIndexHolder'. |
373 |
^ self selectionIndexHolder |
|
576 | 374 |
|
375 |
"Modified: 24.4.1996 / 08:43:35 / cg" |
|
129 | 376 |
! |
377 |
||
133 | 378 |
indexHolder:aValueHolder |
576 | 379 |
"set the valueHolder of the selections index. |
380 |
This is an OBSOLETE backward compatibility interface" |
|
133 | 381 |
|
2368 | 382 |
<resource:#obsolete> |
383 |
||
133 | 384 |
self obsoleteMethodWarning:'use #selectionIndexHolder:'. |
385 |
^ self selectionIndexHolder:aValueHolder |
|
576 | 386 |
|
387 |
"Modified: 24.4.1996 / 08:43:43 / cg" |
|
133 | 388 |
! ! |
389 |
||
1032 | 390 |
!SelectionInList methodsFor:'printing & storing'! |
391 |
||
392 |
displayString |
|
1332 | 393 |
"return a string for display in inspectors etc." |
394 |
||
1032 | 395 |
^ self class name , '(' , self selectionIndex displayString , ')' |
396 |
||
1332 | 397 |
"Modified: 20.9.1997 / 11:41:31 / cg" |
1032 | 398 |
! ! |
399 |
||
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
400 |
!SelectionInList methodsFor:'private'! |
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
401 |
|
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
402 |
clearSelection |
576 | 403 |
"clear the selection. |
404 |
For ST-80 compatibility, a non-selection has an index of 0 |
|
405 |
although, nil sounds more natural to me ... (sigh)" |
|
406 |
||
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
407 |
selectionIndexHolder setValue:self zeroIndex. |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
408 |
|
576 | 409 |
"Modified: 24.4.1996 / 08:44:37 / cg" |
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
410 |
! ! |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
411 |
|
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
412 |
!SelectionInList methodsFor:'queries'! |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
413 |
|
1412 | 414 |
hasSelection |
415 |
"return true, if there is a selection |
|
416 |
" |
|
417 |
^ self numberOfSelections ~~ 0 |
|
418 |
! |
|
419 |
||
420 |
numberOfSelections |
|
421 |
"return the number of selected entries |
|
422 |
" |
|
423 |
|s| |
|
424 |
||
425 |
s:= selectionIndexHolder value. |
|
426 |
^ (s ~~ 0 and:[s notNil]) ifTrue:[1] ifFalse:[0] |
|
427 |
! |
|
428 |
||
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
429 |
zeroIndex |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
430 |
"return the selections index returned when nothing |
576 | 431 |
is selected. This method is provided to allow applications |
432 |
to deal transparently with SelectionInList models AND with |
|
433 |
MultSelectionInList models, which use different no-selection values. |
|
434 |
Although I would prefer nil, ST-80 uses 0 to represent `no-selection'. (sigh)" |
|
564
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
435 |
|
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
436 |
^ 0 |
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
437 |
|
0739243fcc1c
zeroIndex stuff / ST-80 compatible 0 for empty selection
Claus Gittinger <cg@exept.de>
parents:
544
diff
changeset
|
438 |
"Created: 20.4.1996 / 13:10:53 / cg" |
576 | 439 |
"Modified: 24.4.1996 / 08:46:18 / cg" |
526
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
440 |
! ! |
8203430fbadd
oops - clearing selection was wrong in MultiSelectionInList
ca
parents:
359
diff
changeset
|
441 |
|
204 | 442 |
!SelectionInList class methodsFor:'documentation'! |
443 |
||
444 |
version |
|
2445
311a83c7d4ee
update fix for SelectionInList/MultiSelectionInList models
Claus Gittinger <cg@exept.de>
parents:
2368
diff
changeset
|
445 |
^ '$Header: /cvs/stx/stx/libwidg/SelectionInList.st,v 1.28 2001-10-18 13:05:42 cg Exp $' |
204 | 446 |
! ! |