java.lang.Object
javafx.application.Application
stud.ntnu.idatt1005.pantrypal.PantryPal
public class PantryPal
extends javafx.application.Application
The main class for the PantryPal application.
This class is responsible for starting the application
and initializing the view manager and controllers.
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CookbookController
private HomeController
private LogInController
private PantryController
private ShoppingListController
static String
private ViewManager
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
The main method is the entry point for the PantryPal application.void
start
(javafx.stage.Stage primaryStage) The start method is called after the init method has returned, and after the system is ready for the application to begin running.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Field Details
-
userName
-
viewManager
-
homeController
-
cookBookController
-
pantryController
-
shoppingListController
-
logInController
-
-
Constructor Details
-
PantryPal
public PantryPal()
-
-
Method Details
-
start
public void start(javafx.stage.Stage primaryStage) The start method is called after the init method has returned, and after the system is ready for the application to begin running. The method creates the view manager and initializes the controllers.- Specified by:
start
in classjavafx.application.Application
- Parameters:
primaryStage
- The primary stage for this application, onto which the application scene can be set.
-
main
The main method is the entry point for the PantryPal application. The method launches the application.- Parameters:
args
- Command-line arguments.
-