|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectMovieView
final class MovieView
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(JFrame aParent)
Called when adding a new Movie.
MovieView(JFrame aParent,
Movie aSelectedMovie)
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 |
|---|
String getId()
MovieDAO needs a way to uniquely identify records.
String getTitle()
String getDateViewed()
String getRating()
String getComment()
void closeDialog()
JDialog getDialog()
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||