Class SceneController

java.lang.Object
edu.ntnu.stud.idatt1005.team3.controller.SceneController

public class SceneController extends Object
The controller for the scenes of the application.
  • Constructor Details

  • Method Details

    • showHomePage

      public void showHomePage()
      Shows the home page of the application.
    • showInventoryPage

      public void showInventoryPage()
      Shows the inventory page of the application.
    • showRecipeLibraryPage

      public void showRecipeLibraryPage()
      Shows the recipe library page of the application.
    • showShoppingListPage

      public void showShoppingListPage()
      Shows the shopping list page of the application.
    • showNewRecipePage

      public void showNewRecipePage() throws FileNotFoundException
      Shows the new recipe page of the application.
      Throws:
      FileNotFoundException
    • showSingleRecipePage

      public void showSingleRecipePage(Recipe recipe) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • showErrorPopUp

      public void showErrorPopUp(String errorMessage)
      Shows an error pop-up with the given error message.
      Parameters:
      errorMessage - The error message to show in the pop-up.