Next: Details of implementation
Up: MVC Infrastructure
Previous: Observable properties
View Registration
Current implementation allows only a 1-1 relationship between
Controller and View. Anyway a registration mechanism has been used to
connect those two parts, allowing for more generic relationship in the
future, when a Controller could handle more than one Views, or a View
can be shared between different Controllers.
After the creation, a Vies must register itself with a Controller. From
there on, the Controller can access the state and methods inside the
View. When the view registers itself with a Controller, all signals are
also automatically connected to the corresponding semantics inside the
Controller. Connection in this case is performed by means of an implicit
syntax rule, which binds a signal name to a corresponding function name.
Roberto Cavada
2004-11-16