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

public Class XmpPrivacyTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.util.Comparator, javafx.beans.property.BooleanProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, org.jabref.gui.DialogService, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.logic.l10n.Localization, org.jabref.logic.xmp.XmpPreferences, org.jabref.model.entry.field.Field, .FieldFactory, .FieldTextMapper, 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 ObjectProperty<Field>
private final ListProperty<Field>
private final DialogService
private final BooleanProperty
private final ListProperty<Field>
private final de.saxsys.mvvmfx.utils.validation.Validator
private final XmpPreferences

Constructor Summary

AccessConstructor and Description
pack-priv
XmpPrivacyTabViewModel(DialogService dialogService, XmpPreferences xmpPreferences)

Method Summary

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

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
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addFieldPropertyback to summary
private final ObjectProperty<Field> addFieldProperty
availableFieldsPropertyback to summary
private final ListProperty<Field> availableFieldsProperty
dialogServiceback to summary
private final DialogService dialogService
xmpFilterEnabledPropertyback to summary
private final BooleanProperty xmpFilterEnabledProperty
xmpFilterListPropertyback to summary
private final ListProperty<Field> xmpFilterListProperty
xmpFilterListValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator xmpFilterListValidator
xmpPreferencesback to summary
private final XmpPreferences xmpPreferences

Constructor Detail

XmpPrivacyTabViewModelback to summary
pack-priv XmpPrivacyTabViewModel(DialogService dialogService, XmpPreferences xmpPreferences)

Method Detail

addFieldback to summary
public void addField()
addFieldNamePropertyback to summary
public ObjectProperty<Field> addFieldNameProperty()
availableFieldsPropertyback to summary
public ListProperty<Field> availableFieldsProperty()
filterListPropertyback to summary
public ListProperty<Field> filterListProperty()
removeFilterback to summary
public void removeFilter(Field filter)
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
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
xmpFilterEnabledPropertyback to summary
public BooleanProperty xmpFilterEnabledProperty()
xmpFilterListValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus xmpFilterListValidationStatus()