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

public Class GeneralTabViewModel

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.BooleanProperty, .ListProperty, .ObjectProperty, .ReadOnlyListProperty, .ReadOnlyListWrapper, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, javafx.scene.control.SpinnerValueFactory, org.jabref.gui.DialogService, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.frame.UiMessageHandler, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.remote.CLIMessageHandler, org.jabref.gui.theme.Theme, .ThemeTypes, org.jabref.gui.util.DirectoryDialogConfiguration, .FileDialogConfiguration, org.jabref.logic.l10n.Language, .Localization, org.jabref.logic.net.ssl.TrustStoreManager, org.jabref.logic.remote.RemotePreferences, .RemoteUtil, org.jabref.logic.remote.server.RemoteListenerServerManager, org.jabref.logic.util.StandardFileType, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.BibEntryTypesManager, org.jabref.model.strings.StringUtil, org.jabref.model.util.FileUpdateMonitor, org.jabref.preferences.FilePreferences, .InternalPreferences, .LibraryPreferences, .MergeDialogPreferences, .PreferencesService, .WorkspacePreferences, com.airhacks.afterburner.injection.Injector, de.saxsys.mvvmfx.utils.validation.CompositeValidator, de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator, de.saxsys.mvvmfx.utils.validation.ValidationMessage, de.saxsys.mvvmfx.utils.validation.ValidationStatus, de.saxsys.mvvmfx.utils.validation.Validator

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final BooleanProperty
private final StringProperty
private final ListProperty<BibDatabaseMode>
private final BooleanProperty
private final BooleanProperty
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final DialogService
private final BibEntryTypesManager
private final FilePreferences
private final FileUpdateMonitor
private final BooleanProperty
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
protected static SpinnerValueFactory<Integer>
private final BooleanProperty
private final InternalPreferences
private final ReadOnlyListProperty<Language>
private final LibraryPreferences
private final MergeDialogPreferences
private final BooleanProperty
private final PreferencesService
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final RemotePreferences
private final BooleanProperty
private final List<String>
private final ObjectProperty<BibDatabaseMode>
private final ObjectProperty<Language>
private final ObjectProperty<ThemeTypes>
private final BooleanProperty
private final ReadOnlyListProperty<ThemeTypes>
private final BooleanProperty
private final TrustStoreManager
private final BooleanProperty
private final WorkspacePreferences

Constructor Summary

AccessConstructor and Description
public
GeneralTabViewModel(DialogService dialogService, PreferencesService preferences, FileUpdateMonitor fileUpdateMonitor, BibEntryTypesManager entryTypesManager)

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
public BooleanProperty
public StringProperty
public void
public ListProperty<BibDatabaseMode>
public BooleanProperty
public BooleanProperty
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public BooleanProperty
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
private Optional<Integer>
public List<String>
getRestartWarnings()

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

This method should be called after storing the preferences, to collect the properties, which require a restart of JabRef to load

