author | Claus Gittinger <cg@exept.de> |
Fri, 28 Jun 2019 09:21:50 +0200 | |
changeset 6078 | 08c9e2a47dc5 |
parent 6001 | 15a9b4bd3190 |
child 6222 | 83324268c4d7 |
permissions | -rw-r--r-- |
5845 | 1 |
"{ Encoding: utf8 }" |
2 |
||
1431 | 3 |
" |
4 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
1751 | 14 |
"{ Package: 'stx:libwidg2' }" |
15 |
||
5216 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
1390 | 18 |
List subclass:#HierarchicalList |
5866 | 19 |
instanceVariableNames:'root showRoot application monitoringTask monitoringTaskDelay |
20 |
additionalItemsToMonitorSemaphore' |
|
1390 | 21 |
classVariableNames:'' |
22 |
poolDictionaries:'' |
|
1430 | 23 |
category:'Views-Support' |
1390 | 24 |
! |
25 |
||
26 |
!HierarchicalList class methodsFor:'documentation'! |
|
27 |
||
1431 | 28 |
copyright |
29 |
" |
|
30 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
31 |
All Rights Reserved |
|
32 |
||
33 |
This software is furnished under a license and may be used |
|
34 |
only in accordance with the terms of that license and with the |
|
35 |
inclusion of the above copyright notice. This software may not |
|
36 |
be provided or otherwise made available to, or used by, any |
|
37 |
other person. No title to or ownership of the software is |
|
38 |
hereby transferred. |
|
39 |
" |
|
40 |
||
41 |
! |
|
42 |
||
1390 | 43 |
documentation |
44 |
" |
|
45 |
Hierarchical Lists are mostly like List, but adding and removing |
|
46 |
elements are handled by the items itself. |
|
5289 | 47 |
Special change notifications are emitted, |
48 |
whenever the list is changed. |
|
49 |
I am used mostly by the HierarchicalListView widget; |
|
50 |
see comments there. |
|
1390 | 51 |
|
52 |
[Instance variables:] |
|
53 |
root <HierarchicalItem> first item into list |
|
54 |
showRoot <Boolean> show or hide root item |
|
55 |
application <Application> the user is able to set an application |
|
56 |
which can be accessed by an item. |
|
57 |
[author:] |
|
58 |
Claus Atzkern |
|
59 |
||
60 |
[see also:] |
|
61 |
HierarchicalItem |
|
62 |
HierarchicalListView |
|
63 |
" |
|
64 |
! ! |
|
65 |
||
1818 | 66 |
!HierarchicalList methodsFor:'accessing-look'! |
1390 | 67 |
|
68 |
showRoot |
|
69 |
"show or hide root item |
|
70 |
" |
|
2430 | 71 |
showRoot isNil ifTrue:[ |
72 |
showRoot := true |
|
73 |
]. |
|
74 |
^ showRoot |
|
1390 | 75 |
! |
76 |
||
77 |
showRoot:aBoolean |
|
78 |
"show or hide root item |
|
79 |
" |
|
80 |
aBoolean ~~ self showRoot ifTrue:[ |
|
81 |
showRoot := aBoolean. |
|
82 |
||
83 |
root notNil ifTrue:[ |
|
1869 | 84 |
showRoot ifTrue:[ |
85 |
super addFirst:root |
|
86 |
] ifFalse:[ |
|
87 |
super removeFirst. |
|
88 |
root expand |
|
89 |
] |
|
1390 | 90 |
] |
91 |
] |
|
92 |
||
93 |
! ! |
|
94 |
||
1818 | 95 |
!HierarchicalList methodsFor:'accessing-monitoring task'! |
1390 | 96 |
|
97 |
monitoringTaskDelay |
|
98 |
"get the delay time of the monitoring task measured in seconds |
|
99 |
or nil( monitoring disabled ). The task runs through all items |
|
100 |
of the list performing #monitoringCycle and than at end of the |
|
101 |
list the task is suspended for monitoringTaskDelay seconds. |
|
102 |
" |
|
103 |
^ monitoringTaskDelay |
|
104 |
! |
|
105 |
||
106 |
monitoringTaskDelay:inSecondsOrNil |
|
107 |
"set the delay time of the monitoring task measured in seconds |
|
108 |
or nil( monitoring disabled ). The task runs through all items |
|
109 |
of the list performing #monitoringCycle and than at end of the |
|
110 |
list the task is suspended for monitoringTaskDelay seconds. |
|
111 |
" |
|
112 |
inSecondsOrNil isNil ifTrue:[ |
|
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
113 |
self stopMonitoringTask. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
114 |
monitoringTaskDelay := nil. |
1390 | 115 |
] ifFalse:[ |
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
116 |
monitoringTaskDelay := inSecondsOrNil. |
1390 | 117 |
self startMonitoringTask |
118 |
]. |
|
119 |
! ! |
|
120 |
||
1818 | 121 |
!HierarchicalList methodsFor:'accessing-mvc'! |
1390 | 122 |
|
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
123 |
addDependent:anObject |
5373 | 124 |
"restart the monitoringTask if necessary |
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
125 |
" |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
126 |
super addDependent:anObject. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
127 |
self startMonitoringTask. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
128 |
! |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
129 |
|
1390 | 130 |
application |
131 |
"returns the responsible application; if no application is defined, |
|
132 |
nil is returned |
|
133 |
" |
|
134 |
^ application |
|
135 |
! |
|
136 |
||
137 |
application:anApplication |
|
138 |
"set the responsible application |
|
139 |
" |
|
1733 | 140 |
application := anApplication. |
1390 | 141 |
! |
142 |
||
143 |
applicationsDo:aOneArgBlock |
|
144 |
"evaluate the block on each dependent application |
|
145 |
" |
|
146 |
|appl| |
|
147 |
||
148 |
dependents notNil ifTrue:[ |
|
149 |
dependents do:[:aDep| |
|
150 |
appl := aDep perform:#application ifNotUnderstood:nil. |
|
151 |
||
152 |
appl notNil ifTrue:[ |
|
153 |
aOneArgBlock value:appl |
|
154 |
] |
|
155 |
] |
|
156 |
] |
|
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
157 |
! |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
158 |
|
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
159 |
removeDependent:anObject |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
160 |
"stop the monitoringTask if no more dependencies exists |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
161 |
" |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
162 |
super removeDependent:anObject. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
163 |
|
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
164 |
dependents size == 0 ifTrue:[ |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
165 |
self stopMonitoringTask |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
166 |
]. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
167 |
|
1390 | 168 |
! ! |
169 |
||
1818 | 170 |
!HierarchicalList methodsFor:'accessing-root'! |
1390 | 171 |
|
172 |
root |
|
173 |
"get the root item |
|
174 |
" |
|
175 |
^ root |
|
176 |
||
177 |
! |
|
178 |
||
5216 | 179 |
root:aRootItem |
1390 | 180 |
"set the root item |
181 |
" |
|
4676 | 182 |
|children| |
1390 | 183 |
|
184 |
self stopMonitoringTask. |
|
185 |
||
5216 | 186 |
"/ inlink the previous root |
1390 | 187 |
root notNil ifTrue:[ |
188 |
root parent:nil. |
|
189 |
root := nil. |
|
190 |
]. |
|
191 |
||
5216 | 192 |
(root := aRootItem) isEmptyOrNil ifTrue:[ |
4676 | 193 |
self removeAll. |
194 |
] ifFalse:[ |
|
1869 | 195 |
self showRoot ifFalse:[root expand]. |
196 |
||
1390 | 197 |
root parent:self. |
198 |
children := OrderedCollection new. |
|
199 |
self showRoot ifTrue:[children add:root]. |
|
200 |
root addVisibleChildrenTo:children. |
|
4676 | 201 |
"/ self removeAll. |
202 |
"/ self addAll:children beforeIndex:1. |
|
203 |
self contents:children. |
|
1390 | 204 |
]. |
205 |
self startMonitoringTask. |
|
3070 | 206 |
|
207 |
"Modified: / 12-09-2006 / 18:22:42 / cg" |
|
1390 | 208 |
! ! |
209 |
||
210 |
!HierarchicalList methodsFor:'private'! |
|
211 |
||
1733 | 212 |
initContents:aSize |
5867 | 213 |
"setup defaults" |
214 |
||
5866 | 215 |
showRoot isNil ifTrue:[ showRoot := true ]. |
216 |
optionalAccessLock isNil ifTrue:[ |
|
5867 | 217 |
self beSynchronized |
5866 | 218 |
]. |
2430 | 219 |
|
1733 | 220 |
^ super initContents:aSize. |
5498 | 221 |
|
222 |
"Modified: / 23-02-2017 / 12:15:47 / stefan" |
|
5574 | 223 |
"Modified: / 09-08-2017 / 11:54:58 / cg" |
5866 | 224 |
"Modified (format): / 01-08-2018 / 15:00:29 / Claus Gittinger" |
5867 | 225 |
"Modified: / 01-08-2018 / 15:18:45 / Stefan Vogel" |
1733 | 226 |
! |
227 |
||
5997 | 228 |
itemAddAll:aListOfItems afterIndex:anIndex |
229 |
"insert all items after an index" |
|
230 |
||
231 |
self addAll:aListOfItems afterIndex:anIndex |
|
232 |
||
233 |
"Created: / 12-02-2019 / 17:19:43 / Claus Gittinger" |
|
234 |
! |
|
235 |
||
1390 | 236 |
itemAddAll:aListOfItems beforeIndex:anIndex |
5859 | 237 |
"insert all items before an index" |
238 |
||
239 |
self addAll:aListOfItems beforeIndex:anIndex |
|
240 |
||
241 |
"Modified: / 30-07-2018 / 11:29:55 / Stefan Vogel" |
|
1390 | 242 |
! |
243 |
||
244 |
itemChanged:what with:aPara from:anItem |
|
245 |
"catch notification from item; throw changeNotifications |
|
246 |
to dependencies; |
|
247 |
**** don't know what to do with a parameter and argument what |
|
248 |
**** list protocol **** |
|
249 |
" |
|
5859 | 250 |
|
1390 | 251 |
|index arrIdx "{ Class: SmallInteger }"| |
252 |
||
5859 | 253 |
(index := self identityIndexOf:anItem) ~~ 0 ifTrue:[ |
1390 | 254 |
arrIdx := index + firstIndex - 1. |
255 |
contentsArray basicAt:arrIdx put:anItem. |
|
256 |
||
257 |
dependents size ~~ 0 ifTrue:[ |
|
258 |
what isNil ifTrue:[self changed:#at: with:index] |
|
259 |
ifFalse:[self changed:#at: with:(Array with:index with:what)] |
|
260 |
] |
|
5859 | 261 |
]. |
262 |
||
263 |
"Modified: / 30-07-2018 / 14:26:24 / Stefan Vogel" |
|
1390 | 264 |
! |
265 |
||
266 |
itemRemoveFromIndex:start toIndex:stop |
|
267 |
"remove the items stored under startIndex up to and including |
|
5859 | 268 |
the items under stopIndex." |
269 |
||
270 |
^ self removeFromIndex:start toIndex:stop |
|
271 |
||
272 |
"Modified: / 30-07-2018 / 11:31:22 / Stefan Vogel" |
|
1390 | 273 |
! |
274 |
||
275 |
parentOrModel |
|
5859 | 276 |
"always returns nil" |
277 |
||
1390 | 278 |
^ nil |
5859 | 279 |
|
280 |
"Modified (comment): / 30-07-2018 / 11:31:33 / Stefan Vogel" |
|
6001 | 281 |
! |
282 |
||
283 |
refreshContents |
|
284 |
"for debugging - regenerate a fresh list, in case I am outdated" |
|
285 |
||
286 |
self root:root. |
|
287 |
||
288 |
"Created: / 13-02-2019 / 16:21:11 / Claus Gittinger" |
|
1390 | 289 |
! ! |
290 |
||
2493 | 291 |
!HierarchicalList methodsFor:'private-monitoring task'! |
1390 | 292 |
|
1437
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
293 |
monitoringCycle |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
294 |
"the block evaluated |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
295 |
" |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
296 |
|index item| |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
297 |
|
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
298 |
item := root. |
2430 | 299 |
index := 1. "/ on default discard first entry the root |
300 |
||
301 |
root isNil ifTrue:[ |
|
302 |
item := self at:index ifAbsent:nil. |
|
303 |
] ifFalse:[ |
|
304 |
self showRoot ifFalse:[ |
|
305 |
index := 0 "/ read list from begin |
|
306 |
] |
|
307 |
]. |
|
1437
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
308 |
|
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
309 |
[item notNil] whileTrue:[ |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
310 |
item monitoringCycle. |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
311 |
Processor yield. |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
312 |
index := index + 1. |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
313 |
item := self at:index ifAbsent:nil. |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
314 |
] |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
315 |
! |
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
316 |
|
1390 | 317 |
startMonitoringTask |
2223
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
318 |
"start the monitoring task; backgrund process finishes, when no (more) dependencies exist, |
2743 | 319 |
and the additionalItemsToMonitorSemaphore is not signalled |
320 |
(aka: no more background children to read)" |
|
321 |
||
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
322 |
|name| |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
323 |
|
2744
21b90562122b
Fix monitoring task starting (bug introduced in last version)
Stefan Vogel <sv@exept.de>
parents:
2743
diff
changeset
|
324 |
(monitoringTask isNil |
21b90562122b
Fix monitoring task starting (bug introduced in last version)
Stefan Vogel <sv@exept.de>
parents:
2743
diff
changeset
|
325 |
and:[self monitoringTaskDelay notNil |
2743 | 326 |
and:[(dependents size ~~ 0) or:[additionalItemsToMonitorSemaphore notNil]]] |
1390 | 327 |
) ifTrue:[ |
3832 | 328 |
monitoringTask := |
329 |
[ |
|
330 |
[(dependents size ~~ 0) or:[additionalItemsToMonitorSemaphore notNil]] whileTrue:[ |
|
331 |
self monitoringCycle. |
|
332 |
additionalItemsToMonitorSemaphore isNil ifTrue:[ |
|
333 |
Delay waitForSeconds:self monitoringTaskDelay |
|
334 |
] ifFalse:[ |
|
335 |
additionalItemsToMonitorSemaphore waitWithTimeout:self monitoringTaskDelay. |
|
336 |
] |
|
337 |
]. |
|
338 |
] newProcess. |
|
2273 | 339 |
|
340 |
monitoringTask priorityRange:(Processor userBackgroundPriority to:Processor activePriority). |
|
2412 | 341 |
monitoringTask restartable:true. |
2273 | 342 |
monitoringTask resume. |
1437
3ff0d67ec0af
separate monitoringCycle from startMonitoringCycle
Claus Gittinger <cg@exept.de>
parents:
1431
diff
changeset
|
343 |
|
1439
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
344 |
name := application notNil ifTrue:[application class name] ifFalse:['???']. |
ddcd6e87e406
wait for termination monitoringTask before continue
Claus Gittinger <cg@exept.de>
parents:
1437
diff
changeset
|
345 |
monitoringTask name:'HierarchicalList: ', name. |
1390 | 346 |
]. |
347 |
^ true. |
|
348 |
! |
|
349 |
||
350 |
stopMonitoringTask |
|
2743 | 351 |
"stop the monitoring task" |
352 |
||
1616 | 353 |
|task| |
354 |
||
355 |
(task := monitoringTask) notNil ifTrue:[ |
|
1390 | 356 |
monitoringTask := nil. |
1616 | 357 |
|
3832 | 358 |
Error |
359 |
handle:[:ex| ] |
|
360 |
do:[ |
|
361 |
task terminateWithAllSubprocessesInGroup. |
|
362 |
task waitUntilTerminated. |
|
363 |
] |
|
1390 | 364 |
] |
2223
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
365 |
! |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
366 |
|
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
367 |
triggerUpdateCycle |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
368 |
additionalItemsToMonitorSemaphore isNil ifTrue:[ |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
369 |
[ |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
370 |
additionalItemsToMonitorSemaphore isNil ifTrue:[ |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
371 |
additionalItemsToMonitorSemaphore := Semaphore new. |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
372 |
]. |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
373 |
] valueUninterruptably |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
374 |
]. |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
375 |
|
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
376 |
monitoringTaskDelay isNil ifTrue:[ |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
377 |
monitoringTaskDelay := 10 |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
378 |
]. |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
379 |
|
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
380 |
additionalItemsToMonitorSemaphore signalOnce. |
c34e7fd25e53
monitoring; delayed for directories; never for remoteDirectories
penk
parents:
1961
diff
changeset
|
381 |
self startMonitoringTask. |
1390 | 382 |
! ! |
383 |
||
384 |
!HierarchicalList methodsFor:'protocol'! |
|
385 |
||
386 |
childrenFor:anItem |
|
5859 | 387 |
"returns the children for an item or an empty list" |
388 |
||
1390 | 389 |
^ #() |
5859 | 390 |
|
391 |
"Modified (comment): / 30-07-2018 / 11:33:09 / Stefan Vogel" |
|
1390 | 392 |
! |
393 |
||
394 |
iconFor:anItem |
|
395 |
"returns the icon for an item or nil |
|
396 |
" |
|
397 |
^ nil |
|
398 |
! |
|
399 |
||
400 |
labelFor:anItem |
|
3848 | 401 |
"returns the label for an item or nil" |
402 |
||
1390 | 403 |
^ nil |
404 |
! |
|
405 |
||
406 |
middleButtonMenuFor:anItem |
|
407 |
"returns the middleButton menu for an item or nil |
|
408 |
" |
|
409 |
^ nil |
|
410 |
||
411 |
||
412 |
! ! |
|
413 |
||
414 |
!HierarchicalList class methodsFor:'documentation'! |
|
415 |
||
416 |
version |
|
5216 | 417 |
^ '$Header$' |
3832 | 418 |
! |
419 |
||
420 |
version_CVS |
|
5216 | 421 |
^ '$Header$' |
1390 | 422 |
! ! |
4676 | 423 |