Verified Owner
Top Methods
org.jabref.gui.preferences

public Interface PreferenceTabViewModel

Known Direct Implementers
org.jabref.gui.preferences.ai.AiTabViewModel, org.jabref.gui.preferences.autocompletion.AutoCompletionTabViewModel, org.jabref.gui.preferences.citationkeypattern.CitationKeyPatternTabViewModel, org.jabref.gui.preferences.customentrytypes.CustomEntryTypesTabViewModel, org.jabref.gui.preferences.customexporter.CustomExporterTabViewModel, org.jabref.gui.preferences.customimporter.CustomImporterTabViewModel, org.jabref.gui.preferences.entry.EntryTabViewModel, org.jabref.gui.preferences.entryeditor.EntryEditorTabViewModel, org.jabref.gui.preferences.export.ExportTabViewModel, org.jabref.gui.preferences.external.ExternalTabViewModel, org.jabref.gui.preferences.externalfiletypes.ExternalFileTypesTabViewModel, org.jabref.gui.preferences.general.GeneralTabViewModel, org.jabref.gui.preferences.git.GitTabViewModel, org.jabref.gui.preferences.groups.GroupsTabViewModel, org.jabref.gui.preferences.journals.JournalAbbreviationsTabViewModel, org.jabref.gui.preferences.keybindings.KeyBindingsTabViewModel, org.jabref.gui.preferences.linkedfiles.LinkedFilesTabViewModel, org.jabref.gui.preferences.nameformatter.NameFormatterTabViewModel, org.jabref.gui.preferences.network.NetworkTabViewModel, org.jabref.gui.preferences.ocr.OcrTabViewModel, org.jabref.gui.preferences.openoffice.OpenOfficeTabViewModel, org.jabref.gui.preferences.preview.PreviewTabViewModel, org.jabref.gui.preferences.protectedterms.ProtectedTermsTabViewModel, org.jabref.gui.preferences.table.TableTabViewModel, org.jabref.gui.preferences.websearch.WebSearchTabViewModel, org.jabref.gui.preferences.xmp.XmpPrivacyTabViewModel
Imports
java.util.List

Method Summary

Modifier and TypeMethod and Description
public default List<String>

Returns:

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

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

public void
setValues()

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

public void
storeSettings()

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

public default boolean
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.

Method Detail

getRestartWarningsback to summary
public default List<String> 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")

setValuesback to summary
public void 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.

storeSettingsback to summary
public void 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.

validateSettingsback to summary
public default boolean 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.