Class MessagesArea

java.lang.Object
gui.MessagesArea

public class MessagesArea extends Object
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 Details

    • MessagesArea

      public MessagesArea()
      Constructs a new MessagesArea instance.
  • Method Details

    • setMessage

      public void setMessage(String message)
      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:
      • ListView
      • HBox