author | Claus Gittinger <cg@exept.de> |
Fri, 28 Jun 2019 09:22:40 +0200 | |
changeset 6079 | c61b633da982 |
parent 4944 | a7083d2ef305 |
permissions | -rw-r--r-- |
2942 | 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 |
" |
|
4693
67625df32bdc
change messages when icon or label changes
Claus Gittinger <cg@exept.de>
parents:
2942
diff
changeset
|
12 |
"{ Package: 'stx:libwidg2' }" |
2942 | 13 |
|
4693
67625df32bdc
change messages when icon or label changes
Claus Gittinger <cg@exept.de>
parents:
2942
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
2942 | 15 |
|
16 |
HierarchicalItem subclass:#HierarchicalItemWithLabel |
|
17 |
instanceVariableNames:'label' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'Views-Support' |
|
21 |
! |
|
22 |
||
23 |
!HierarchicalItemWithLabel 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 |
||
4944
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
39 |
!HierarchicalItemWithLabel class methodsFor:'instance creation'! |
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
40 |
|
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
41 |
label:aLabel |
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
42 |
^ self new label:aLabel |
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
43 |
! ! |
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
44 |
|
2942 | 45 |
!HierarchicalItemWithLabel methodsFor:'accessing'! |
46 |
||
47 |
label |
|
48 |
^ label |
|
49 |
! |
|
50 |
||
4693
67625df32bdc
change messages when icon or label changes
Claus Gittinger <cg@exept.de>
parents:
2942
diff
changeset
|
51 |
label:aLabel |
4698
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
52 |
(label isString and:[aLabel isString]) ifTrue:[ |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
53 |
(label sameStringAndEmphasisAs:aLabel) ifTrue:[^ self]. |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
54 |
] ifFalse:[ |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
55 |
(label = aLabel) ifTrue:[^ self]. |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
56 |
]. |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
57 |
|
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
58 |
label := aLabel. |
343fabb3def9
class: HierarchicalItemWithLabel
Claus Gittinger <cg@exept.de>
parents:
4693
diff
changeset
|
59 |
self changed. |
2942 | 60 |
! ! |
61 |
||
62 |
!HierarchicalItemWithLabel class methodsFor:'documentation'! |
|
63 |
||
64 |
version |
|
4944
a7083d2ef305
added instance creation messages label:/label:icon:
Claus Gittinger <cg@exept.de>
parents:
4698
diff
changeset
|
65 |
^ '$Header$' |
2942 | 66 |
! ! |
4693
67625df32bdc
change messages when icon or label changes
Claus Gittinger <cg@exept.de>
parents:
2942
diff
changeset
|
67 |