Class MessagesArea
java.lang.Object
gui.MessagesArea
The MessagesArea class provides a user interface component for displaying a series of messages or log entries.
It extends
ListView
to facilitate message management, including adding, viewing, and potentially filtering
messages in a list format.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.control.ListView
<javafx.scene.layout.HBox> Returns the ListView containing the messages.void
setMessage
(String message) Adds a new message entry to the list of messages and scrolls to the bottom of the list.
-
Constructor Details
-
MessagesArea
public MessagesArea()Constructs a new MessagesArea instance.
-
-
Method Details
-
setMessage
Adds a new message entry to the list of messages and scrolls to the bottom of the list.- Parameters:
message
- the message to add to the list
-
getMessagesListView
public javafx.scene.control.ListView<javafx.scene.layout.HBox> getMessagesListView()Returns the ListView containing the messages.- Returns:
- the ListView containing the messages
- See Also:
-