Package src.view
Class MainView
Object
MainView
- Direct Known Subclasses:
CinemaView
,CineplexView
,DatabaseView
,MovieAppView
,MovieBookingHistoryView
,MovieDetailsView
,MovieListRankingView
,MovieListView
,MovieSearchView
,MovieTypeView
,PaymentView
,StaffMovieListRankingView
,StaffSystemConfigView
All views will inherit from this class
Provides the boilerplate for the program
- Version:
- 1.0
- Author:
- Lee Juin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Abstract method to print the main content of the UIstatic void
printBoilerPlate
(String content) Used in printing the title of the view such as "Database" or "Add Movie"abstract void
Abstract method to be implemented to print the menu for user to select the next actionstatic void
printMenuContent
(String content) Used in printing the selection for users.
-
Constructor Details
-
MainView
public MainView()Constructor
-
-
Method Details
-
printMenu
public abstract void printMenu()Abstract method to be implemented to print the menu for user to select the next action -
appContent
public abstract void appContent()Abstract method to print the main content of the UI -
printBoilerPlate
Used in printing the title of the view such as "Database" or "Add Movie"- Parameters:
content
- is the title to be shown
-
printMenuContent
Used in printing the selection for users. Differentiated from boilerplate to provide better UI experiences- Parameters:
content
- is all the selection available for the user
-