Lesson 11
Model view controller design pattern
Objectives
- Understand observer - observable design pattern
- Understand model - view - controller design pattern
Documentation
Exercises
Exercise 1
Implement a sensor monitoring application. A temperature sensor will read values with a period of 1 second. Temperature will be displayed in a text field. Sensor will be modeled as a thread. When sensor value is changed, the user interface will be notified and the displayed value will be refreshed.
Exercise 2
Implement a stock management application in Java. Product properties are: name, quantity, price. The application provide following functionalities: add new product, view available products, delete product, change product available quantity. For implementing the application it will be used the mvc design pattern.