Module Lunchify

Class UserDashboardController

java.lang.Object
jku.se.Controller.UserDashboardController

public class UserDashboardController extends Object
Controller for the User Dashboard. Displays a table of user invoices and a pie chart showing the distribution of invoice categories (Supermarket vs Restaurant). Allows navigation to invoice upload, edit, and notification views.
  • Constructor Details

    • UserDashboardController

      public UserDashboardController()
  • Method Details

    • setCurrentUserEmail

      public void setCurrentUserEmail(String email)
      Sets the current user's email and initializes the dashboard data.
      Parameters:
      email - the email of the current user
    • getCurrentUserEmail

      public static String getCurrentUserEmail()
      Gets the current user's email address.
      Returns:
      the current user's email