Class UIAlert

java.lang.Object
edu.ntnu.idi.idatt.view.components.ui.UIAlert

public class UIAlert extends Object
Class for creating UI confirmation alerts.
  • Constructor Details

    • UIAlert

      public UIAlert(String title, String header, String content)
      Constructor for UIAlert.
      Parameters:
      title - - Window name
      header - - context
      content - - description of context
  • Method Details

    • displayAwaitResponse

      public boolean displayAwaitResponse()
      Method for displaying and waiting for response from alert.

      Waits for confirmation, turns to false in case of no response.

      Returns:
      boolean Confirm/Cancelled.