initial checkin
authorClaus Gittinger <cg@exept.de>
Tue, 14 Mar 2006 14:08:56 +0100
changeset 2943 8f42783f6e38
parent 2942 71ae03ccdaf2
child 2944 4eb59e38eb2e
initial checkin
HierarchicalItemWithLabelAndIcon.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HierarchicalItemWithLabelAndIcon.st	Tue Mar 14 14:08:56 2006 +0100
@@ -0,0 +1,68 @@
+"
+ COPYRIGHT (c) 2006 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+
+"{ Package: 'stx:libwidg2' }"
+
+HierarchicalItemWithLabel subclass:#HierarchicalItemWithLabelAndIcon
+	instanceVariableNames:'icon'
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Views-Support'
+!
+
+!HierarchicalItemWithLabelAndIcon class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 2006 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+! !
+
+!HierarchicalItemWithLabelAndIcon methodsFor:'accessing'!
+
+icon
+    "returns the icon"
+
+    ^ icon
+!
+
+icon:something
+    "set the value of the instance variable 'icon' (automatically generated)"
+
+    icon := something.
+!
+
+label:aLabel icon:anIcon
+    label := aLabel.
+    icon  := anIcon.
+!
+
+labeled:aLabel icon:anIcon
+    label := aLabel.
+    icon  := anIcon.
+
+
+! !
+
+!HierarchicalItemWithLabelAndIcon class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libwidg2/HierarchicalItemWithLabelAndIcon.st,v 1.1 2006-03-14 13:08:56 cg Exp $'
+! !