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

public Class NameFormatterTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.util.ArrayList, .List, javafx.beans.property.ListProperty, .SimpleListProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.logic.layout.format.NameFormatterPreferences, org.jabref.logic.util.strings.StringUtil

Field Summary

Modifier and TypeField and Description
private final StringProperty
private final StringProperty
private final ListProperty<NameFormatterItemModel>
private final NameFormatterPreferences

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public StringProperty
public StringProperty
public ListProperty<NameFormatterItemModel>
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addFormatterNamePropertyback to summary
private final StringProperty addFormatterNameProperty
addFormatterStringPropertyback to summary
private final StringProperty addFormatterStringProperty
formatterListPropertyback to summary
private final ListProperty<NameFormatterItemModel> formatterListProperty
nameFormatterPreferencesback to summary
private final NameFormatterPreferences nameFormatterPreferences

Constructor Detail

NameFormatterTabViewModelback to summary
pack-priv NameFormatterTabViewModel(NameFormatterPreferences preferences)

Method Detail

addFormatterback to summary
public void addFormatter()
addFormatterNamePropertyback to summary
public StringProperty addFormatterNameProperty()
addFormatterStringPropertyback to summary
public StringProperty addFormatterStringProperty()
formatterListPropertyback to summary
public ListProperty<NameFormatterItemModel> formatterListProperty()
removeFormatterback to summary
public void removeFormatter(NameFormatterItemModel formatter)
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