| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final List | |
| private final UndoManager |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | LibraryPropertiesViewModel(BibDatabaseContext databaseContext, UndoManager undoManager, List<PropertiesTab> propertiesTabs)
For tests, which cannot build the tab views without a JavaFX toolkit. |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public void | |
| public void | |
| public boolean |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| propertiesTabs | back to summary |
|---|---|
| private final List<PropertiesTab> propertiesTabs | |
| undoManager | back to summary |
|---|---|
| private final UndoManager undoManager | |
| LibraryPropertiesViewModel | back to summary |
|---|---|
| public LibraryPropertiesViewModel(BibDatabaseContext databaseContext, UndoManager undoManager) | |
| LibraryPropertiesViewModel | back to summary |
|---|---|
| pack-priv LibraryPropertiesViewModel(BibDatabaseContext databaseContext, UndoManager undoManager, List<PropertiesTab> propertiesTabs) For tests, which cannot build the tab views without a JavaFX toolkit. | |
| getPropertiesTabs | back to summary |
|---|---|
| public List | |
| setValues | back to summary |
|---|---|
| public void setValues() Fills the tabs from the library's settings as they stand. The copy the tabs write to is
made in | |
| storeAllSettings | back to summary |
|---|---|
| public void storeAllSettings() Stores every tab as one undo step. The tabs write into a copy of the library's settings, and the step installs that copy. Two things follow from the copy. The dialog reaches the library through one door — the change record — instead of through a dozen setters, so the library sees one change, correctly described as journalled, rather than one event per setting that nothing can attribute. And the settings are recorded as the pair of states they went between, which is the only shape available: seven tabs write straight into the metadata, so there is no per-setting change to collect. What the tabs record themselves — the preamble, the string constants, the entries the keyword separator migration rewrites — joins the same step, since those are not settings and the block collects whatever is recorded inside it. | |
| validateAllSettings | back to summary |
|---|---|
| public boolean validateAllSettings() | |