Package moblima.boundaries
Class MovieMenu
java.lang.Object
moblima.boundaries.Menu
moblima.boundaries.MovieMenu
The type Movie menu.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Create movie int.boolean
editMovie
(int movieIdx) Select editable action boolean.static ReviewHandler
Gets handler.static MovieMenu
Gets instance.static MovieMenu
getInstance
(boolean showLimited, boolean showReviews) Gets instance.Gets movie menu.getMovieMenu
(Runnable addMovieRunnable) Gets movie menu.Gets viewable movies.int
Select movie idx int.int
selectReviewIdx
(List<Review> reviews) Select review idx int.boolean
selectReviewOptions
(int movieId, String reviewerName, String reviewerId) Select review options boolean.boolean
selectUpdatableAction
(String reviewId) Select updatable action boolean.boolean
Sets blockbuster status.Sets cast list.Sets content rating.Sets show status.void
showMenu()
Show menu.void
updateReviewMenu
(Runnable addMovieRunnable) Update review menu.Methods inherited from class moblima.boundaries.Menu
awaitContinue, displayMenu, displayMenuList, displayMenuList, getListSelectionIdx, getListSelectionIdx, printChanges, refreshMenu, setDate, setDateTime, setDouble, setInt, setString
-
Method Details
-
getInstance
Gets instance.- Returns:
- the instance
-
getInstance
Gets instance.- Parameters:
showLimited
- the show limitedshowReviews
- the show reviews- Returns:
- the instance
-
getHandler
Gets handler.- Returns:
- the handler
-
showMenu
public void showMenu()Description copied from class:Menu
Show menu. -
getViewableMovies
Gets viewable movies.- Returns:
- the viewable movies
-
getMovieMenu
Gets movie menu.- Returns:
- the movie menu
-
updateReviewMenu
Update review menu.- Parameters:
addMovieRunnable
- the add movie runnable
-
getMovieMenu
Gets movie menu.- Parameters:
addMovieRunnable
- the add movie runnable- Returns:
- the movie menu
-
selectReviewOptions
Select review options boolean.- Parameters:
movieId
- the movie idreviewerName
- the reviewer namereviewerId
- the reviewer id- Returns:
- the boolean
-
selectReviewIdx
Select review idx int.- Parameters:
reviews
- the reviews- Returns:
- the int
-
selectMovieIdx
public int selectMovieIdx()Select movie idx int.- Returns:
- the int
-
selectUpdatableAction
Select updatable action boolean.- Parameters:
reviewId
- the review id- Returns:
- the boolean
-
setBlockbusterStatus
public boolean setBlockbusterStatus()Sets blockbuster status.- Returns:
- the blockbuster status
-
setShowStatus
Sets show status.- Returns:
- the show status
-
setContentRating
Sets content rating.- Returns:
- the content rating
-
setCastList
Sets cast list.- Returns:
- the cast list
-
editMovie
public boolean editMovie(int movieIdx) Select editable action boolean.- Parameters:
movieIdx
- the movie idx- Returns:
- the boolean
-
createMovie
public int createMovie()Create movie int.- Returns:
- the int
-