![]() |
SudokuFX
|
ViewModel managing player menu UI state and localized accessibility texts. More...
Collaboration diagram for fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel:Public Member Functions | |
| MenuPlayerViewModel (PlayerStateHolder playerStateHolder) | |
| StringBinding | cellButtonAccessibleTextProperty () |
| StringBinding | cellConfirmationMessageProperty () |
| StringBinding | cellConfirmationTitleProperty () |
| StringBinding | editAccessibleTextProperty () |
| StringBinding | editRoleDescriptionProperty () |
| StringBinding | editTooltipProperty () |
| ObservableList< PlayerDto > | getPlayers () |
| StringBinding | maxiPlayerRoleDescriptionProperty () |
| StringBinding | maxiPlayerTooltipProperty () |
| StringBinding | newAccessibleTextProperty () |
| StringBinding | newRoleDescriptionProperty () |
| StringBinding | newTextProperty () |
| StringBinding | newTooltipProperty () |
| StringBinding | playerAccessibleTextProperty () |
| StringBinding | playerRoleDescriptionProperty () |
| StringBinding | playerTooltipProperty () |
| StringBinding | reduceAccessibleTextProperty () |
| StringBinding | reduceTextProperty () |
| StringBinding | reduceTooltipProperty () |
| ObjectProperty< PlayerDto > | selectedPlayerProperty () |
Private Member Functions | |
| StringBinding | createAppendedStringBinding () |
| Creates a localized binding by concatenating two keys. | |
| StringBinding | createFormattedAndConcatenatedBinding (String key, String suffixKey) |
| Creates a localized binding combining a formatted message and suffix. | |
| StringBinding | createFormattedBinding (String key, Supplier< String > argSupplier) |
| Creates a formatted localized binding with player name argument. | |
| StringBinding | createStringBinding (String key) |
| Creates a simple localized binding for a given key. | |
| PlayerDto | generatePlayerForTests (String name) |
| Generates a sample PlayerDto instance for testing purposes. | |
| void | loadPlayers () |
| Loads players into the observable list. | |
| String | playerName () |
| Returns the name of the currently selected player. | |
| void | setSelectedPlayer () |
| Sets the selected player to the one marked as selected or first in the list. | |
Private Attributes | |
| final StringBinding | cellButtonAccessibleText |
| final StringBinding | cellConfirmationMessage |
| final StringBinding | cellConfirmationTitle |
| final StringBinding | editAccessibleText |
| final StringBinding | editRoleDescription |
| final StringBinding | editTooltip |
| final StringBinding | maxiPlayerRoleDescription |
| final StringBinding | maxiPlayerTooltip |
| final StringBinding | newAccessibleText |
| final StringBinding | newRoleDescription |
| final StringBinding | newText |
| final StringBinding | newTooltip |
| final StringBinding | playerAccessibleText |
| final StringBinding | playerRoleDescription |
| final ObservableList< PlayerDto > | players = FXCollections.observableArrayList() |
| final PlayerStateHolder | playerStateHolder |
| final StringBinding | playerTooltip |
| final StringBinding | reduceAccessibleText |
| final StringBinding | reduceText |
| final StringBinding | reduceTooltip |
Static Private Attributes | |
| static final String | MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED |
| static final String | MENU_ACCESSIBILITY_ROLE_DESCRIPTION_OPENED |
| static final String | MENU_ACCESSIBILITY_ROLE_DESCRIPTION_SUBMENU_OPTION |
| static final String | MENU_PLAYER_BUTTON_PLAYER_ACCESSIBILITY |
| static final int | TEST_NUMBER_LOADED_PLAYERS = 50 |
ViewModel managing player menu UI state and localized accessibility texts.
Provides observable players list and reactive StringBindings for UI labels, tooltips, and roles, updated on locale or selection changes.
Assumes selected player has a valid non-blank name as enforced upstream.
| fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.MenuPlayerViewModel | ( | PlayerStateHolder | playerStateHolder | ) |
Here is the call graph for this function:| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.cellButtonAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.cellConfirmationMessageProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.cellConfirmationTitleProperty | ( | ) |
|
private |
Creates a localized binding by concatenating two keys.
Updates when locale changes.
|
private |
Creates a localized binding combining a formatted message and suffix.
Updates when locale or selected player changes.
Here is the call graph for this function:
|
private |
Creates a formatted localized binding with player name argument.
Updates when locale or selected player changes.
|
private |
Creates a simple localized binding for a given key.
Updates when locale changes.
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.editAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.editRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.editTooltipProperty | ( | ) |
|
private |
Generates a sample PlayerDto instance for testing purposes.
| name | the player name |
| ObservableList< PlayerDto > fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.getPlayers | ( | ) |
|
private |
Loads players into the observable list.
Here is the call graph for this function:| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.maxiPlayerRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.maxiPlayerTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.newAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.newRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.newTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.newTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.playerAccessibleTextProperty | ( | ) |
|
private |
Returns the name of the currently selected player.
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.playerRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.playerTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.reduceAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.reduceTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.reduceTooltipProperty | ( | ) |
| ObjectProperty< PlayerDto > fr.softsf.sudokufx.viewmodel.MenuPlayerViewModel.selectedPlayerProperty | ( | ) |
|
private |
Sets the selected player to the one marked as selected or first in the list.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |