CanScan
Loading...
Searching...
No Matches
fr.softsf.canscan.ui.MyPopup Enum Reference

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"
 

Detailed Description

Utility for displaying standardized dialogs.

Provides error, confirmation, and custom message dialogs for UI feedback and validation reporting.

Member Function Documentation

◆ showArgumentErrorDialog()

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.

Parameters
parentthe parent component for the dialog (can be null)
methodNamethe name of the calling method
namethe name of the invalid parameter
typeDescriptiona short description of the invalidity (e.g., "null",
"blank"
)

◆ showDialog()

void fr.softsf.canscan.ui.MyPopup.showDialog ( String prefix,
String message,
String title )

Displays a dialog with a custom prefix and message.

Parameters
prefixthe message prefix (e.g. "❌ QR Code generation error:\n")
messagethe details to display
titlethe dialog title (defaults to "Soft64.fr" if null or blank)

◆ showYesNoConfirmDialog()

int fr.softsf.canscan.ui.MyPopup.showYesNoConfirmDialog ( String message)

Displays a modal Yes/No confirmation dialog with a warning icon and the given message.

Parameters
messagethe message to display in the dialog
Returns
JOptionPane#YES_OPTION or JOptionPane#NO_OPTION based on user selection

Member Data Documentation

◆ INSTANCE

fr.softsf.canscan.ui.MyPopup.INSTANCE

◆ SHOW_ARGUMENT_ERROR_DIALOG

final String fr.softsf.canscan.ui.MyPopup.SHOW_ARGUMENT_ERROR_DIALOG = "showArgumentErrorDialog"
staticprivate

The documentation for this enum was generated from the following file: