Class MessageHandler
java.lang.Object
control.MessageHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Flushes all pending messages to the MessagesArea.static void
handleMessage
(javafx.scene.control.Alert.AlertType alertType, String title, String message) Displays an error message according to the current error display state.
-
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 messagemessage
- the message content
-