My Movies 1.0.0

hirondelle.movies.edit
Class MovieView

Object
  extended by MovieView

final class MovieView
extends Object

Dialog allowing user to input Movie information.

This view can be used to either add a new Movie, or to change an existing one.

It's important to note that validation of user entries is not performed by this class. Rather, it's performed by the Movie class.


Constructor Summary
MovieView(JFrame aParent)
          Constructor.
MovieView(JFrame aParent, Movie aSelectedMovie)
          Constructor.
 
Method Summary
(package private)  void closeDialog()
          Close the view.
(package private)  String getComment()
          The comment on the movie, as entered by the user.
(package private)  String getDateViewed()
          The date the movie was viewed, as entered by the user.
(package private)  JDialog getDialog()
          Return the underlying dialog.
(package private)  String getId()
          Return the movie id.
(package private)  String getRating()
          The movie rating, as entered by the user.
(package private)  String getTitle()
          The title of the movie, as entered by the user.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieView

MovieView(JFrame aParent)
Constructor.

Called when adding a new Movie.


MovieView

MovieView(JFrame aParent,
          Movie aSelectedMovie)
Constructor.

Called when editing an existing Movie. The text fields are simply prepopulated with the text taken from the currently selected row of the table.

Method Detail

getId

String getId()
Return the movie id. The id is used by the database, but is never shown to the user, nor is it ever edited by the end user. This method is supplied since it's convenient to carry the id with the other information related to a movie, and the MovieDAO needs a way to uniquely identify records.


getTitle

String getTitle()
The title of the movie, as entered by the user.


getDateViewed

String getDateViewed()
The date the movie was viewed, as entered by the user.


getRating

String getRating()
The movie rating, as entered by the user.


getComment

String getComment()
The comment on the movie, as entered by the user.


closeDialog

void closeDialog()
Close the view.


getDialog

JDialog getDialog()
Return the underlying dialog.


My Movies 1.0.0

Copyright Hirondelle Systems - Generated 2008Dec30.15.53