Class MovieMenu

java.lang.Object
moblima.boundaries.Menu
moblima.boundaries.MovieMenu

public class MovieMenu extends Menu
The type Movie menu.
  • Method Details

    • getInstance

      public static MovieMenu getInstance()
      Gets instance.
      Returns:
      the instance
    • getInstance

      public static MovieMenu getInstance(boolean showLimited, boolean showReviews)
      Gets instance.
      Parameters:
      showLimited - the show limited
      showReviews - the show reviews
      Returns:
      the instance
    • getHandler

      public static ReviewHandler getHandler()
      Gets handler.
      Returns:
      the handler
    • showMenu

      public void showMenu()
      Description copied from class: Menu
      Show menu.
      Specified by:
      showMenu in class Menu
    • getViewableMovies

      public List<Movie> getViewableMovies()
      Gets viewable movies.
      Returns:
      the viewable movies
    • getMovieMenu

      public LinkedHashMap<String,Runnable> getMovieMenu()
      Gets movie menu.
      Returns:
      the movie menu
    • updateReviewMenu

      public void updateReviewMenu(Runnable addMovieRunnable)
      Update review menu.
      Parameters:
      addMovieRunnable - the add movie runnable
    • getMovieMenu

      public LinkedHashMap<String,Runnable> getMovieMenu(Runnable addMovieRunnable)
      Gets movie menu.
      Parameters:
      addMovieRunnable - the add movie runnable
      Returns:
      the movie menu
    • selectReviewOptions

      public boolean selectReviewOptions(int movieId, String reviewerName, String reviewerId)
      Select review options boolean.
      Parameters:
      movieId - the movie id
      reviewerName - the reviewer name
      reviewerId - the reviewer id
      Returns:
      the boolean
    • selectReviewIdx

      public int selectReviewIdx(List<Review> reviews)
      Select review idx int.
      Parameters:
      reviews - the reviews
      Returns:
      the int
    • selectMovieIdx

      public int selectMovieIdx()
      Select movie idx int.
      Returns:
      the int
    • selectUpdatableAction

      public boolean selectUpdatableAction(String reviewId)
      Select updatable action boolean.
      Parameters:
      reviewId - the review id
      Returns:
      the boolean
    • setBlockbusterStatus

      public boolean setBlockbusterStatus()
      Sets blockbuster status.
      Returns:
      the blockbuster status
    • setShowStatus

      public Movie.ShowStatus setShowStatus()
      Sets show status.
      Returns:
      the show status
    • setContentRating

      public Movie.ContentRating setContentRating()
      Sets content rating.
      Returns:
      the content rating
    • setCastList

      public List<String> 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