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

public Class AutoCompletionTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.util.ArrayList, .List, java.util.stream.Collectors, javafx.beans.property.BooleanProperty, .ListProperty, .SimpleBooleanProperty, .SimpleListProperty, javafx.collections.FXCollections, javafx.util.StringConverter, org.jabref.gui.autocompleter.AutoCompletePreferences, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.AutoCompleteFirstNameMode, org.jabref.model.entry.field.Field, .FieldFactory, .FieldTextMapper

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private final ListProperty<Field>
private final BooleanProperty
private final BooleanProperty
private final AutoCompletePreferences
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
public ListProperty<Field>
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public StringConverter<Field>
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 List<Field>
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

autoCompleteBothPropertyback to summary
private final BooleanProperty autoCompleteBothProperty
autoCompleteFieldsPropertyback to summary
private final ListProperty<Field> autoCompleteFieldsProperty
autoCompleteFirstLastPropertyback to summary
private final BooleanProperty autoCompleteFirstLastProperty
autoCompleteLastFirstPropertyback to summary
private final BooleanProperty autoCompleteLastFirstProperty
autoCompletePreferencesback to summary
private final AutoCompletePreferences autoCompletePreferences
enableAutoCompletePropertyback to summary
private final BooleanProperty enableAutoCompleteProperty
firstNameModeAbbreviatedPropertyback to summary
private final BooleanProperty firstNameModeAbbreviatedProperty
firstNameModeBothPropertyback to summary
private final BooleanProperty firstNameModeBothProperty
firstNameModeFullPropertyback to summary
private final BooleanProperty firstNameModeFullProperty
restartWarningsback to summary
private final List<String> restartWarnings

Constructor Detail

AutoCompletionTabViewModelback to summary
public AutoCompletionTabViewModel(AutoCompletePreferences autoCompletePreferences)

Method Detail

autoCompleteBothPropertyback to summary
public BooleanProperty autoCompleteBothProperty()
autoCompleteFieldsPropertyback to summary
public ListProperty<Field> autoCompleteFieldsProperty()
autoCompleteFirstLastPropertyback to summary
public BooleanProperty autoCompleteFirstLastProperty()
autoCompleteLastFirstPropertyback to summary
public BooleanProperty autoCompleteLastFirstProperty()
enableAutoCompletePropertyback to summary
public BooleanProperty enableAutoCompleteProperty()
firstNameModeAbbreviatedPropertyback to summary
public BooleanProperty firstNameModeAbbreviatedProperty()
firstNameModeBothPropertyback to summary
public BooleanProperty firstNameModeBothProperty()
firstNameModeFullPropertyback to summary
public BooleanProperty firstNameModeFullProperty()
getFieldStringConverterback to summary
public StringConverter<Field> getFieldStringConverter()
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

Annotations
@Override
getSuggestionsback to summary
public List<Field> getSuggestions(String request)
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