![]() |
CanScan
|
Utility for displaying standardized dialogs. More...
Collaboration diagram for fr.softsf.canscan.ui.MyPopup:Public Member Functions | |
| void | showArgumentErrorDialog (Component parent, String methodName, String name, String typeDescription) |
| Displays a standardized error dialog for invalid arguments. | |
| void | showDialog (String prefix, String message, String title) |
| Displays a dialog with a custom prefix and message. | |
| int | showYesNoConfirmDialog (String message) |
| Displays a modal Yes/No confirmation dialog with a warning icon and the given message. | |
Public Attributes | |
| INSTANCE | |
Static Private Attributes | |
| static final String | SHOW_ARGUMENT_ERROR_DIALOG = "showArgumentErrorDialog" |
Utility for displaying standardized dialogs.
Provides error, confirmation, and custom message dialogs for UI feedback and validation reporting.
| void fr.softsf.canscan.ui.MyPopup.showArgumentErrorDialog | ( | Component | parent, |
| String | methodName, | ||
| String | name, | ||
| String | typeDescription ) |
Displays a standardized error dialog for invalid arguments.
Returns immediately if any parameter is null or invalid.
| parent | the parent component for the dialog (can be null) |
| methodName | the name of the calling method |
| name | the name of the invalid parameter |
| typeDescription | a short description of the invalidity (e.g., "null", ) |
| void fr.softsf.canscan.ui.MyPopup.showDialog | ( | String | prefix, |
| String | message, | ||
| String | title ) |
Displays a dialog with a custom prefix and message.
| prefix | the message prefix (e.g. "❌ QR Code generation error:\n") |
| message | the details to display |
| title | the dialog title (defaults to "Soft64.fr" if null or blank) |
| int fr.softsf.canscan.ui.MyPopup.showYesNoConfirmDialog | ( | String | message | ) |
Displays a modal Yes/No confirmation dialog with a warning icon and the given message.
| message | the message to display in the dialog |
JOptionPane#YES_OPTION or JOptionPane#NO_OPTION based on user selection | fr.softsf.canscan.ui.MyPopup.INSTANCE |
|
staticprivate |