![]() |
![]() |
![]() |
![]() |
![]() |
|
You have already seen three elements of
the diagram shown in Segment 761 at work in the example of the
MovieApplication, defined in
Segment 726.
In that definition, you see an application class, a view class, and a listener class:
MovieApplication is the application class, which, like all
application classes, is also a view.
Meter is a view class.
LocalWindowListener is a listener class, with a method that you
activate by clicking on the window-closing button.
There is no model class. The LocalWindowListener listener instance
does no fetching from a view or relaying to a model; when activated, the
listener's only job is to shut down the application.