public void
public BooleanProperty
public ReadOnlyListProperty<Language>
public void
public BooleanProperty
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public BooleanProperty
public ObjectProperty<BibDatabaseMode>
public ObjectProperty<Language>
public ObjectProperty<ThemeTypes>
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 ReadOnlyListProperty<ThemeTypes>
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alwaysReformatBibPropertyback to summary
private final BooleanProperty alwaysReformatBibProperty
autosaveLocalLibrariesback to summary
private final BooleanProperty autosaveLocalLibraries
backupDirectoryPropertyback to summary
private final StringProperty backupDirectoryProperty
bibliographyModeListPropertyback to summary
private final ListProperty<BibDatabaseMode> bibliographyModeListProperty
confirmDeletePropertyback to summary
private final BooleanProperty confirmDeleteProperty
createBackupPropertyback to summary
private final BooleanProperty createBackupProperty
customPathToThemePropertyback to summary
private final StringProperty customPathToThemeProperty
customPathToThemeValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator customPathToThemeValidator
dialogServiceback to summary
private final DialogService dialogService
entryTypesManagerback to summary
private final BibEntryTypesManager entryTypesManager
filePreferencesback to summary
private final FilePreferences filePreferences
fileUpdateMonitorback to summary
private final FileUpdateMonitor fileUpdateMonitor
fontOverridePropertyback to summary
private final BooleanProperty fontOverrideProperty
fontSizePropertyback to summary
private final StringProperty fontSizeProperty
fontSizeValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator fontSizeValidator
fontSizeValueFactoryback to summary
protected static SpinnerValueFactory<Integer> fontSizeValueFactory
inspectionWarningDuplicatePropertyback to summary
private final BooleanProperty inspectionWarningDuplicateProperty
internalPreferencesback to summary
private final InternalPreferences internalPreferences
languagesListPropertyback to summary
private final ReadOnlyListProperty<Language> languagesListProperty
libraryPreferencesback to summary
private final LibraryPreferences libraryPreferences
mergeDialogPreferencesback to summary
private final MergeDialogPreferences mergeDialogPreferences
openLastStartupPropertyback to summary
private final BooleanProperty openLastStartupProperty
preferencesback to summary
private final PreferencesService preferences
remotePortPropertyback to summary
private final StringProperty remotePortProperty
remotePortValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator remotePortValidator
remotePreferencesback to summary
private final RemotePreferences remotePreferences
remoteServerPropertyback to summary
private final BooleanProperty remoteServerProperty
restartWarningback to summary
private final List<String> restartWarning
selectedBiblatexModePropertyback to summary
private final ObjectProperty<BibDatabaseMode> selectedBiblatexModeProperty
selectedLanguagePropertyback to summary
private final ObjectProperty<Language> selectedLanguageProperty
selectedThemePropertyback to summary
private final ObjectProperty<ThemeTypes> selectedThemeProperty
showAdvancedHintsPropertyback to summary
private final BooleanProperty showAdvancedHintsProperty
themesListPropertyback to summary
private final ReadOnlyListProperty<ThemeTypes> themesListProperty
themeSyncOsPropertyback to summary
private final BooleanProperty themeSyncOsProperty
trustStoreManagerback to summary
private final TrustStoreManager trustStoreManager
versionCheckPropertyback to summary
private final BooleanProperty versionCheckProperty
workspacePreferencesback to summary
private final WorkspacePreferences workspacePreferences

Constructor Detail

GeneralTabViewModelback to summary
public GeneralTabViewModel(DialogService dialogService, PreferencesService preferences, FileUpdateMonitor fileUpdateMonitor, BibEntryTypesManager entryTypesManager)

Method Detail

alwaysReformatBibPropertyback to summary
public BooleanProperty alwaysReformatBibProperty()
autosaveLocalLibrariesPropertyback to summary
public BooleanProperty autosaveLocalLibrariesProperty()
backupDirectoryPropertyback to summary
public StringProperty backupDirectoryProperty()
backupFileDirBrowseback to summary
public void backupFileDirBrowse()
biblatexModeListPropertyback to summary
public ListProperty<BibDatabaseMode> biblatexModeListProperty()
confirmDeletePropertyback to summary
public BooleanProperty confirmDeleteProperty()
createBackupPropertyback to summary
public BooleanProperty createBackupProperty()
customPathToThemePropertyback to summary
public StringProperty customPathToThemeProperty()
customPathToThemeValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus customPathToThemeValidationStatus()
fontOverridePropertyback to summary
public BooleanProperty fontOverrideProperty()
fontSizePropertyback to summary
public StringProperty fontSizeProperty()
fontSizeValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus fontSizeValidationStatus()
getPortAsIntback to summary
private Optional<Integer> getPortAsInt(String value)
getRestartWarningsback to summary
public List<String> getRestartWarnings()

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

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

This method should be called after storing the preferences, to collect the properties, which require a restart of JabRef to load

Returns:List<String>

The messages for the changed properties (e. g. "Changed language: English")

Annotations
@Override
importCSSFileback to summary
public void importCSSFile()
inspectionWarningDuplicatePropertyback to summary
public BooleanProperty inspectionWarningDuplicateProperty()
languagesListPropertyback to summary
public ReadOnlyListProperty<Language> languagesListProperty()
openBrowserback to summary
public void openBrowser()
openLastStartupPropertyback to summary
public BooleanProperty openLastStartupProperty()
remotePortPropertyback to summary
public StringProperty remotePortProperty()
remotePortValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus remotePortValidationStatus()
remoteServerPropertyback to summary
public BooleanProperty remoteServerProperty()
selectedBiblatexModePropertyback to summary
public ObjectProperty<BibDatabaseMode> selectedBiblatexModeProperty()
selectedLanguagePropertyback to summary
public ObjectProperty<Language> selectedLanguageProperty()
selectedThemePropertyback to summary
public ObjectProperty<ThemeTypes> selectedThemeProperty()
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
showAdvancedHintsPropertyback to summary
public BooleanProperty showAdvancedHintsProperty()
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
themesListPropertyback to summary
public ReadOnlyListProperty<ThemeTypes> themesListProperty()
themeSyncOsPropertyback to summary
public BooleanProperty themeSyncOsProperty()
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