5292
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by 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 |
"{ Package: 'stx:libwidg2' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Smalltalk }"
|
|
15 |
|
|
16 |
HierarchicalItem subclass:#HierarchicalItemWithValue
|
|
17 |
instanceVariableNames:'value'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Views-Support'
|
|
21 |
!
|
|
22 |
|
|
23 |
!HierarchicalItemWithValue class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
!
|
|
38 |
|
|
39 |
documentation
|
|
40 |
"
|
|
41 |
I am a Hierarchical Item with a reference to more information.
|
|
42 |
This class is usually subclassed, to item specific protocol.
|
|
43 |
|
|
44 |
[Instance variables:]
|
|
45 |
value <any>
|
|
46 |
|
|
47 |
[see also:]
|
|
48 |
HierarchicalList
|
|
49 |
HierarchicalListView
|
|
50 |
HierarchicalItemWithLabelAndIconAndValue
|
|
51 |
"
|
|
52 |
! !
|
|
53 |
|
|
54 |
!HierarchicalItemWithValue class methodsFor:'instance creation'!
|
|
55 |
|
|
56 |
label:aLabel
|
|
57 |
^ self new label:aLabel
|
|
58 |
!
|
|
59 |
|
|
60 |
value:aLabel
|
|
61 |
^ self new value:aLabel
|
|
62 |
! !
|
|
63 |
|
|
64 |
!HierarchicalItemWithValue methodsFor:'accessing'!
|
|
65 |
|
|
66 |
value
|
|
67 |
^ value
|
|
68 |
!
|
|
69 |
|
|
70 |
value:something
|
|
71 |
value := something.
|
|
72 |
! !
|
|
73 |
|
|
74 |
!HierarchicalItemWithValue class methodsFor:'documentation'!
|
|
75 |
|
|
76 |
version
|
|
77 |
^ '$Header$'
|
|
78 |
!
|
|
79 |
|
|
80 |
version_CVS
|
|
81 |
^ '$Header$'
|
|
82 |
! !
|
|
83 |
|