Package MySTARS

Class PrintTimeTableView

java.lang.Object
MySTARS.View
MySTARS.PrintTimeTableView

public final class PrintTimeTableView
extends View
A view that prints the Timetable for the currently logged in User.
Since:
2020-11-1
Version:
1.0
Author:
Bhargav
  • Constructor Summary

    Constructors 
    Constructor Description
    PrintTimeTableView()  
  • Method Summary

    Modifier and Type Method Description
    void print()
    The main print function of the view, which prints out the timetable in the correct formatting.
    protected static void printInformation​(CourseStatus courseStatus, Student currentUser)
    Displays all the relevant information for courses that are of a particular CourseStatus for a Student.
    private static void printLine()
    Method that prints a horizontal line across the screen.

    Methods inherited from class MySTARS.View

    clearScreen

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • print

      public void print()
      The main print function of the view, which prints out the timetable in the correct formatting.
      Specified by:
      print in class View
    • printInformation

      protected static void printInformation​(CourseStatus courseStatus, Student currentUser)
      Displays all the relevant information for courses that are of a particular CourseStatus for a Student.
      Parameters:
      courseStatus - status of the course with respect to the student.
      currentUser - the current user (is a Student).
    • printLine

      private static void printLine()
      Method that prints a horizontal line across the screen.