Package control


package control
Provides the classes necessary to control the application logic.

This package includes utility classes for displaying alerts, handling (log-)messages, and managing the overall logics of the application as well as handling the application settings and loading shipping rules from a file.

Classes in this package:

  • Calculator - Manages the calculation of package dimensions and weight.
  • MessageHandler - Handles displaying messages and alerts to the user.
  • SettingsManager - Manages application settings and notifies listeners of changes.
  • ShippingRuleLoader - Loads shipping rules from a file and provides sorted access to them and finding the best rule for a given package.
  • Class
    Description
    The Calculator class provides methods for calculating shipping costs based on packet dimensions and weight.
    The MessageHandler class provides utility methods for displaying messages and alerts.
    The SettingsManager class provides methods for managing user settings and notifying listeners of changes.
    The SettingsListener interface provides a method for notifying listeners when settings change.
    The ShippingRuleLoader class loads shipping rules from a JSON file and provides a method to retrieve them as a list of ShippingRule objects.