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

public Class LinkedFilesTabViewModel

extends Object
implements PreferenceTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preferences.PreferenceTabViewModel
Imports
java.nio.file.Files, .InvalidPathException, .Path, javafx.beans.property.BooleanProperty, .ListProperty, .SimpleBooleanProperty, .SimpleListProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, org.jabref.gui.DialogService, org.jabref.gui.preferences.PreferenceTabViewModel, org.jabref.gui.util.DirectoryDialogConfiguration, org.jabref.logic.FilePreferences, org.jabref.logic.l10n.Localization, org.jabref.logic.util.io.AutoLinkPreferences, 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 BooleanProperty
private final AutoLinkPreferences
private final StringProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final ListProperty<String>
private final DialogService
private final StringProperty
private final StringProperty
private final FilePreferences
private final BooleanProperty
private final StringProperty
private final de.saxsys.mvvmfx.utils.validation.Validator
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty

Constructor Summary

AccessConstructor and Description
public
LinkedFilesTabViewModel(DialogService dialogService, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
public BooleanProperty
public BooleanProperty
public StringProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
public ListProperty<String>
public StringProperty
public StringProperty
public BooleanProperty
public void
public StringProperty
pack-priv de.saxsys.mvvmfx.utils.validation.ValidationStatus
public BooleanProperty
public BooleanProperty
public BooleanProperty
public BooleanProperty
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 BooleanProperty
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

adjustLinkedFilesOnTransferPropertyback to summary
private final BooleanProperty adjustLinkedFilesOnTransferProperty
autolinkFileExactBibtexPropertyback to summary
private final BooleanProperty autolinkFileExactBibtexProperty
autolinkFileStartsBibtexPropertyback to summary
private final BooleanProperty autolinkFileStartsBibtexProperty
autoLinkPreferencesback to summary
private final AutoLinkPreferences autoLinkPreferences
autolinkRegexKeyPropertyback to summary
private final StringProperty autolinkRegexKeyProperty
autolinkUseRegexPropertyback to summary
private final BooleanProperty autolinkUseRegexProperty
autoRenameFilesOnChangePropertyback to summary
private final BooleanProperty autoRenameFilesOnChangeProperty
confirmLinkedFileDeletePropertyback to summary
private final BooleanProperty confirmLinkedFileDeleteProperty
copyLinkedFilesOnTransferPropertyback to summary
private final BooleanProperty copyLinkedFilesOnTransferProperty
defaultFileNamePatternsPropertyback to summary
private final ListProperty<String> defaultFileNamePatternsProperty
dialogServiceback to summary
private final DialogService dialogService
fileDirectoryPatternPropertyback to summary
private final StringProperty fileDirectoryPatternProperty
fileNamePatternPropertyback to summary
private final StringProperty fileNamePatternProperty
filePreferencesback to summary
private final FilePreferences filePreferences
fulltextIndexback to summary
private final BooleanProperty fulltextIndex
mainFileDirectoryPropertyback to summary
private final StringProperty mainFileDirectoryProperty
mainFileDirValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.Validator mainFileDirValidator
moveFilesOnTransferPropertyback to summary
private final BooleanProperty moveFilesOnTransferProperty
moveToTrashPropertyback to summary
private final BooleanProperty moveToTrashProperty
openFileExplorerInFilesDirectoryback to summary
private final BooleanProperty openFileExplorerInFilesDirectory
openFileExplorerInLastDirectoryback to summary
private final BooleanProperty openFileExplorerInLastDirectory
useBibLocationAsPrimaryPropertyback to summary
private final BooleanProperty useBibLocationAsPrimaryProperty
useMainFileDirectoryPropertyback to summary
private final BooleanProperty useMainFileDirectoryProperty

Constructor Detail

LinkedFilesTabViewModelback to summary
public LinkedFilesTabViewModel(DialogService dialogService, FilePreferences filePreferences, AutoLinkPreferences autoLinkPreferences)

Method Detail

adjustLinkedFilesOnTransferPropertyback to summary
public BooleanProperty adjustLinkedFilesOnTransferProperty()
autolinkFileExactBibtexPropertyback to summary
public BooleanProperty autolinkFileExactBibtexProperty()
autolinkFileStartsBibtexPropertyback to summary
public BooleanProperty autolinkFileStartsBibtexProperty()
autolinkRegexKeyPropertyback to summary
public StringProperty autolinkRegexKeyProperty()
autolinkUseRegexPropertyback to summary
public BooleanProperty autolinkUseRegexProperty()
autoRenameFilesOnChangePropertyback to summary
public BooleanProperty autoRenameFilesOnChangeProperty()
confirmLinkedFileDeletePropertyback to summary
public BooleanProperty confirmLinkedFileDeleteProperty()
copyLinkedFilesOnTransferPropertyback to summary
public BooleanProperty copyLinkedFilesOnTransferProperty()
defaultFileNamePatternsPropertyback to summary
public ListProperty<String> defaultFileNamePatternsProperty()
fileDirectoryPatternPropertyback to summary
public StringProperty fileDirectoryPatternProperty()
fileNamePatternPropertyback to summary
public StringProperty fileNamePatternProperty()
fulltextIndexPropertyback to summary
public BooleanProperty fulltextIndexProperty()
mainFileDirBrowseback to summary
public void mainFileDirBrowse()
mainFileDirectoryPropertyback to summary
public StringProperty mainFileDirectoryProperty()
mainFileDirValidationStatusback to summary
pack-priv de.saxsys.mvvmfx.utils.validation.ValidationStatus mainFileDirValidationStatus()
moveFilesOnTransferPropertyback to summary
public BooleanProperty moveFilesOnTransferProperty()
moveToTrashPropertyback to summary
public BooleanProperty moveToTrashProperty()
openFileExplorerInFilesDirectoryPropertyback to summary
public BooleanProperty openFileExplorerInFilesDirectoryProperty()
openFileExplorerInLastDirectoryPropertyback to summary
public BooleanProperty openFileExplorerInLastDirectoryProperty()
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
useBibLocationAsPrimaryPropertyback to summary
public BooleanProperty useBibLocationAsPrimaryProperty()
useMainFileDirectoryPropertyback to summary
public BooleanProperty useMainFileDirectoryProperty()
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