cyboc
Oct 14th, 2004, 11:40 AM
Does the Spring Rich Client have any built-in support for using the Hierarchical-Model-View-Controller (HMVC) pattern? If you don't know what HMVC is, it is dicussed here:
http://www.javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc.html
and here:
http://scope.sourceforge.net/
In a nut shell, the HMVC pattern decomposes the client tier into a hierarchy of parent-child MVC triads. HMVC also allows for inter-triad communication; for example, if a user sends a command to a triad and it doesn't know how to handle it, it can forward it to its parent triad to see if the parent can handle it.
For our application, which has a very extensive set of interrelated windows, we've found this pattern to be extremely useful.
Upon looking at the Spring Rich Client code and Javadocs, I do see a few clues that suggest possible HMVC support:
1) WindowManager - "A manager for a group of windows. Window managers are needed in applications which create many different windows in addition to a main window...There can be several window managers, and they can be arranged into a tree."
2) AbstractForm.getParent() - Returns NestingFormModel.
3) AbstractFormModel.getParent() - Returns NestingFormModel.
4) DefaultCommandRegistry.getParent() - Returns CommandRegistry.
So, does anyone know if Spring Rich Client supports HMVC?
http://www.javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc.html
and here:
http://scope.sourceforge.net/
In a nut shell, the HMVC pattern decomposes the client tier into a hierarchy of parent-child MVC triads. HMVC also allows for inter-triad communication; for example, if a user sends a command to a triad and it doesn't know how to handle it, it can forward it to its parent triad to see if the parent can handle it.
For our application, which has a very extensive set of interrelated windows, we've found this pattern to be extremely useful.
Upon looking at the Spring Rich Client code and Javadocs, I do see a few clues that suggest possible HMVC support:
1) WindowManager - "A manager for a group of windows. Window managers are needed in applications which create many different windows in addition to a main window...There can be several window managers, and they can be arranged into a tree."
2) AbstractForm.getParent() - Returns NestingFormModel.
3) AbstractFormModel.getParent() - Returns NestingFormModel.
4) DefaultCommandRegistry.getParent() - Returns CommandRegistry.
So, does anyone know if Spring Rich Client supports HMVC?