|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectMovieController
final class MovieController
Add a new 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):
MovieView
Movie
MovieDAO
| Constructor Summary | |
|---|---|
MovieController(MovieView aView,
Edit aEdit)
Constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent aEvent)
Attempt to add a new Movie, or edit an existing one. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
MovieController(MovieView aView,
Edit aEdit)
aView - user interfaceaEdit - identifies what type of edit - add or change| Method Detail |
|---|
public 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
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||