1717
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1999 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 |
|
1193
|
15 |
TreeItem subclass:#TreeItemWithImage
|
1195
|
16 |
instanceVariableNames:'icon'
|
1193
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Interface-Support'
|
|
20 |
!
|
|
21 |
|
|
22 |
!TreeItemWithImage class methodsFor:'documentation'!
|
|
23 |
|
1717
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 1999 eXept Software AG
|
|
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 |
!
|
|
39 |
|
1193
|
40 |
documentation
|
|
41 |
"
|
|
42 |
Like a regular TreeItem, but provides its own icon image.
|
|
43 |
|
|
44 |
|
|
45 |
[author:]
|
|
46 |
Claus Gittinger (cg@exept)
|
|
47 |
|
|
48 |
[see also:]
|
1194
|
49 |
TreeItem FileSelectionItem
|
1193
|
50 |
SelectionInTree SelectionInTreeView
|
|
51 |
|
|
52 |
[instance variables:]
|
|
53 |
image <ImageOrForm> my icon image
|
|
54 |
|
|
55 |
[class variables:]
|
|
56 |
"
|
|
57 |
! !
|
|
58 |
|
|
59 |
!TreeItemWithImage methodsFor:'accessing'!
|
|
60 |
|
1195
|
61 |
icon
|
|
62 |
"return the value of the instance variable 'icon' (automatically generated)"
|
1193
|
63 |
|
1195
|
64 |
icon isNil ifTrue:[^ super icon].
|
|
65 |
^ icon
|
|
66 |
!
|
1193
|
67 |
|
1195
|
68 |
icon:something
|
|
69 |
"set the value of the instance variable 'icon' (automatically generated)"
|
|
70 |
|
|
71 |
icon := something.! !
|
1193
|
72 |
|
|
73 |
!TreeItemWithImage class methodsFor:'documentation'!
|
|
74 |
|
|
75 |
version
|
1717
|
76 |
^ '$Header: /cvs/stx/stx/libwidg2/TreeItemWithImage.st,v 1.4 2000-02-18 14:39:34 cg Exp $'
|
1193
|
77 |
! !
|