Hi,
I have a MVC with a Model and different views.
But not all the view has to be updated each change of the Model.
How can let the controller now witch view to update with wich change?
kind regards
Printable View
Hi,
I have a MVC with a Model and different views.
But not all the view has to be updated each change of the Model.
How can let the controller now witch view to update with wich change?
kind regards
Have your Model contain a ProperyChangeSupport member object. The model can fire different events on different occasions (read the API specification for the PropertyChangeSupport class). The different event listeners in the Controller update the different View objects according to which event was fired by the Model.
kind regards,
Jos
Hi,
Thanks for the answer.
This does exactly what i want.