Class PackageCalculator
java.lang.Object
javafx.application.Application
gui.PackageCalculator
public class PackageCalculator
extends javafx.application.Application
The PackageCalculator class serves as the main entry point for the application. It is responsible for initializing
and configuring the layout and functionality of the user interface components, managing the application window, and
setting up the primary stage for this JavaFX application.
This class utilizes a singleton pattern to ensure only one instance exists and can be accessed globally within the application.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the application, displayed as the title of the main window.The CalculatorArea class represents a section of the user interface where calculations can be performed.The InspectorArea class represents a section of the user interface where details or properties of a selected item can be inspected and modified.The MessagesArea class represents a section of the user interface that displays a list of messages or logs.The ToolbarArea class represents a section of the user interface that contains various tools and actions that can be performed.Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PackageCalculator
Returns the singleton instance of the PackageCalculator class.static void
The main method to launch the JavaFX application.void
start
(javafx.stage.Stage primaryStage) Sets up the primary layout and initializes the user interface with various sections, including toolbar, explorer, editor, messages, and status areas.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Field Details
-
APPNAME
The name of the application, displayed as the title of the main window.- See Also:
-
messagesArea
The MessagesArea class represents a section of the user interface that displays a list of messages or logs. -
toolbarArea
The ToolbarArea class represents a section of the user interface that contains various tools and actions that can be performed. -
calculatorArea
The CalculatorArea class represents a section of the user interface where calculations can be performed. -
costsOverviewArea
The InspectorArea class represents a section of the user interface where details or properties of a selected item can be inspected and modified.
-
-
Constructor Details
-
PackageCalculator
public PackageCalculator()
-
-
Method Details
-
getInstance
Returns the singleton instance of the PackageCalculator class. TODO: Make it a real singleton.- Returns:
- The singleton instance of PackageCalculator.
-
start
public void start(javafx.stage.Stage primaryStage) Sets up the primary layout and initializes the user interface with various sections, including toolbar, explorer, editor, messages, and status areas.- Specified by:
start
in classjavafx.application.Application
- Parameters:
primaryStage
- The primary stage provided by the JavaFX runtime.
-
main
The main method to launch the JavaFX application.- Parameters:
args
- Command-line arguments passed to the application.
-