Class Popups

java.lang.Object
edu.ntnu.idatt1002.k2g05.controllers.Popups

public class Popups extends Object
Class for showing different types of popups. e.g. Error, Confirmation and Warning popups/dialogs
  • Constructor Details

    • Popups

      public Popups()
  • Method Details

    • showError

      public static void showError(String title, String header, String content)
      Method for showing an error alert.
      Parameters:
      title - of the alert
      header - for the alert
      content - for the alert
    • showConfirmation

      public static boolean showConfirmation(String title, String header, String content)
      Method for showing an confirmation alert.
      Parameters:
      title - of the alert
      header - for the alert
      content - for the alert
      Returns:
      true if OK, button is pressed.
    • showWarningOfOverriding

      public static javafx.scene.control.ButtonBar.ButtonData showWarningOfOverriding(String title, String header, String content)
      Shows a warning pane
      Parameters:
      title - of warning
      header - of warning
      content - of warning
      Returns:
      YES if override, NO if cancel and CANCEL_CLOSE if delte changes