final class MovieController extends Object implements ActionListener
Movie
to the database, or change an existing one.
It's important to note that this class uses most of the other classes in this feature to get its job done (it doesn't use the Action classes):
Constructor and Description |
---|
MovieController(MovieView aView,
Edit aEdit)
Constructor.
|
MovieController(MovieView aView, Edit aEdit)
aView
- user interfaceaEdit
- identifies what type of edit - add or changepublic void actionPerformed(ActionEvent aEvent)
Movie
, or edit an existing one.
If the input is invalid, then inform the user of the problem(s). If the input is valid, then add or change the Movie, close the dialog, and update the main window's display.
actionPerformed
in interface ActionListener
Copyright Hirondelle Systems - Generated 2013Sep20.11.16