Top Fields Constructors Methods
org.jabref.gui.preferences.websearch

public Class WebSearchTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.io.IOException, java.net.HttpURLConnection, java.util.Optional, java.util.stream.Collectors, javax.net.ssl.HostnameVerifier, .HttpsURLConnection, .SSLSocketFactory, javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .ReadOnlyBooleanProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, .ObservableList, org.jabref.gui.DialogService, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.slr.StudyCatalogItem, org.jabref.logic.importer.ImportFormatPreferences, .ImporterPreferences, .SearchBasedFetcher, .WebFetchers, org.jabref.logic.importer.fetcher.CompositeSearchBasedFetcher, .CustomizableKeyFetcher, .GrobidPreferences, org.jabref.logic.l10n.Localization, org.jabref.logic.net.URLDownload, org.jabref.logic.preferences.DOIPreferences, .FetcherApiKey, org.jabref.logic.util.OS, org.jabref.preferences.FilePreferences, .PreferencesService, kong.unirest.core.UnirestException

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final BooleanProperty
private final ListProperty<FetcherApiKey>
private final ObservableList<StudyCatalogItem>
private final DialogService
private final DOIPreferences
private final BooleanProperty
private final FilePreferences
private final BooleanProperty
private final BooleanProperty
private final GrobidPreferences
private final StringProperty
private final ImporterPreferences
private final ImportFormatPreferences
private final PreferencesService
private final ObjectProperty<FetcherApiKey>
private final BooleanProperty
private final StringProperty
private final BooleanProperty
private final BooleanProperty

Constructor Summary

AccessConstructor and Description
public
WebSearchTabViewModel(PreferencesService preferencesService, DialogService dialogService)

Method Summary

Modifier and TypeMethod and Description
public ReadOnlyBooleanProperty
public void
public BooleanProperty
public ListProperty<FetcherApiKey>
public BooleanProperty
public BooleanProperty
public ObservableList<StudyCatalogItem>
public BooleanProperty
public StringProperty
public ObjectProperty<FetcherApiKey>
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 BooleanProperty
public void
storeSettings()

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

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

public StringProperty
public BooleanProperty
public boolean
validateSettings()

Overrides default org.jabref.gui.preferences.PreferenceTabViewModel.validateSettings.

This method is called before the storeSettings() method, to check if there are illegal settings in the tab, or if is ready to be closed.

public BooleanProperty
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

apikeyPersistAvailablePropertyback to summary
private final BooleanProperty apikeyPersistAvailableProperty
apikeyPersistPropertyback to summary
private final BooleanProperty apikeyPersistProperty
apiKeysback to summary
private final ListProperty<FetcherApiKey> apiKeys
catalogsback to summary
private final ObservableList<StudyCatalogItem> catalogs
dialogServiceback to summary
private final DialogService dialogService
doiPreferencesback to summary
private final DOIPreferences doiPreferences
enableWebSearchPropertyback to summary
private final BooleanProperty enableWebSearchProperty
filePreferencesback to summary
private final FilePreferences filePreferences
generateKeyOnImportPropertyback to summary
private final BooleanProperty generateKeyOnImportProperty
grobidEnabledPropertyback to summary
private final BooleanProperty grobidEnabledProperty
grobidPreferencesback to summary
private final GrobidPreferences grobidPreferences
grobidURLPropertyback to summary
private final StringProperty grobidURLProperty
importerPreferencesback to summary
private final ImporterPreferences importerPreferences
importFormatPreferencesback to summary
private final ImportFormatPreferences importFormatPreferences
preferencesServiceback to summary
private final PreferencesService preferencesService
selectedApiKeyPropertyback to summary
private final ObjectProperty<FetcherApiKey> selectedApiKeyProperty
shouldDownloadLinkedOnlineFilesback to summary
private final BooleanProperty shouldDownloadLinkedOnlineFiles
useCustomDOINamePropertyback to summary
private final StringProperty useCustomDOINameProperty
useCustomDOIPropertyback to summary
private final BooleanProperty useCustomDOIProperty
warnAboutDuplicatesOnImportPropertyback to summary
private final BooleanProperty warnAboutDuplicatesOnImportProperty

Constructor Detail

WebSearchTabViewModelback to summary
public WebSearchTabViewModel(PreferencesService preferencesService, DialogService dialogService)

Method Detail

apiKeyPersistAvailableback to summary
public ReadOnlyBooleanProperty apiKeyPersistAvailable()
checkCustomApiKeyback to summary
public void checkCustomApiKey()
enableWebSearchPropertyback to summary
public BooleanProperty enableWebSearchProperty()
fetcherApiKeysback to summary
public ListProperty<FetcherApiKey> fetcherApiKeys()
generateKeyOnImportPropertyback to summary
public BooleanProperty generateKeyOnImportProperty()
getApikeyPersistPropertyback to summary
public BooleanProperty getApikeyPersistProperty()
getCatalogsback to summary
public ObservableList<StudyCatalogItem> getCatalogs()
grobidEnabledPropertyback to summary
public BooleanProperty grobidEnabledProperty()
grobidURLPropertyback to summary
public StringProperty grobidURLProperty()
selectedApiKeyPropertyback to summary
public ObjectProperty<FetcherApiKey> selectedApiKeyProperty()
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
shouldDownloadLinkedOnlineFilesback to summary
public BooleanProperty shouldDownloadLinkedOnlineFiles()
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
useCustomDOINamePropertyback to summary
public StringProperty useCustomDOINameProperty()
useCustomDOIPropertyback to summary
public BooleanProperty useCustomDOIProperty()
validateSettingsback to summary
public boolean validateSettings()

Overrides default org.jabref.gui.preferences.PreferenceTabViewModel.validateSettings.

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

This method is called before the storeSettings() method, to check if there are illegal settings in the tab, or if is ready to be closed. If the tab is *not* ready, it should display a message to the user informing about the illegal setting.

Annotations
@Override
warnAboutDuplicatesOnImportPropertyback to summary
public BooleanProperty warnAboutDuplicatesOnImportProperty()