I am using gwt for developing one UI and the requirement there is that in case of some actions on the child widgets, the parent widget needs to take some action corresponding to that.
For instance, i have a main panel (the parent pane) which has a list of child widgets. Based on the changes to any of the child widgets, other widget contents need to be updated.
What is the correct design to follow in this case,i.e, 1 option is: - child catches the change event and updates itself. Raises an event to the parent widget which then updates the child widgets. - Other alternative is to have the change handler for the child component in the parent itself and parent can then propagate the changes to the other components.