5841
|
1 |
"{ Package: 'stx:libwidg2' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
AbstractHierarchicalItem subclass:#AbstractHierarchicalItemWithModel
|
|
6 |
instanceVariableNames:'model'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Views-Support'
|
|
10 |
!
|
|
11 |
|
|
12 |
!AbstractHierarchicalItemWithModel class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
documentation to be added.
|
|
17 |
|
|
18 |
[author:]
|
|
19 |
Claus Gittinger
|
|
20 |
|
|
21 |
[instance variables:]
|
|
22 |
|
|
23 |
[class variables:]
|
|
24 |
|
|
25 |
[see also:]
|
|
26 |
|
|
27 |
"
|
|
28 |
! !
|
|
29 |
|
|
30 |
!AbstractHierarchicalItemWithModel class methodsFor:'queries'!
|
|
31 |
|
|
32 |
isAbstract
|
|
33 |
"Return if this class is an abstract class.
|
|
34 |
True is returned here for myself only; false for subclasses.
|
|
35 |
Abstract subclasses must redefine this again."
|
|
36 |
|
|
37 |
^ self == AbstractHierarchicalItemWithModel.
|
|
38 |
! !
|
|
39 |
|
|
40 |
!AbstractHierarchicalItemWithModel methodsFor:'accessing-mvc'!
|
|
41 |
|
|
42 |
model
|
|
43 |
"returns the hierachicalList model or nil.
|
|
44 |
This fixes the stupid implementation of the old HierarchicalItem,
|
|
45 |
by caching the fetched model (behaving the same, if there is no model)"
|
|
46 |
|
|
47 |
model isNil ifTrue:[
|
|
48 |
model := self fetchModel.
|
|
49 |
].
|
|
50 |
^ model
|
|
51 |
! !
|
|
52 |
|
|
53 |
!AbstractHierarchicalItemWithModel class methodsFor:'documentation'!
|
|
54 |
|
|
55 |
version
|
|
56 |
^ '$Header$'
|
|
57 |
!
|
|
58 |
|
|
59 |
version_CVS
|
|
60 |
^ '$Header$'
|
|
61 |
! !
|
|
62 |
|