Class MessageHandler

java.lang.Object
control.MessageHandler

public class MessageHandler extends Object
The MessageHandler class provides utility methods for displaying messages and alerts.

Includes methods for logging messages to the MessagesArea and displaying popups.

See Also:
  • Constructor Details

    • MessageHandler

      public MessageHandler()
  • Method Details

    • flushPendingMessages

      public static void flushPendingMessages()
      Flushes all pending messages to the MessagesArea.
    • handleMessage

      public static void handleMessage(javafx.scene.control.Alert.AlertType alertType, String title, String message)
      Displays an error message according to the current error display state.

      Depending on the state, the message will be logged, displayed as a popup, or both.

      Parameters:
      alertType - the type of alert (e.g., ERROR)
      title - the title of the message
      message - the message content