Class AlertBuilder
java.lang.Object
overit.geocallapp.utilities.ux.ui.util.AlertBuilder
- All Implemented Interfaces:
Serializable
Utility to build Alert
- Since:
- 19.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertBuild an error alert from a simple string messagestatic AlertBuild an error alertstatic AlertBuild an error alertstatic Alerterror(Component c, String title, DAValidateException e) Build an error alert starting from aDAValidateExceptionand a custom titlestatic AlertBuild an error alert starting from aDAValidateExceptionstatic AlertBuild an error alert from a simple string messagestatic AlertBuild a generic Alertstatic AlertBuild a generic Alertstatic AlertBuild a generic Alertstatic AlertBuild an error alert from a simple string messagestatic AlertBuild a question alert starting from the question message and a titlestatic AlertBuild a warning Alertstatic AlertBuild a warning Alertstatic AlertBuild a warning Alertstatic Alertwarning(Component c, String title, DAValidateException e) Build a warning Alert starting from aDAValidateExceptionstatic AlertBuild a warning Alert starting from aDAValidateException
-
Field Details
-
MESSAGE_TITLE
Title to use for the info alert- See Also:
-
WARNING_TITLE
Title to use for warning alert- See Also:
-
ERROR_TITLE
Title to use for error alert- See Also:
-
-
Constructor Details
-
AlertBuilder
public AlertBuilder()
-
-
Method Details
-
error
Build an error alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert messageparams- the message parameters- Returns:
- the generated
Alert
-
error
Build an error alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert message- Returns:
- the generated
Alert
-
error
Build an error alert starting from aDAValidateException- Parameters:
c- the component in which generate the alerte- the startingDAValidateException- Returns:
- the generated
Alert
-
error
Build an error alert starting from aDAValidateExceptionand a custom title- Parameters:
c- the component in which generate the alerttitle- the alert titlee- the startingDAValidateException- Returns:
- the generated
Alert
-
error
Build an error alert from a simple string message- Parameters:
c- the component in which generate the alertmessage- the alert message- Returns:
- the generated
Alert
-
error
Build an error alert from a simple string message- Parameters:
c- the component in which generate the alertcode- the alert message- Returns:
- the generated
Alert
-
warning
Build a warning Alert starting from aDAValidateException- Parameters:
c- the component in which generate the alerte- the startingDAValidateException- Returns:
- the generated
Alert
-
warning
Build a warning Alert starting from aDAValidateException- Parameters:
c- the component in which generate the alerttitle- the alert titlee- the startingDAValidateException- Returns:
- the generated
Alert
-
warning
Build a warning Alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert message- Returns:
- the generated
Alert
-
warning
Build a warning Alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert messageparams- the messge parameters- Returns:
- the generated
Alert
-
warning
Build a warning Alert- Parameters:
c- the component in which generate the alertmessage- the alert message- Returns:
- the generated
Alert
-
message
Build a generic Alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert messageparams- the message parameters- Returns:
- the generated
Alert
-
message
Build a generic Alert- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the alert message- Returns:
- the generated
Alert
-
message
Build a generic Alert- Parameters:
c- the component in which generate the alertmessage- the alert message- Returns:
- the generated
Alert
-
message
Build an error alert from a simple string message- Parameters:
c- the component in which generate the alertcode- the alert message- Returns:
- the generated
Alert
-
question
Build a question alert starting from the question message and a title- Parameters:
c- the component in which generate the alerttitle- the alert titlemessage- the question message- Returns:
- the generated
Alert
-