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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:37:55 GMT |