SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.viewmodel.MenuMiniViewModel Class Reference

ViewModel for the mini menu. More...

Collaboration diagram for fr.softsf.sudokufx.viewmodel.MenuMiniViewModel:

Public Member Functions

 MenuMiniViewModel ()
 Initializes all bindings for accessible texts and tooltips, bound to the current locale.
StringBinding backupAccessibleTextProperty ()
 Returns the reactive binding for the backup button's accessible text.
StringBinding backupTooltipProperty ()
 Returns the reactive binding for the backup button's tooltip.
StringBinding helpAccessibleTextProperty ()
 Returns the reactive binding for the help button's accessible text.
StringBinding helpTooltipProperty ()
 Returns the reactive binding for the help button's tooltip.
StringBinding languageAccessibleTextProperty ()
 Returns the reactive binding for the language button's accessible text.
StringBinding languageTooltipProperty ()
 Returns the reactive binding for the language button's tooltip.
StringBinding menuMiniButtonLanguageIsoTextProperty ()
 Returns the reactive binding for the language button's ISO text.
StringBinding optionsAccessibleTextProperty ()
 Returns the reactive binding for the options button's accessible text.
StringBinding optionsTooltipProperty ()
 Returns the reactive binding for the options button's tooltip.
StringBinding playerAccessibleTextProperty ()
 Returns the reactive binding for the player button's accessible text.
StringBinding playerTooltipProperty ()
 Returns the reactive binding for the player button's tooltip.
StringBinding showAccessibleTextProperty ()
 Returns the reactive binding for the show button's accessible text.
StringBinding showTooltipProperty ()
 Returns the reactive binding for the show button's tooltip.
StringBinding solveAccessibleTextProperty ()
 Returns the reactive binding for the solve button's accessible text.
StringBinding solveTooltipProperty ()
 Returns the reactive binding for the solve button's tooltip.

Private Member Functions

StringBinding createStringBinding (String key)
 Creates a StringBinding for a given key, bound to the current locale.
StringBinding createTooltipBinding (String key)
 Creates a tooltip StringBinding by appending the default accessibility role description.

Private Attributes

final StringBinding backupAccessibleText
final StringBinding backupTooltip
final StringBinding helpAccessibleText
final StringBinding helpTooltip
final StringBinding languageAccessibleText
final StringBinding languageIso
final StringBinding languageTooltip
final StringBinding optionsAccessibleText
final StringBinding optionsTooltip
final StringBinding playerAccessibleText
final StringBinding playerTooltip
final StringBinding showAccessibleText
final StringBinding showTooltip
final StringBinding solveAccessibleText
final StringBinding solveTooltip

Static Private Attributes

static final String MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED

Detailed Description

ViewModel for the mini menu.

Provides internationalized accessible texts and tooltips for each button in the mini menu. Texts automatically update when the application's locale changes.

Constructor & Destructor Documentation

◆ MenuMiniViewModel()

fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.MenuMiniViewModel ( )

Initializes all bindings for accessible texts and tooltips, bound to the current locale.

Here is the call graph for this function:

Member Function Documentation

◆ backupAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.backupAccessibleTextProperty ( )

Returns the reactive binding for the backup button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ backupTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.backupTooltipProperty ( )

Returns the reactive binding for the backup button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ createStringBinding()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.createStringBinding ( String key)
private

Creates a StringBinding for a given key, bound to the current locale.

Parameters
keythe translation key
Returns
the bound string

◆ createTooltipBinding()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.createTooltipBinding ( String key)
private

Creates a tooltip StringBinding by appending the default accessibility role description.

Parameters
keythe base translation key
Returns
the bound tooltip string

◆ helpAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.helpAccessibleTextProperty ( )

Returns the reactive binding for the help button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ helpTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.helpTooltipProperty ( )

Returns the reactive binding for the help button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ languageAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.languageAccessibleTextProperty ( )

Returns the reactive binding for the language button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ languageTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.languageTooltipProperty ( )

Returns the reactive binding for the language button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ menuMiniButtonLanguageIsoTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.menuMiniButtonLanguageIsoTextProperty ( )

Returns the reactive binding for the language button's ISO text.

Returns
the StringBinding for the ISO text
Here is the call graph for this function:

◆ optionsAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.optionsAccessibleTextProperty ( )

Returns the reactive binding for the options button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ optionsTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.optionsTooltipProperty ( )

Returns the reactive binding for the options button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ playerAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.playerAccessibleTextProperty ( )

Returns the reactive binding for the player button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ playerTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.playerTooltipProperty ( )

Returns the reactive binding for the player button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ showAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.showAccessibleTextProperty ( )

Returns the reactive binding for the show button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ showTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.showTooltipProperty ( )

Returns the reactive binding for the show button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

◆ solveAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.solveAccessibleTextProperty ( )

Returns the reactive binding for the solve button's accessible text.

Returns
the StringBinding for the accessible text
Here is the call graph for this function:

◆ solveTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.solveTooltipProperty ( )

Returns the reactive binding for the solve button's tooltip.

Returns
the StringBinding for the tooltip
Here is the call graph for this function:

Member Data Documentation

◆ backupAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.backupAccessibleText
private

◆ backupTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.backupTooltip
private

◆ helpAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.helpAccessibleText
private

◆ helpTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.helpTooltip
private

◆ languageAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.languageAccessibleText
private

◆ languageIso

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.languageIso
private

◆ languageTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.languageTooltip
private

◆ MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED

final String fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED
staticprivate
Initial value:
=
"menu.accessibility.role.description.closed"

◆ optionsAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.optionsAccessibleText
private

◆ optionsTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.optionsTooltip
private

◆ playerAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.playerAccessibleText
private

◆ playerTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.playerTooltip
private

◆ showAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.showAccessibleText
private

◆ showTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.showTooltip
private

◆ solveAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.solveAccessibleText
private

◆ solveTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuMiniViewModel.solveTooltip
private

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