Package src.view

Class MainView

Object
MainView
Direct Known Subclasses:
CinemaView, CineplexView, DatabaseView, MovieAppView, MovieBookingHistoryView, MovieDetailsView, MovieListRankingView, MovieListView, MovieSearchView, MovieTypeView, PaymentView, StaffMovieListRankingView, StaffSystemConfigView

public abstract class MainView extends Object
All views will inherit from this class Provides the boilerplate for the program
Version:
1.0
Author:
Lee Juin
  • 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

      public static void printBoilerPlate(String content)
      Used in printing the title of the view such as "Database" or "Add Movie"
      Parameters:
      content - is the title to be shown
    • printMenuContent

      public static void printMenuContent(String content)
      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