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:
  • Application
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the singleton instance of the PackageCalculator class.
    static void
    main(String[] args)
    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

    Methods inherited from class java.lang.Object

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

    • APPNAME

      public static final String APPNAME
      The name of the application, displayed as the title of the main window.
      See Also:
    • messagesArea

      public MessagesArea messagesArea
      The MessagesArea class represents a section of the user interface that displays a list of messages or logs.
    • toolbarArea

      public ToolbarArea toolbarArea
      The ToolbarArea class represents a section of the user interface that contains various tools and actions that can be performed.
    • calculatorArea

      public CalculatorArea calculatorArea
      The CalculatorArea class represents a section of the user interface where calculations can be performed.
    • costsOverviewArea

      public CostsOverviewArea 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

      public static PackageCalculator 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 class javafx.application.Application
      Parameters:
      primaryStage - The primary stage provided by the JavaFX runtime.
    • main

      public static void main(String[] args)
      The main method to launch the JavaFX application.
      Parameters:
      args - Command-line arguments passed to the application.