542
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 by Claus Gittinger / 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 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
Object subclass:#DataSetColumn
|
607
|
17 |
instanceVariableNames:'columnNumber dataSet label minWidth width description form form2
|
|
18 |
formInset textInset writeSelector drawableAction backgroundColor
|
584
|
19 |
foregroundColor'
|
607
|
20 |
classVariableNames:''
|
542
|
21 |
poolDictionaries:''
|
|
22 |
category:'Views-DataSet'
|
|
23 |
!
|
|
24 |
|
|
25 |
!DataSetColumn class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
!
|
|
43 |
|
|
44 |
documentation
|
|
45 |
"
|
|
46 |
represent one single column description of a DataSetView
|
|
47 |
|
|
48 |
[Instance variables:]
|
|
49 |
|
|
50 |
description <DataSetColumnSpec> the column description
|
|
51 |
dataSet <DSVColumnView> the view it belongs to
|
|
52 |
width <Integer> width of column
|
|
53 |
minWidth <Integer> minimum required width by the column
|
|
54 |
formInset <Integer> top inset of a form
|
|
55 |
textInset <Integer> top inset of a string
|
|
56 |
form <Form> a form drawn when a cell is unselected
|
|
57 |
form2 <Form> a second form (used by Toggle off).
|
|
58 |
label <misc> cellLabel on device
|
|
59 |
|
|
60 |
[author:]
|
|
61 |
Claus Atzkern
|
|
62 |
|
|
63 |
[see also:]
|
|
64 |
DataSetColumnSpec
|
|
65 |
DSVColumnView
|
|
66 |
DataSetView
|
|
67 |
"
|
|
68 |
|
|
69 |
|
|
70 |
! !
|
|
71 |
|
|
72 |
!DataSetColumn methodsFor:'accessing'!
|
|
73 |
|
|
74 |
at:aRowNr
|
|
75 |
"get the value of the raw at an index, aRowNr
|
|
76 |
"
|
614
|
77 |
^ description row:(dataSet at:aRowNr) at:columnNumber
|
542
|
78 |
!
|
|
79 |
|
|
80 |
at:aRowNr put:something
|
|
81 |
"set the value of the raw at an index, aRowNr
|
|
82 |
"
|
614
|
83 |
description row:(dataSet at:aRowNr) at:columnNumber put:something
|
542
|
84 |
!
|
|
85 |
|
584
|
86 |
backgroundColor
|
|
87 |
^ backgroundColor
|
|
88 |
!
|
|
89 |
|
|
90 |
foregroundColor
|
|
91 |
^ foregroundColor
|
|
92 |
!
|
|
93 |
|
542
|
94 |
label
|
|
95 |
"get the label assigned to the column
|
|
96 |
"
|
|
97 |
^ label
|
|
98 |
|
|
99 |
|
|
100 |
!
|
|
101 |
|
|
102 |
width
|
|
103 |
"returns the width in pixels
|
|
104 |
"
|
|
105 |
|end|
|
|
106 |
|
|
107 |
width notNil ifTrue:[ ^ width ]. "/ already computed
|
|
108 |
|
|
109 |
( (width := description width) ~~ 0 "/ fixed size
|
|
110 |
or:[(width := description minWidth) ~~ 0] "/ start size
|
607
|
111 |
) ifFalse:[
|
|
112 |
drawableAction notNil ifTrue:[
|
|
113 |
"/ take maximum 10 entries to calculate the width;
|
|
114 |
"/ can be resized later if neccessary
|
542
|
115 |
|
607
|
116 |
end := 10 min:dataSet numberOfRows.
|
542
|
117 |
|
607
|
118 |
1 to:end do:[:aRowNr||lbl|
|
|
119 |
lbl := drawableAction value:aRowNr.
|
542
|
120 |
|
607
|
121 |
(lbl respondsTo:#widthOn:) ifTrue:[
|
|
122 |
width := width max:(lbl widthOn:dataSet)
|
|
123 |
] ifFalse:[
|
|
124 |
lbl notNil ifTrue:[
|
|
125 |
width := width max:(lbl displayString widthOn:dataSet)
|
|
126 |
]
|
542
|
127 |
]
|
607
|
128 |
].
|
|
129 |
description editorType ~~ #None ifTrue:[
|
|
130 |
width := width + (dataSet font widthOn:dataSet device)
|
|
131 |
].
|
|
132 |
form notNil ifTrue:[
|
|
133 |
width := width + form width
|
542
|
134 |
]
|
607
|
135 |
] ifFalse:[
|
|
136 |
width := width + form2 width
|
542
|
137 |
].
|
607
|
138 |
label notNil ifTrue:[
|
|
139 |
width := width max:(label widthOn:dataSet)
|
542
|
140 |
].
|
|
141 |
].
|
|
142 |
^ width := minWidth := width + dataSet separatorSize + (2 * dataSet horizontalSpacing).
|
|
143 |
!
|
|
144 |
|
|
145 |
width:aWidth
|
|
146 |
"set the width
|
|
147 |
"
|
|
148 |
|w|
|
|
149 |
|
545
|
150 |
(w := description width) ~~ 0 ifTrue:[ "/ fixed size
|
|
151 |
width := minWidth := w
|
542
|
152 |
] ifFalse:[
|
|
153 |
width := aWidth max:minWidth
|
|
154 |
].
|
|
155 |
|
|
156 |
! !
|
|
157 |
|
|
158 |
!DataSetColumn methodsFor:'drawing'!
|
|
159 |
|
584
|
160 |
drawFrom:start to:stop yTop:yTop yBot:yBot with:fgColor and:bgColor
|
542
|
161 |
"redraw rows between start and stop
|
|
162 |
"
|
607
|
163 |
|lgCol dkCol fg bg val drawColSep n isLast lblFg lblBg
|
542
|
164 |
rowHeight "{ Class:SmallInteger }"
|
|
165 |
nTimes "{ Class:SmallInteger }"
|
607
|
166 |
sepSize "{ Class:SmallInteger }"
|
542
|
167 |
y "{ Class:SmallInteger }"
|
607
|
168 |
y1 "{ Class:SmallInteger }"
|
542
|
169 |
x "{ Class:SmallInteger }"
|
607
|
170 |
w "{ Class:SmallInteger }"
|
542
|
171 |
|
|
|
172 |
rowHeight := dataSet rowHeight.
|
|
173 |
nTimes := stop - start + 1.
|
607
|
174 |
sepSize := dataSet separatorSize.
|
542
|
175 |
|
604
|
176 |
(bg := backgroundColor) isNil ifTrue:[
|
|
177 |
bg := bgColor
|
|
178 |
] ifFalse:[
|
584
|
179 |
dataSet paint:bg.
|
607
|
180 |
dataSet fillRectangleX:0 y:yTop width:width height:(nTimes * rowHeight - 1)
|
584
|
181 |
].
|
607
|
182 |
(fg := foregroundColor) notNil ifTrue:[
|
|
183 |
lgCol := fg
|
|
184 |
] ifFalse:[
|
|
185 |
fg := fgColor.
|
|
186 |
lgCol := dataSet hgLgFgColor.
|
|
187 |
].
|
|
188 |
dkCol := dataSet hgLgBgColor.
|
|
189 |
y := yTop + textInset.
|
|
190 |
x := dataSet horizontalSpacing.
|
|
191 |
val := nil.
|
542
|
192 |
|
607
|
193 |
start to:stop do:[:i|
|
|
194 |
(dataSet isSelected:i inColumn:columnNumber) ifTrue:[
|
|
195 |
dataSet paint:dkCol.
|
|
196 |
dataSet fillRectangleX:0 y:(y - textInset) width:width height:(rowHeight - 1 - sepSize).
|
|
197 |
lblFg := lgCol.
|
|
198 |
lblBg := dkCol.
|
542
|
199 |
|
607
|
200 |
description rendererType == #rowSelector ifTrue:[
|
|
201 |
val := form2
|
542
|
202 |
]
|
|
203 |
] ifFalse:[
|
607
|
204 |
lblFg := fg.
|
|
205 |
lblBg := bg.
|
|
206 |
].
|
|
207 |
(val notNil or:[drawableAction notNil and:[(val := drawableAction value:i) notNil]]) ifTrue:[
|
|
208 |
val isText ifTrue:[
|
|
209 |
lblFg := self extractForegrounColorFromText:val ifAbsent:lblFg.
|
|
210 |
].
|
|
211 |
dataSet paint:lblFg on:lblBg.
|
|
212 |
val displayOn:dataSet x:x y:y.
|
|
213 |
val := nil.
|
|
214 |
].
|
|
215 |
y := y + rowHeight
|
542
|
216 |
].
|
584
|
217 |
dataSet paint:fg on:bg.
|
542
|
218 |
|
|
219 |
form notNil ifTrue:[
|
607
|
220 |
y := yTop + formInset.
|
|
221 |
x := width - form width - sepSize.
|
542
|
222 |
|
|
223 |
form2 isNil ifTrue:[
|
|
224 |
nTimes timesRepeat:[
|
568
|
225 |
dataSet displayForm:form x:x y:y.
|
542
|
226 |
y := y + rowHeight.
|
|
227 |
]
|
|
228 |
] ifFalse:[
|
|
229 |
x := x // 2.
|
|
230 |
|
|
231 |
start to:stop do:[:i|
|
607
|
232 |
val := (self at:i) == false ifTrue:[form2] ifFalse:[form].
|
|
233 |
dataSet displayForm:val x:x y:y.
|
542
|
234 |
y := y + rowHeight.
|
|
235 |
]
|
|
236 |
].
|
|
237 |
].
|
|
238 |
|
|
239 |
"/ ************************** DRAW SEPARATORS **************************
|
|
240 |
|
607
|
241 |
drawColSep := description showColSeparator.
|
|
242 |
w := width - 1.
|
542
|
243 |
|
607
|
244 |
sepSize == 1 ifTrue:[
|
604
|
245 |
dataSet paint:fgColor.
|
542
|
246 |
|
|
247 |
drawColSep ifTrue:[
|
607
|
248 |
dataSet displayLineFromX:w y:yTop toX:w y:yBot
|
542
|
249 |
].
|
|
250 |
description showRowSeparator ifTrue:[
|
607
|
251 |
y := yTop - 1.
|
542
|
252 |
|
|
253 |
nTimes timesRepeat:[
|
|
254 |
y := y + rowHeight.
|
607
|
255 |
dataSet displayLineFromX:0 y:y toX:w y:y.
|
542
|
256 |
]
|
|
257 |
].
|
|
258 |
^ self
|
|
259 |
].
|
|
260 |
|
|
261 |
"/ draw 3D separators
|
|
262 |
|
|
263 |
dkCol := dataSet separatorDarkColor.
|
568
|
264 |
lgCol := dataSet separatorLightColor.
|
|
265 |
|
542
|
266 |
drawColSep ifTrue:[
|
|
267 |
dataSet paint:lgCol.
|
607
|
268 |
y := yBot - 1. dataSet displayLineFromX:w y:yTop toX:w y:y.
|
|
269 |
w := w - 1. dataSet displayLineFromX:w y:yTop toX:w y:y.
|
542
|
270 |
dataSet paint:dkCol.
|
607
|
271 |
y := y - 1.
|
|
272 |
w := w - 1. dataSet displayLineFromX:w y:yTop toX:w y:y.
|
|
273 |
w := w - 1. dataSet displayLineFromX:w y:yTop toX:w y:y.
|
|
274 |
w := width - 1.
|
|
275 |
isLast := dataSet lastColumn == self.
|
542
|
276 |
].
|
|
277 |
|
|
278 |
description showRowSeparator ifTrue:[
|
607
|
279 |
drawColSep ifTrue:[
|
|
280 |
n := w - 2
|
|
281 |
] ifFalse:[
|
|
282 |
n := w.
|
|
283 |
].
|
|
284 |
dataSet paint:lgCol.
|
|
285 |
y := yTop - 1.
|
542
|
286 |
|
607
|
287 |
nTimes timesRepeat:[
|
|
288 |
y := y + rowHeight.
|
|
289 |
y1 := y - 1.
|
|
290 |
dataSet displayLineFromX:0 y:y toX:w y:y.
|
|
291 |
dataSet displayLineFromX:0 y:y1 toX:w y:y1.
|
|
292 |
].
|
542
|
293 |
|
607
|
294 |
dataSet paint:dkCol.
|
|
295 |
y := yTop.
|
|
296 |
|
|
297 |
nTimes timesRepeat:[
|
|
298 |
y := y + rowHeight.
|
|
299 |
y1 := y - 4. dataSet displayLineFromX:0 y:y1 toX:n y:y1.
|
|
300 |
y1 := y - 3. dataSet displayLineFromX:0 y:y1 toX:n y:y1.
|
542
|
301 |
|
607
|
302 |
drawColSep ifTrue:[
|
|
303 |
dataSet displayPointX:n y:y - 1.
|
|
304 |
isLast ifFalse:[
|
|
305 |
dataSet displayPointX:w y:y1
|
|
306 |
]
|
542
|
307 |
]
|
607
|
308 |
].
|
|
309 |
|
|
310 |
dataSet size == stop ifTrue:[
|
|
311 |
dataSet paint:lgCol.
|
|
312 |
dataSet displayPointX:n y:y - 1.
|
|
313 |
]
|
|
314 |
]
|
|
315 |
|
|
316 |
!
|
|
317 |
|
|
318 |
extractForegrounColorFromText:aText ifAbsent:aDefColor
|
|
319 |
"extract foreground color from a text object; if no color
|
|
320 |
detected, the default color is returned.
|
|
321 |
"
|
|
322 |
|run color|
|
|
323 |
|
|
324 |
run := aText emphasis.
|
|
325 |
|
|
326 |
run size == 0 ifFalse:[
|
|
327 |
run := run first.
|
|
328 |
|
|
329 |
run size == 0 ifTrue:[
|
|
330 |
(color := run value) isColor ifTrue:[^ color]
|
542
|
331 |
] ifFalse:[
|
607
|
332 |
run do:[:r| (color := r value) isColor ifTrue:[^ color]]
|
542
|
333 |
]
|
|
334 |
].
|
607
|
335 |
^ aDefColor
|
542
|
336 |
|
|
337 |
!
|
|
338 |
|
|
339 |
invalidate
|
|
340 |
"set to invalidate; forces a recomputation
|
|
341 |
"
|
568
|
342 |
minWidth := width := nil.
|
542
|
343 |
|
|
344 |
! !
|
|
345 |
|
614
|
346 |
!DataSetColumn methodsFor:'editing'!
|
|
347 |
|
|
348 |
editorAt:aRowNr in:aView with:fg bg:bg
|
|
349 |
|
|
350 |
^ description editorOn:(dataSet at:aRowNr)
|
|
351 |
value:(self at:aRowNr)
|
|
352 |
in:aView
|
|
353 |
with:fg
|
|
354 |
bg:bg.
|
|
355 |
|
|
356 |
|
|
357 |
! !
|
|
358 |
|
542
|
359 |
!DataSetColumn methodsFor:'event handling'!
|
|
360 |
|
|
361 |
doesNotUnderstand:aMessage
|
|
362 |
|
|
363 |
(description respondsTo:(aMessage selector)) ifTrue:[
|
|
364 |
^ aMessage sendTo:description
|
|
365 |
].
|
|
366 |
^ super doesNotUnderstand:aMessage
|
|
367 |
|
|
368 |
!
|
|
369 |
|
|
370 |
textInsetChanged:aTextInset
|
|
371 |
"recompute all attributes
|
|
372 |
"
|
607
|
373 |
|lbl img|
|
542
|
374 |
|
|
375 |
drawableAction notNil ifTrue:[
|
|
376 |
textInset := dataSet verticalSpacing.
|
|
377 |
|
|
378 |
dataSet numberOfRows ~~ 0 ifTrue:[
|
|
379 |
lbl := drawableAction value:1.
|
|
380 |
|
|
381 |
(lbl isString or:[lbl isNumber]) ifTrue:[
|
|
382 |
textInset := aTextInset
|
584
|
383 |
] ifFalse:[
|
|
384 |
(lbl isNil and:[description printSelector isNil]) ifTrue:[
|
|
385 |
textInset := aTextInset.
|
|
386 |
]
|
542
|
387 |
]
|
607
|
388 |
]
|
|
389 |
].
|
542
|
390 |
|
607
|
391 |
(img := form2 ? form) isNil ifTrue:[
|
|
392 |
formInset := 0
|
|
393 |
] ifFalse:[
|
|
394 |
formInset := ( (dataSet rowHeight)
|
|
395 |
- img height
|
|
396 |
- (dataSet separatorSize)
|
|
397 |
) // 2.
|
|
398 |
|
|
399 |
drawableAction isNil ifTrue:[
|
|
400 |
textInset := formInset
|
|
401 |
]
|
542
|
402 |
].
|
|
403 |
|
|
404 |
|
|
405 |
! !
|
|
406 |
|
|
407 |
!DataSetColumn methodsFor:'grow & degrow'!
|
|
408 |
|
|
409 |
growWidth:n
|
|
410 |
"grow the width for n pixels
|
|
411 |
"
|
|
412 |
width := width + n.
|
|
413 |
|
|
414 |
|
|
415 |
!
|
|
416 |
|
|
417 |
minWidth
|
|
418 |
"get my minimum width required by the entries into the column
|
|
419 |
"
|
|
420 |
^ minWidth notNil ifTrue:[minWidth] ifFalse:[self width]
|
|
421 |
|
|
422 |
|
|
423 |
!
|
|
424 |
|
|
425 |
setMinWidth
|
|
426 |
"set the width to the required width. returns the psitive delta width
|
|
427 |
"
|
|
428 |
|deltaX|
|
|
429 |
|
|
430 |
deltaX := width - minWidth.
|
|
431 |
width := minWidth.
|
|
432 |
^ deltaX.
|
|
433 |
|
|
434 |
|
|
435 |
! !
|
|
436 |
|
|
437 |
!DataSetColumn methodsFor:'initialization'!
|
|
438 |
|
607
|
439 |
on:aDSVColumnView description:aDescription columnNumber:aNumber
|
542
|
440 |
"instance creation; set attributes dependent on the description
|
|
441 |
"
|
614
|
442 |
|rendererType device selector format idx type|
|
542
|
443 |
|
607
|
444 |
columnNumber := aNumber.
|
584
|
445 |
dataSet := aDSVColumnView.
|
|
446 |
description := aDescription.
|
|
447 |
rendererType := description rendererType.
|
|
448 |
form := width := form2 := nil.
|
|
449 |
device := dataSet device.
|
595
|
450 |
label := description rawLabel.
|
584
|
451 |
drawableAction := nil.
|
|
452 |
backgroundColor := description backgroundColor.
|
|
453 |
foregroundColor := description foregroundColor.
|
|
454 |
|
|
455 |
backgroundColor notNil ifTrue:[
|
|
456 |
backgroundColor := backgroundColor on:aDSVColumnView device
|
|
457 |
].
|
|
458 |
foregroundColor notNil ifTrue:[
|
|
459 |
foregroundColor := foregroundColor on:aDSVColumnView device
|
|
460 |
].
|
542
|
461 |
|
|
462 |
label isImage ifTrue:[
|
|
463 |
label := label onDevice:device
|
|
464 |
].
|
|
465 |
|
|
466 |
rendererType == #CheckToggle ifTrue:[
|
607
|
467 |
form := dataSet toggleOnButton.
|
|
468 |
form2 := dataSet toggleOffButton.
|
542
|
469 |
^ self
|
|
470 |
].
|
|
471 |
|
|
472 |
rendererType == #rowSelector ifTrue:[
|
607
|
473 |
form2 := dataSet rowSelectorButton.
|
542
|
474 |
^ self
|
|
475 |
].
|
|
476 |
|
|
477 |
(rendererType == #ComboBox or:[rendererType == #ComboList]) ifTrue:[
|
607
|
478 |
form := dataSet comboViewButton.
|
542
|
479 |
].
|
|
480 |
|
|
481 |
selector := description printSelector.
|
|
482 |
|
|
483 |
selector notNil ifTrue:[
|
|
484 |
drawableAction := [:aRowNr|
|
614
|
485 |
(dataSet at:aRowNr) perform:selector with:dataSet
|
542
|
486 |
].
|
|
487 |
^ self
|
|
488 |
].
|
|
489 |
|
614
|
490 |
( (format := description formatString) notNil
|
|
491 |
and:[(type := description type) == #number or:[type == #numberOrNil]]
|
|
492 |
) ifTrue:[
|
542
|
493 |
"/ has a format string for number (supports only floats)
|
|
494 |
|
614
|
495 |
(idx := format indexOf:$.) ~~ 0 ifTrue:[
|
|
496 |
idx := format size - idx
|
542
|
497 |
].
|
614
|
498 |
format := '%0.', idx printString, 'f'.
|
542
|
499 |
|
|
500 |
drawableAction := [:aRowNr||num|
|
614
|
501 |
(num := self at:aRowNr) isReal ifTrue:[
|
|
502 |
num := num asFloat printfPrintString:format.
|
542
|
503 |
].
|
|
504 |
num
|
614
|
505 |
]
|
|
506 |
] ifFalse:[ "/ default: no format string
|
|
507 |
drawableAction := [:aRowNr| self at:aRowNr ]
|
|
508 |
]
|
542
|
509 |
|
|
510 |
|
|
511 |
! !
|
|
512 |
|
|
513 |
!DataSetColumn methodsFor:'queries'!
|
|
514 |
|
607
|
515 |
canSelect:aRowNr
|
|
516 |
"returns true if cell in column is selectable
|
|
517 |
"
|
|
518 |
|s|
|
|
519 |
|
|
520 |
description canSelect ifTrue:[
|
|
521 |
^ ((s := description selectSelector) isNil or:[(dataSet at:aRowNr) perform:s])
|
|
522 |
].
|
|
523 |
^ false
|
|
524 |
|
|
525 |
!
|
|
526 |
|
542
|
527 |
heightOfHighestRow
|
|
528 |
"returns the height of the highest row in pixels
|
|
529 |
"
|
|
530 |
|hObj hMin end|
|
|
531 |
|
|
532 |
hMin := (form ? dataSet font) heightOn:dataSet device.
|
|
533 |
|
|
534 |
(hObj := description height) == 0 ifTrue:[
|
|
535 |
drawableAction notNil ifTrue:[
|
|
536 |
"/ search first none empty drawable object
|
|
537 |
end := 10 min:dataSet numberOfRows.
|
|
538 |
|
|
539 |
1 to:end do:[:aRowNr| |lbl|
|
|
540 |
lbl := drawableAction value:aRowNr.
|
|
541 |
|
|
542 |
lbl notNil ifTrue:[
|
|
543 |
(lbl respondsTo:#heightOn:) ifTrue:[
|
|
544 |
hObj := lbl heightOn:dataSet
|
|
545 |
] ifFalse:[
|
|
546 |
hObj := lbl displayString heightOn:dataSet
|
|
547 |
].
|
|
548 |
^ hMin max:hObj
|
|
549 |
]
|
|
550 |
]
|
|
551 |
]
|
|
552 |
].
|
|
553 |
^ hMin max:hObj.
|
|
554 |
! !
|
|
555 |
|
|
556 |
!DataSetColumn methodsFor:'searching'!
|
|
557 |
|
|
558 |
findRowNrStartingWithChar:aChar start:start stop:stop
|
|
559 |
"find the first row starting at start to stop, which drawable label
|
|
560 |
starts with the character, aChar. The index of the detected row is
|
|
561 |
returned or if no row is found 0.
|
|
562 |
"
|
|
563 |
|char|
|
|
564 |
|
|
565 |
drawableAction notNil ifTrue:[
|
|
566 |
char := aChar asLowercase.
|
|
567 |
|
|
568 |
start to:stop do:[:aRowNr| |lbl|
|
|
569 |
lbl := drawableAction value:aRowNr.
|
|
570 |
|
|
571 |
lbl isString ifTrue:[
|
|
572 |
(lbl size ~~ 0 and:[(lbl at:1) asLowercase == char]) ifTrue:[
|
|
573 |
^ aRowNr
|
|
574 |
]
|
|
575 |
] ifFalse:[
|
|
576 |
lbl isNil ifFalse:[
|
|
577 |
^ 0
|
|
578 |
]
|
|
579 |
]
|
|
580 |
]
|
|
581 |
].
|
|
582 |
^ 0
|
|
583 |
|
|
584 |
! !
|
|
585 |
|
|
586 |
!DataSetColumn class methodsFor:'documentation'!
|
|
587 |
|
|
588 |
version
|
614
|
589 |
^ '$Header: /cvs/stx/stx/libwidg2/DataSetColumn.st,v 1.10 1997-11-12 16:27:30 ca Exp $'
|
542
|
590 |
! !
|