author | Claus Gittinger <cg@exept.de> |
Mon, 23 Feb 2015 12:37:42 +0100 | |
changeset 5279 | 3af2da2c44e6 |
parent 2750 | 94531b6049a3 |
child 6081 | a3c3c71df0ef |
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 |
||
2750 | 13 |
"{ Package: 'stx:libwidg' }" |
14 |
||
104 | 15 |
ToggleController subclass:#RadioButtonController |
582 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-Support-Controllers' |
|
104 | 20 |
! |
21 |
||
2750 | 22 |
!RadioButtonController class methodsFor:'documentation'! |
128 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
documentation |
|
39 |
" |
|
40 |
RadioButtonControllers redefine the response to a button-click. |
|
41 |
While toggles (i.e. ToggleControllers) change state with every click, |
|
42 |
radioButtons will only do so for an off-to-on transition. |
|
43 |
They will NEVER turn themselfes off with a click. |
|
44 |
To turn a radioButton off, another button in its buttonGroup must |
|
45 |
be turned on and thereby (via the buttonGroup) turn the first button off. |
|
46 |
||
47 |
You can place both toggles (for 'zero-or-one-on' behavior) or |
|
48 |
radiobuttons (for 'one-on' behavior) into a buttongroup. |
|
582 | 49 |
|
50 |
[author:] |
|
51 |
Claus Gittinger |
|
128 | 52 |
" |
53 |
! ! |
|
54 |
||
2750 | 55 |
!RadioButtonController methodsFor:'initialization & release'! |
104 | 56 |
|
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
57 |
initialize |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
58 |
super initialize. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
59 |
isToggle := false. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
60 |
isRadio := true. |
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
61 |
isTriggerOnDown := true. |
104 | 62 |
|
790
de3424da84aa
radio behavior now in general ButtonController
Claus Gittinger <cg@exept.de>
parents:
582
diff
changeset
|
63 |
"Created: 15.7.1996 / 13:43:23 / cg" |
104 | 64 |
! ! |
65 |
||
2750 | 66 |
!RadioButtonController class methodsFor:'documentation'! |
203 | 67 |
|
68 |
version |
|
2750 | 69 |
^ '$Header: /cvs/stx/stx/libwidg/RadioButtonController.st,v 1.9 2003-05-07 14:56:15 cg Exp $' |
203 | 70 |
! ! |