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