| Modifier and Type | Field and Description |
|---|---|
| private final SimpleListProperty | |
| private final SimpleIntegerProperty | |
| private final JournalAbbreviationPreferences | |
| private final SimpleObjectProperty | |
| private final SimpleObjectProperty | |
| private final DialogService | |
| private final SimpleBooleanProperty | |
| private final SimpleBooleanProperty | |
| private final SimpleBooleanProperty | |
| private final SimpleBooleanProperty | |
| private final JournalAbbreviationRepository | |
| private final SimpleListProperty | |
| private final Logger | |
| private boolean | |
| private final TaskExecutor | |
| private final SimpleBooleanProperty |
| Access | Constructor and Description |
|---|---|
| public | JournalAbbreviationsTabViewModel(JournalAbbreviationPreferences abbreviationsPreferences, DialogService dialogService, TaskExecutor taskExecutor, JournalAbbreviationRepository journalAbbreviationRepository)
|
| Modifier and Type | Method and Description |
|---|---|
| public SimpleIntegerProperty | |
| public SimpleListProperty | |
| public void | addAbbreviation(Abbreviation abbreviationObject)
Method to add a new abbreviation to the abbreviations list property. |
| public void | |
| public void | addBuiltInList()
This will load the built in abbreviation files and add it to the list of journal abbreviation files. |
| public void | addNewFile()
This method shall be used to add a new journal abbreviation file to the set of journal abbreviation files. |
| public void | |
| public SimpleObjectProperty | |
| public SimpleObjectProperty | |
| public void | |
| pack-priv void | editAbbreviation(Abbreviation abbreviationObject)
Method to change the currentAbbreviation property to a new abbreviation. |
| public SimpleBooleanProperty | |
| public SimpleBooleanProperty | |
| public SimpleBooleanProperty | |
| public SimpleBooleanProperty | |
| public SimpleListProperty | |
| private void | |
| public void | |
| public void | |
| public void | removeCurrentFile()
This method removes the currently selected file from the set of journal abbreviation files. |
| public void | saveJournalAbbreviationFiles()
Calls the |
| public void | selectLastJournalFile()
This will set the |
| private void | |
| public void | setValues()
Implements org. This method is called when the dialog is opened, or if it is made visible after being hidden. |
| public void | storeSettings()
Implements org. This method first saves all external files to its internal list, then writes all abbreviations to their files and finally updates the abbreviations auto complete. |
| public SimpleBooleanProperty |
| abbreviations | back to summary |
|---|---|
| private final SimpleListProperty<AbbreviationViewModel> abbreviations | |
| abbreviationsCount | back to summary |
|---|---|
| private final SimpleIntegerProperty abbreviationsCount | |
| abbreviationsPreferences | back to summary |
|---|---|
| private final JournalAbbreviationPreferences abbreviationsPreferences | |
| currentAbbreviation | back to summary |
|---|---|
| private final SimpleObjectProperty<AbbreviationViewModel> currentAbbreviation | |
| currentFile | back to summary |
|---|---|
| private final SimpleObjectProperty<AbbreviationsFileViewModel> currentFile | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| isAbbreviationEditableAndRemovable | back to summary |
|---|---|
| private final SimpleBooleanProperty isAbbreviationEditableAndRemovable | |
| isEditableAndRemovable | back to summary |
|---|---|
| private final SimpleBooleanProperty isEditableAndRemovable | |
| isFileRemovable | back to summary |
|---|---|
| private final SimpleBooleanProperty isFileRemovable | |
| isLoading | back to summary |
|---|---|
| private final SimpleBooleanProperty isLoading | |
| journalAbbreviationRepository | back to summary |
|---|---|
| private final JournalAbbreviationRepository journalAbbreviationRepository | |
| journalFiles | back to summary |
|---|---|
| private final SimpleListProperty<AbbreviationsFileViewModel> journalFiles | |
| LOGGER | back to summary |
|---|---|
| private final Logger LOGGER | |
| shouldWriteLists | back to summary |
|---|---|
| private boolean shouldWriteLists | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| useFJournal | back to summary |
|---|---|
| private final SimpleBooleanProperty useFJournal | |
| JournalAbbreviationsTabViewModel | back to summary |
|---|---|
| public JournalAbbreviationsTabViewModel(JournalAbbreviationPreferences abbreviationsPreferences, DialogService dialogService, TaskExecutor taskExecutor, JournalAbbreviationRepository journalAbbreviationRepository) | |
| abbreviationsCountProperty | back to summary |
|---|---|
| public SimpleIntegerProperty abbreviationsCountProperty() | |
| abbreviationsProperty | back to summary |
|---|---|
| public SimpleListProperty | |
| addAbbreviation | back to summary |
|---|---|
| public void addAbbreviation(Abbreviation abbreviationObject) Method to add a new abbreviation to the abbreviations list property. It also sets the currentAbbreviation property to the new abbreviation. | |
| addAbbreviation | back to summary |
|---|---|
| public void addAbbreviation() | |
| addBuiltInList | back to summary |
|---|---|
| public void addBuiltInList() This will load the built in abbreviation files and add it to the list of journal abbreviation files. | |
| addNewFile | back to summary |
|---|---|
| public void addNewFile() This method shall be used to add a new journal abbreviation file to the set of journal abbreviation files. It
basically just calls the | |
| createFileObjects | back to summary |
|---|---|
| public void createFileObjects() Read all saved file paths and read their abbreviations. | |
| currentAbbreviationProperty | back to summary |
|---|---|
| public SimpleObjectProperty | |
| currentFileProperty | back to summary |
|---|---|
| public SimpleObjectProperty | |
| deleteAbbreviation | back to summary |
|---|---|
| public void deleteAbbreviation() Method to delete the abbreviation set in the currentAbbreviation property. The currentAbbreviationProperty will
be set to the previous or next abbreviation in the abbreviations property if applicable. Else it will be set to
| |
| editAbbreviation | back to summary |
|---|---|
| pack-priv void editAbbreviation(Abbreviation abbreviationObject) Method to change the currentAbbreviation property to a new abbreviation. | |
| isAbbreviationEditableAndRemovable | back to summary |
|---|---|
| public SimpleBooleanProperty isAbbreviationEditableAndRemovable() | |
| isEditableAndRemovableProperty | back to summary |
|---|---|
| public SimpleBooleanProperty isEditableAndRemovableProperty() | |
| isFileRemovableProperty | back to summary |
|---|---|
| public SimpleBooleanProperty isFileRemovableProperty() | |
| isLoadingProperty | back to summary |
|---|---|
| public SimpleBooleanProperty isLoadingProperty() | |
| journalFilesProperty | back to summary |
|---|---|
| public SimpleListProperty | |
| openFile | back to summary |
|---|---|
| private void openFile(Path filePath) Checks whether the file exists or if a new file should be opened. The file will be added to the set of journal abbreviation files. If the file also exists its abbreviations will be read and written to the abbreviations property.
| |
| openFile | back to summary |
|---|---|
| public void openFile() | |
| removeAbbreviation | back to summary |
|---|---|
| public void removeAbbreviation(AbbreviationViewModel abbreviation) | |
| removeCurrentFile | back to summary |
|---|---|
| public void removeCurrentFile() This method removes the currently selected file from the set of journal abbreviation files. This will not remove
existing files from the file system. The | |
| saveJournalAbbreviationFiles | back to summary |
|---|---|
| public void saveJournalAbbreviationFiles() Calls the | |
| selectLastJournalFile | back to summary |
|---|---|
| public void selectLastJournalFile() This will set the | |
| setCurrentAbbreviationNameAndAbbreviationIfValid | back to summary |
|---|---|
| private void setCurrentAbbreviationNameAndAbbreviationIfValid(Abbreviation abbreviationObject) | |
| setValues | back to summary |
|---|---|
| public void setValues() Implements org. Doc from org. This method is called when the dialog is opened, or if it is made visible after being hidden. The tab should update all its values. This is the ONLY PLACE to set values for the fields in the tab. It is ILLEGAL to set values only at construction time, because the dialog will be reused and updated.
| |
| storeSettings | back to summary |
|---|---|
| public void storeSettings() Implements org. This method first saves all external files to its internal list, then writes all abbreviations to their files and finally updates the abbreviations auto complete.
| |
| useFJournalProperty | back to summary |
|---|---|
| public SimpleBooleanProperty useFJournalProperty() | |