Package view

Class CommonView


  • public class CommonView
    extends java.lang.Object
    The CommonView class provides utility methods for displaying UI interfaces in console.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Scanner sc
      Scanner object to get input from user
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommonView()
      Private constructor to prevent instantiation of the class
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void pressEnterToContinue()
      Prompts the user to press the "Enter" key to continue with the application.
      static void printLine()
      Prints a line of '=' to separate text
      static void printNavbar​(java.lang.String path)
      Prints the navigation bar with the given path.
      static void printStartUpScreen()
      Prints the start up screen for Camp Application and Management System (CAMS)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sc

        private static final java.util.Scanner sc
        Scanner object to get input from user
    • Constructor Detail

      • CommonView

        private CommonView()
        Private constructor to prevent instantiation of the class
    • Method Detail

      • printStartUpScreen

        public static void printStartUpScreen()
        Prints the start up screen for Camp Application and Management System (CAMS)
      • printNavbar

        public static void printNavbar​(java.lang.String path)
        Prints the navigation bar with the given path.
        Parameters:
        path - the path to be displayed in the navigation bar
      • pressEnterToContinue

        public static void pressEnterToContinue()
        Prompts the user to press the "Enter" key to continue with the application.
      • printLine

        public static void printLine()
        Prints a line of '=' to separate text