author | Claus Gittinger <cg@exept.de> |
Tue, 08 Sep 1998 22:09:00 +0200 | |
changeset 1661 | bf446f457d95 |
parent 790 | de3424da84aa |
permissions | -rw-r--r-- |
128 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
||
104 | 13 |
ToggleController subclass:#RadioButtonController |
582 | 14 |
instanceVariableNames:'' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Interface-Support-Controllers' |
|
104 | 18 |
! |
19 |
||
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
20 |
!RadioButtonController class methodsFor:'documentation'! |
128 | 21 |
|
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
38 |
RadioButtonControllers redefine the response to a button-click. |
|
39 |
While toggles (i.e. ToggleControllers) change state with every click, |
|
40 |
radioButtons will only do so for an off-to-on transition. |
|
41 |
They will NEVER turn themselfes off with a click. |
|
42 |
To turn a radioButton off, another button in its buttonGroup must |
|
43 |
be turned on and thereby (via the buttonGroup) turn the first button off. |
|
44 |
||
45 |
You can place both toggles (for 'zero-or-one-on' behavior) or |
|
46 |
radiobuttons (for 'one-on' behavior) into a buttongroup. |
|
582 | 47 |
|
48 |
[author:] |
|
49 |
Claus Gittinger |
|
128 | 50 |
" |
51 |
! ! |
|
52 |
||
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
53 |
!RadioButtonController methodsFor:'initialize / release'! |
104 | 54 |
|
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
55 |
initialize |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
56 |
super initialize. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
57 |
isToggle := false. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
58 |
isRadio := true. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
59 |
isTriggerOnDown := true. |
104 | 60 |
|
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
61 |
"Created: 15.7.1996 / 13:43:23 / cg" |
104 | 62 |
! ! |
63 |
||
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
64 |
!RadioButtonController class methodsFor:'documentation'! |
203 | 65 |
|
66 |
version |
|
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
67 |
^ '$Header: /cvs/stx/stx/libwidg/Attic/RButtC.st,v 1.8 1996-07-15 14:41:38 cg Exp $' |
203 | 68 |
! ! |