Verified Owner
Top Fields Constructors Methods
org.jabref.gui.preferences.protectedterms

public Class ProtectedTermsTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.io.IOException, java.nio.file.Path, java.util.ArrayList, .List, .Optional, javafx.beans.property.ListProperty, .SimpleListProperty, javafx.collections.FXCollections, javafx.scene.control.ButtonType, .DialogPane, .ScrollPane, .TextArea, org.jabref.gui.DialogService, org.jabref.gui.desktop.os.NativeDesktop, org.jabref.gui.externalfiletype.ExternalFileType, .ExternalFileTypes, org.jabref.gui.frame.ExternalApplicationsPreferences, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.util.FileDialogConfiguration, org.jabref.logic.FilePreferences, org.jabref.logic.l10n.Localization, org.jabref.logic.protectedterms.ProtectedTermsList, .ProtectedTermsLoader, .ProtectedTermsPreferences, org.jabref.logic.util.StandardFileType, org.jabref.model.database.BibDatabaseContext, org.jabref.model.util.OptionalUtil, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final DialogService
private final ExternalApplicationsPreferences
private final FilePreferences
private static final Logger
private final ProtectedTermsPreferences
private final ListProperty<ProtectedTermsListItemModel>
private final ProtectedTermsLoader

Constructor Summary

AccessConstructor and Description
public
ProtectedTermsTabViewModel(ProtectedTermsLoader termsLoader, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, ProtectedTermsPreferences protectedTermsPreferences)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
setValues()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

This method is called when the dialog is opened, or if it is made visible after being hidden.

public void
storeSettings()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

This method is called when the user presses OK in the Preferences dialog.

public ListProperty<ProtectedTermsListItemModel>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogServiceback to summary
private final DialogService dialogService
externalApplicationsPreferencesback to summary
private final ExternalApplicationsPreferences externalApplicationsPreferences
filePreferencesback to summary
private final FilePreferences filePreferences
LOGGERback to summary
private static final Logger LOGGER
protectedTermsPreferencesback to summary
private final ProtectedTermsPreferences protectedTermsPreferences
termsFilesPropertyback to summary
private final ListProperty<ProtectedTermsListItemModel> termsFilesProperty
termsLoaderback to summary
private final ProtectedTermsLoader termsLoader

Constructor Detail

ProtectedTermsTabViewModelback to summary
public ProtectedTermsTabViewModel(ProtectedTermsLoader termsLoader, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, ProtectedTermsPreferences protectedTermsPreferences)

Method Detail

addFileback to summary
public void addFile()
createNewFileback to summary
public void createNewFile()
displayContentback to summary
public void displayContent(ProtectedTermsListItemModel itemModel)
editback to summary
public void edit(ProtectedTermsListItemModel file)
reloadListback to summary
public void reloadList(ProtectedTermsListItemModel oldItemModel)
removeListback to summary
public void removeList(ProtectedTermsListItemModel itemModel)
setValuesback to summary
public void setValues()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

Doc from org.jabref.gui.preferences.PreferenceTabViewModel.setValues.

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.

Annotations
@Override
storeSettingsback to summary
public void storeSettings()

Implements org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

Doc from org.jabref.gui.preferences.PreferenceTabViewModel.storeSettings.

This method is called when the user presses OK in the Preferences dialog. Implementing classes must make sure all settings presented get stored in PreferencesService.

Annotations
@Override
termsFilesPropertyback to summary
public ListProperty<ProtectedTermsListItemModel> termsFilesProperty()