Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 772: Global Knowledge Networks V. “Juggy” Jagannathan CSEE, West Virginia University Feb 18, 2002.

Similar presentations


Presentation on theme: "CS 772: Global Knowledge Networks V. “Juggy” Jagannathan CSEE, West Virginia University Feb 18, 2002."— Presentation transcript:

1 CS 772: Global Knowledge Networks V. “Juggy” Jagannathan CSEE, West Virginia University Feb 18, 2002

2 Design for HTML Production Chapter 12 Based on the book: “Enterprise Java with UML” OMG Press, John Wiley and Sons, 2001.

3 Design Goals Goal 1: Support Modular Construction of Views Goal 2: Keep HTML Production Simple – Hide the actual tags and options – Hide all browser-specific behavior – Enable natural development of user interface Goal 3: Support Preferences Goal 4: Extensibility and Encapsulation

4 Design to Goals To Support Modular Construction of Views – The composite design pattern “Composite objects into tree structures to represent part-whole hierarchies” Page – Table Image Text – Applying Composite Pg 329, figure 12.1 Pg 329, figure 12.2 Pg 330, figure 12.3

5 Design to Goals Keep HTML production simple – Browser-specific HTML Pg 331, figure 12.4 Requires the client module to know which implementation is suited for which browser. – The Abstract Factory Design Pattern “Provide an interface for creating families of related or dependent objects without specifying their concrete classes” [Gamma, et al 1995] Pg 333, figure 12.5 – Design Evaluation – Producer factory – Pg 334, figure 12.6, pg 335, figure 12.7 Pg 336, figure 12.8

6 Design to Goals Support for preferences – Preferences alternatives A method (property) for each preference with getters and setters Use java.util.Properties object – name-value pairs First method uses compile time checking - the second does not > IHtmlProducer +getHtml() : String +setPreferences(properties: Properties)

7 Design to Goals Design for Extensibility and Encapsulation – Encapsulation Producer factory registration – pg 339, figure 12.10 – Evaluation of package dependencies Pg 340, figure 12-11 Pg 341, figure 12-12

8 Detailed UI Design Login Screen – Pg 340, fig 12-13, 12-14 – Pg 343, fig 12-15 – Pg 344, fig 12-16 – Pg 345, fig 12-17

9 Implementation HTML Production

10 Implementation IHtmlProducer.java ComboBoxProducer.java FormProducer.java PageProducer.java SubmitButtonProducer.java TableProducer.java TabularInputFormProducer.ja va TabularInputFormProducer.ja va TextFieldProducer.java TextProducer.java IconcreteProducer.java ProducerFactory.java FormProducerGeneric.java PageProducerGeneric.java TableProducerGeneric.java TabularInputFormProducerGe neric.java TabularInputFormProducerGe neric.java

11 Design for the TimecardUI Package Chapter 13 Based on the book: “Enterprise Java with UML” OMG Press, John Wiley and Sons, 2001.

12 Design Goals Extensibility – delegate all HTML production to HTML Producers and not the servlets Testability

13 Review Prior Steps Architectural constraints – pg 375, fig 13.1 Review Analysis model – pg 376, pg 377, pg 378, pg 379, pg 380

14 Design for Login Use Case Figure 13.7, pg 382


Download ppt "CS 772: Global Knowledge Networks V. “Juggy” Jagannathan CSEE, West Virginia University Feb 18, 2002."

Similar presentations


Ads by Google