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

ViewModel for managing "solve" menu UI state and accessibility texts. More...

+ Collaboration diagram for fr.softsf.sudokufx.viewmodel.MenuSolveViewModel:

Public Member Functions

 MenuSolveViewModel ()
 
void setSolvePercentage (int value)
 Sets the value of the percentage property.
 
StringBinding solveClearAccessibleTextProperty ()
 
StringBinding solveClearRoleDescriptionProperty ()
 
StringBinding solveClearTooltipProperty ()
 
StringBinding solveMenuMaxiAccessibleTextProperty ()
 
StringBinding solveMenuMaxiRoleDescriptionProperty ()
 
StringBinding solveMenuMaxiTextProperty ()
 
StringBinding solveMenuMaxiTooltipProperty ()
 
IntegerProperty solvePercentageProperty ()
 
StringBinding solveReduceAccessibleTextProperty ()
 
StringBinding solveReduceTextProperty ()
 
StringBinding solveReduceTooltipProperty ()
 
StringBinding solveRoleDescriptionProperty ()
 
StringBinding solveTextProperty ()
 

Private Member Functions

StringBinding createFormattedAndConcatenatedBinding (String key, String suffixKey)
 Creates a localized StringBinding by concatenating the value of two keys.
 
StringBinding createStringBinding (String key)
 Creates a simple localized StringBinding for the given key.
 

Private Attributes

final StringBinding solveClearAccessibleText
 
final StringBinding solveClearRoleDescription
 
final StringBinding solveClearTooltip
 
final StringBinding solveMenuMaxiAccessibleText
 
final StringBinding solveMenuMaxiRoleDescription
 
final StringBinding solveMenuMaxiText
 
final StringBinding solveMenuMaxiTooltip
 
final IntegerProperty solvePercentage = new SimpleIntegerProperty(-1)
 
final StringBinding solveReduceAccessibleText
 
final StringBinding solveReduceText
 
final StringBinding solveReduceTooltip
 
final StringBinding solveRoleDescription
 
final StringBinding solveText
 

Static Private Attributes

static final String MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED
 
static final String MENU_ACCESSIBILITY_ROLE_DESCRIPTION_OPENED
 

Detailed Description

ViewModel for managing "solve" menu UI state and accessibility texts.

Holds a percentage value used for solving, and provides localized StringBindings for UI labels, accessibility, tooltips, and role descriptions.

Uses I18n singleton for localization with automatic updates on locale changes.

Constructor & Destructor Documentation

◆ MenuSolveViewModel()

fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.MenuSolveViewModel ( )
+ Here is the call graph for this function:

Member Function Documentation

◆ createFormattedAndConcatenatedBinding()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.createFormattedAndConcatenatedBinding ( String key,
String suffixKey )
private

Creates a localized StringBinding by concatenating the value of two keys.

Updates automatically when the locale changes.

Parameters
keythe base key
suffixKeythe key for the suffix to append
Returns
a StringBinding for the combined localized value

◆ createStringBinding()

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

Creates a simple localized StringBinding for the given key.

Updates automatically when the locale changes.

Parameters
keythe i18n key
Returns
a StringBinding for the localized value

◆ setSolvePercentage()

void fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.setSolvePercentage ( int value)

Sets the value of the percentage property.

Parameters
valuethe new percentage value

◆ solveClearAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearAccessibleTextProperty ( )

◆ solveClearRoleDescriptionProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearRoleDescriptionProperty ( )

◆ solveClearTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearTooltipProperty ( )

◆ solveMenuMaxiAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiAccessibleTextProperty ( )

◆ solveMenuMaxiRoleDescriptionProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiRoleDescriptionProperty ( )

◆ solveMenuMaxiTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiTextProperty ( )

◆ solveMenuMaxiTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiTooltipProperty ( )

◆ solvePercentageProperty()

IntegerProperty fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solvePercentageProperty ( )

◆ solveReduceAccessibleTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceAccessibleTextProperty ( )

◆ solveReduceTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceTextProperty ( )

◆ solveReduceTooltipProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceTooltipProperty ( )

◆ solveRoleDescriptionProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveRoleDescriptionProperty ( )

◆ solveTextProperty()

StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveTextProperty ( )

Member Data Documentation

◆ MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED

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

◆ MENU_ACCESSIBILITY_ROLE_DESCRIPTION_OPENED

final String fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.MENU_ACCESSIBILITY_ROLE_DESCRIPTION_OPENED
staticprivate
Initial value:
=
"menu.accessibility.role.description.opened"

◆ solveClearAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearAccessibleText
private

◆ solveClearRoleDescription

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearRoleDescription
private

◆ solveClearTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveClearTooltip
private

◆ solveMenuMaxiAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiAccessibleText
private

◆ solveMenuMaxiRoleDescription

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiRoleDescription
private

◆ solveMenuMaxiText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiText
private

◆ solveMenuMaxiTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveMenuMaxiTooltip
private

◆ solvePercentage

final IntegerProperty fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solvePercentage = new SimpleIntegerProperty(-1)
private

◆ solveReduceAccessibleText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceAccessibleText
private

◆ solveReduceText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceText
private

◆ solveReduceTooltip

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveReduceTooltip
private

◆ solveRoleDescription

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveRoleDescription
private

◆ solveText

final StringBinding fr.softsf.sudokufx.viewmodel.MenuSolveViewModel.solveText
private

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