Package src.view
Class MovieListRankingView
View for movie goer to choose the ranking format of top 5 movies
- Version:
- 1.0
- Author:
- Yeek Sheng, Jerick
-
Constructor Summary
ConstructorDescriptionCreates a new MovieListRankingView with an empty errorMessage -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method to take in choice of user as input for printing of rankingvoid
Prints the boiler plate and displays the choices of the uservoid
printTop5
(int choice) Method to call rankTop5 based on choice and prints ranking Showing movies will be displayed with higher priority over End of show moviesMethods inherited from class MainView
printBoilerPlate, printMenuContent
-
Constructor Details
-
MovieListRankingView
public MovieListRankingView()Creates a new MovieListRankingView with an empty errorMessage
-
-
Method Details
-
printMenu
public void printMenu()Prints the boiler plate and displays the choices of the user -
printTop5
public void printTop5(int choice) Method to call rankTop5 based on choice and prints ranking Showing movies will be displayed with higher priority over End of show movies- Parameters:
choice
- choice of the user to rank movies by ticket sales or overall rating The choice should be 1 or 2
-
appContent
public void appContent()Method to take in choice of user as input for printing of ranking- Specified by:
appContent
in classMainView
-