190 CHAPTER 6 DECOUPLED NAVIGATION PATTERN Figure (Hosting your own web site)

190 CHAPTER 6 DECOUPLED NAVIGATION PATTERN Figure 6-18. A more complicated user interface that involves a pop-up box E B V N If you take a good look at Figure 6-18, what should be very apparent is the lack of changes necessary to switch the look and feel of the HTML content. The look of Figure 6-16 is entirely different from that of Figure 6-18, yet the same event structure is used, with a small change in the Presentation functionality. This is the real effectiveness of the Decoupled Navigation pattern, which decouples the various pieces of functionality. As a thought experiment, imagine the conversion of the button click to a mouse event that pops up the dialog on an onmousemove event. It would not be a difficult change and would only require replacing the onclick event with the onmousemove event. The following HTML code uses bold to show the pattern integration tweaks that need to be made to the pop-up box illustrated in Figure 6-17:

Leave a Reply