![]() |
Smalltalk/X WebserverDocumentation of class 'ToggleController': |
|
Class: ToggleControllerInheritance:Object | +--Controller | +--ButtonController | +--ToggleController | +--RadioButtonController
Description:ToggleControllers redefine some of ButtonControllers behavior; user interaction: they always triggerOnDown, and ignore buttonrelease. Finally, every buttonPress leads to a toggle action. ToggleController adds another actionBlock, since it inherits press- and releaseActions, while we want one actionBlock to be used for both on- and off. The actionBlock (if any) is evaluated with the current toggles state if it expects an argument, or without argument if it's a no-arg block. Other than that, all model relations are inherited - i.e. if the view has a model, that one gets change-messages and the toggle updates on aspect changes. Instance protocol:accessing
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 04 Jun 2023 18:26:10 GMT
|