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 ()
 Initializes the MenuSolveViewModel with necessary reactive bindings.
void setSolvePercentage (int value)
 Sets the value of the percentage property.
StringBinding solveClearAccessibleTextProperty ()
 Returns the reactive binding for the solve clear accessible text property.
StringBinding solveClearRoleDescriptionProperty ()
 Returns the reactive binding for the solve clear role description property.
StringBinding solveClearTooltipProperty ()
 Returns the reactive binding for the solve clear tooltip property.
StringBinding solveMenuMaxiAccessibleTextProperty ()
 Returns the reactive binding for the solve menu maxi accessible text property.
StringBinding solveMenuMaxiRoleDescriptionProperty ()
 Returns the reactive binding for the solve menu maxi role description property.
StringBinding solveMenuMaxiTextProperty ()
 Returns the reactive binding for the solve menu maxi text property.
StringBinding solveMenuMaxiTooltipProperty ()
 Returns the reactive binding for the solve menu maxi tooltip property.
IntegerProperty solvePercentageProperty ()
 Returns the integer property for the solve percentage.
StringBinding solveReduceAccessibleTextProperty ()
 Returns the reactive binding for the solve reduce accessible text property.
StringBinding solveReduceTextProperty ()
 Returns the reactive binding for the solve reduce text property.
StringBinding solveReduceTooltipProperty ()
 Returns the reactive binding for the solve reduce tooltip property.
StringBinding solveRoleDescriptionProperty ()
 Returns the reactive binding for the solve role description property.
StringBinding solveTextProperty ()
 Returns the reactive binding for the solve text property.

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 ( )

Initializes the MenuSolveViewModel with necessary reactive bindings.

Configures i18n-aware StringBindings for UI labels, tooltips, and accessibility roles.

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 ( )

Returns the reactive binding for the solve clear accessible text property.

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

◆ solveClearRoleDescriptionProperty()

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

Returns the reactive binding for the solve clear role description property.

Returns
the StringBinding for the solve clear role description
Here is the call graph for this function:

◆ solveClearTooltipProperty()

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

Returns the reactive binding for the solve clear tooltip property.

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

◆ solveMenuMaxiAccessibleTextProperty()

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

Returns the reactive binding for the solve menu maxi accessible text property.

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

◆ solveMenuMaxiRoleDescriptionProperty()

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

Returns the reactive binding for the solve menu maxi role description property.

Returns
the StringBinding for the solve menu maxi role description
Here is the call graph for this function:

◆ solveMenuMaxiTextProperty()

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

Returns the reactive binding for the solve menu maxi text property.

Returns
the StringBinding for the solve menu maxi text
Here is the call graph for this function:

◆ solveMenuMaxiTooltipProperty()

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

Returns the reactive binding for the solve menu maxi tooltip property.

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

◆ solvePercentageProperty()

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

Returns the integer property for the solve percentage.

Returns
the IntegerProperty for solve percentage
Here is the call graph for this function:

◆ solveReduceAccessibleTextProperty()

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

Returns the reactive binding for the solve reduce accessible text property.

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

◆ solveReduceTextProperty()

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

Returns the reactive binding for the solve reduce text property.

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

◆ solveReduceTooltipProperty()

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

Returns the reactive binding for the solve reduce tooltip property.

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

◆ solveRoleDescriptionProperty()

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

Returns the reactive binding for the solve role description property.

Returns
the StringBinding for the solve role description
Here is the call graph for this function:

◆ solveTextProperty()

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

Returns the reactive binding for the solve text property.

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

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: