SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.view.component.MyAlert Class Reference

A styled JavaFX alert dialog with optional sizing and custom appearance. More...

Inheritance diagram for fr.softsf.sudokufx.view.component.MyAlert:
Collaboration diagram for fr.softsf.sudokufx.view.component.MyAlert:

Public Member Functions

 MyAlert (AlertType alertType)
 Creates a styled alert with automatic sizing.
 MyAlert (AlertType alertType, @Nullable Double size)
 Creates a styled alert with a fixed size.

Private Member Functions

void initDialog (@Nullable Double size)
 Initializes the alert with optional size and visual styling.

Static Private Attributes

static final String ALERT_FONT_CSS

Detailed Description

A styled JavaFX alert dialog with optional sizing and custom appearance.

Applies a radial gradient background, white text, and a custom window icon.

Constructor & Destructor Documentation

◆ MyAlert() [1/2]

fr.softsf.sudokufx.view.component.MyAlert.MyAlert ( AlertType alertType)

Creates a styled alert with automatic sizing.

Parameters
alertTypethe alert type (e.g., INFORMATION, CONFIRMATION)

◆ MyAlert() [2/2]

fr.softsf.sudokufx.view.component.MyAlert.MyAlert ( AlertType alertType,
@Nullable Double size )

Creates a styled alert with a fixed size.

Parameters
alertTypethe alert type (e.g., INFORMATION, CONFIRMATION)
sizethe fixed width and height for the dialog pane, or null for default sizing
Here is the call graph for this function:

Member Function Documentation

◆ initDialog()

void fr.softsf.sudokufx.view.component.MyAlert.initDialog ( @Nullable Double size)
private

Initializes the alert with optional size and visual styling.

Parameters
sizethe optional size; if null, the dialog uses default sizing

Member Data Documentation

◆ ALERT_FONT_CSS

final String fr.softsf.sudokufx.view.component.MyAlert.ALERT_FONT_CSS
staticprivate
Initial value:
=
Objects.requireNonNull(SudoMain.class.getResource(RESOURCES_CSS_ALERT_PATH.getPath()))
.toExternalForm()
Main JavaFX application class launching the UI and initializing the Spring context.
Definition SudoMain.java:55

The documentation for this class was generated from the following file:
  • src/main/java/fr/softsf/sudokufx/view/component/MyAlert.java