![]() |
SudokuFX
|
ViewModel for managing backup menu UI state and accessibility texts. More...
Collaboration diagram for fr.softsf.sudokufx.viewmodel.MenuSaveViewModel:Public Member Functions | |
| MenuSaveViewModel () | |
| StringBinding | backupAccessibleTextProperty () |
| StringBinding | backupRoleDescriptionProperty () |
| StringBinding | backupTextProperty () |
| StringBinding | backupTooltipProperty () |
| StringBinding | cellConfirmationMessageProperty () |
| StringBinding | cellConfirmationTitleProperty () |
| StringBinding | cellDeleteAccessibleTextProperty () |
| ObservableList< GameDto > | getBackups () |
| StringBinding | maxiBackupAccessibleTextProperty () |
| StringBinding | maxiBackupRoleDescriptionProperty () |
| StringBinding | maxiBackupTextProperty () |
| StringBinding | maxiBackupTooltipProperty () |
| StringBinding | reduceAccessibleTextProperty () |
| StringBinding | reduceTextProperty () |
| StringBinding | reduceTooltipProperty () |
| StringBinding | saveAccessibleTextProperty () |
| StringBinding | saveRoleDescriptionProperty () |
| StringBinding | saveTextProperty () |
| StringBinding | saveTooltipProperty () |
| ObjectProperty< GameDto > | selectedBackupProperty () |
Private Member Functions | |
| GameDto | createBackupGameDto (Instant date, boolean isSelected) |
| Generates a sample GameDto instance for testing purposes. | |
| 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. | |
| void | loadBackups () |
| Loads test backups into the observable list. | |
| void | setSelectedBackup () |
| Sets the selected backup to the one marked as selected, or defaults to the first in the list if none are selected. | |
Private Attributes | |
| final StringBinding | backupAccessibleText |
| final StringBinding | backupRoleDescription |
| final ObservableList< GameDto > | backups = FXCollections.observableArrayList() |
| final StringBinding | backupText |
| final StringBinding | backupTooltip |
| final StringBinding | cellConfirmationMessage |
| final StringBinding | cellConfirmationTitle |
| final StringBinding | cellDeleteAccessibleText |
| final StringBinding | maxiBackupAccessibleText |
| final StringBinding | maxiBackupRoleDescription |
| final StringBinding | maxiBackupText |
| final StringBinding | maxiBackupTooltip |
| final StringBinding | reduceAccessibleText |
| final StringBinding | reduceText |
| final StringBinding | reduceTooltip |
| final StringBinding | saveAccessibleText |
| final StringBinding | saveRoleDescription |
| final StringBinding | saveText |
| final StringBinding | saveTooltip |
| final ObjectProperty< GameDto > | selectedBackup = new SimpleObjectProperty<>() |
Static Private Attributes | |
| static final String | MENU_ACCESSIBILITY_ROLE_DESCRIPTION_CLOSED |
| static final String | MENU_ACCESSIBILITY_ROLE_DESCRIPTION_OPENED |
| static final int | TEST_BACKUP_END = 11 |
| static final int | TEST_BACKUP_SELECTED_MINUTE = 25 |
| static final int | TEST_BACKUP_START = 31 |
| static final int | TEST_GRID_BYTE_VALUE = 75 |
| static final int | TEST_GRID_STRING_LENGTH = 81 |
| static final int | TEST_GRID_STRING_LENGTH_ALT = 810 |
ViewModel for managing backup menu UI state and accessibility texts.
Holds an observable list of saved games, the currently selected backup, and provides localized StringBindings for UI labels, accessibility, tooltips, and role descriptions.
Uses I18n singleton for localization with automatic updates on locale changes.
| fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.MenuSaveViewModel | ( | ) |
Here is the call graph for this function:| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.backupAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.backupRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.backupTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.backupTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.cellConfirmationMessageProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.cellConfirmationTitleProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.cellDeleteAccessibleTextProperty | ( | ) |
|
private |
Generates a sample GameDto instance for testing purposes.
| date | the timestamp of the backup |
| isSelected | whether the backup is selected |
|
private |
Creates a localized StringBinding by concatenating the value of two keys.
Updates automatically when the locale changes.
| key | the base key |
| suffixKey | the key for the suffix to append |
|
private |
Creates a simple localized StringBinding for the given key.
Updates automatically when the locale changes.
| key | the i18n key |
| ObservableList< GameDto > fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.getBackups | ( | ) |
|
private |
Loads test backups into the observable list.
The backup at minute +25 is marked as selected.
Here is the call graph for this function:| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.maxiBackupAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.maxiBackupRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.maxiBackupTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.maxiBackupTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.reduceAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.reduceTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.reduceTooltipProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.saveAccessibleTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.saveRoleDescriptionProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.saveTextProperty | ( | ) |
| StringBinding fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.saveTooltipProperty | ( | ) |
| ObjectProperty< GameDto > fr.softsf.sudokufx.viewmodel.MenuSaveViewModel.selectedBackupProperty | ( | ) |
|
private |
Sets the selected backup to the one marked as selected, or defaults to the first in the list if none are selected.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |