Class AlertBuilder

java.lang.Object
overit.geocallapp.utilities.ux.ui.util.AlertBuilder
All Implemented Interfaces:
Serializable

public class AlertBuilder extends Object implements Serializable
Utility to build Alert
Since:
19.0
See Also:
  • Field Details

  • Constructor Details

    • AlertBuilder

      public AlertBuilder()
  • Method Details

    • error

      public static Alert error(Component c, String title, String message, Object[] params)
      Build an error alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      params - the message parameters
      Returns:
      the generated Alert
    • error

      public static Alert error(Component c, String title, String message)
      Build an error alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      Returns:
      the generated Alert
    • error

      public static Alert error(Component c, DAValidateException e)
      Build an error alert starting from a DAValidateException
      Parameters:
      c - the component in which generate the alert
      e - the starting DAValidateException
      Returns:
      the generated Alert
    • error

      public static Alert error(Component c, String title, DAValidateException e)
      Build an error alert starting from a DAValidateException and a custom title
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      e - the starting DAValidateException
      Returns:
      the generated Alert
    • error

      public static Alert error(Component c, String message)
      Build an error alert from a simple string message
      Parameters:
      c - the component in which generate the alert
      message - the alert message
      Returns:
      the generated Alert
    • error

      public static Alert error(Component c, Code code)
      Build an error alert from a simple string message
      Parameters:
      c - the component in which generate the alert
      code - the alert message
      Returns:
      the generated Alert
    • warning

      public static Alert warning(Component c, DAValidateException e)
      Build a warning Alert starting from a DAValidateException
      Parameters:
      c - the component in which generate the alert
      e - the starting DAValidateException
      Returns:
      the generated Alert
    • warning

      public static Alert warning(Component c, String title, DAValidateException e)
      Build a warning Alert starting from a DAValidateException
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      e - the starting DAValidateException
      Returns:
      the generated Alert
    • warning

      public static Alert warning(Component c, String title, String message)
      Build a warning Alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      Returns:
      the generated Alert
    • warning

      public static Alert warning(Component c, String title, String message, Object[] params)
      Build a warning Alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      params - the messge parameters
      Returns:
      the generated Alert
    • warning

      public static Alert warning(Component c, String message)
      Build a warning Alert
      Parameters:
      c - the component in which generate the alert
      message - the alert message
      Returns:
      the generated Alert
    • message

      public static Alert message(Component c, String title, String message, Object[] params)
      Build a generic Alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      params - the message parameters
      Returns:
      the generated Alert
    • message

      public static Alert message(Component c, String title, String message)
      Build a generic Alert
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the alert message
      Returns:
      the generated Alert
    • message

      public static Alert message(Component c, String message)
      Build a generic Alert
      Parameters:
      c - the component in which generate the alert
      message - the alert message
      Returns:
      the generated Alert
    • message

      public static Alert message(Component c, Code code)
      Build an error alert from a simple string message
      Parameters:
      c - the component in which generate the alert
      code - the alert message
      Returns:
      the generated Alert
    • question

      public static Alert question(Component c, String title, String message)
      Build a question alert starting from the question message and a title
      Parameters:
      c - the component in which generate the alert
      title - the alert title
      message - the question message
      Returns:
      the generated Alert