Verified Owner
Top Fields Constructors Methods
org.jabref.gui.externalfiles

public Class UnlinkedFilesDialogViewModel

extends Object
Class Inheritance
Imports
java.io.BufferedWriter, .IOException, java.nio.charset.StandardCharsets, java.nio.file.DirectoryStream.Filter, .Files, .Path, .StandardOpenOption, java.util.HashMap, .List, .Map, .Optional, java.util.function.Predicate, javafx.beans.property.BooleanProperty, .DoubleProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.ProgressIndicator, .TreeItem, javafx.scene.input.TransferMode, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.DirectoryDialogConfiguration, .FileDialogConfiguration, .FileNodeViewModel, org.jabref.logic.externalfiles.DateRange, .ExternalFileSorter, org.jabref.logic.l10n.Localization, org.jabref.logic.undo.UndoManager, org.jabref.logic.util.BackgroundTask, .StandardFileType, .TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.util.FileUpdateMonitor, de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator, de.saxsys.mvvmfx.utils.validation.ValidationMessage, de.saxsys.mvvmfx.utils.validation.ValidationStatus, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final BibDatabaseContext
private final SimpleListProperty<TreeItem<FileNodeViewModel>>
private final ObservableList<DateRange>
private final DialogService
private final StringProperty
private final ObservableList<FileExtensionViewModel>
private final ObservableList<ExternalFileSorter>
private final Map<Path, BibEntry>
private org.jabref.logic.util.BackgroundTask<UnlinkedFilesSearchResult>
private org.jabref.logic.util.BackgroundTask<List<ImportFilesResultItemViewModel>>
private final ImportHandler
private static final Logger
private final GuiPreferences
private final StringProperty
private final DoubleProperty
private Map<Path, List<BibEntry>>
private final ObservableList<ImportFilesResultItemViewModel>
private final de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator<String>
private final ObjectProperty<DateRange>
private final ObjectProperty<FileExtensionViewModel>
private final ObjectProperty<ExternalFileSorter>
private final BooleanProperty
private final TaskExecutor
private final ObjectProperty<Optional<FileNodeViewModel>>

Constructor Summary

AccessConstructor and Description
public
UnlinkedFilesDialogViewModel(DialogService dialogService, UndoManager undoManager, FileUpdateMonitor fileUpdateMonitor, GuiPreferences preferences, StateManager stateManager, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public SimpleListProperty<TreeItem<FileNodeViewModel>>
public StringProperty
public de.saxsys.mvvmfx.utils.validation.ValidationStatus
public ObservableList<DateRange>
public ObservableList<FileExtensionViewModel>
public ObservableList<BibEntry>
getRelatedEntriesForFiles(Path filePath)

Returns the entries associated with a file in the most recent search.

private Path
public Optional<BibEntry>
public ObservableList<ExternalFileSorter>
public StringProperty
public DoubleProperty
public ObservableList<ImportFilesResultItemViewModel>
public ObjectProperty<DateRange>
public ObjectProperty<FileExtensionViewModel>
public ObjectProperty<ExternalFileSorter>
public void
public void
startExport()

This starts the export of all files of all selected nodes in the file tree view.

public void
public void
public BooleanProperty
public ObjectProperty<Optional<FileNodeViewModel>>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bibDatabaseback to summary
private final BibDatabaseContext bibDatabase
checkedFileListPropertyback to summary
private final SimpleListProperty<TreeItem<FileNodeViewModel>> checkedFileListProperty
dateFilterListback to summary
private final ObservableList<DateRange> dateFilterList
dialogServiceback to summary
private final DialogService dialogService
directoryPathback to summary
private final StringProperty directoryPath
fileFilterListback to summary
private final ObservableList<FileExtensionViewModel> fileFilterList
fileSortListback to summary
private final ObservableList<ExternalFileSorter> fileSortList
fileToSelectedEntryMapback to summary
private final Map<Path, BibEntry> fileToSelectedEntryMap
findUnlinkedFilesTaskback to summary
private org.jabref.logic.util.BackgroundTask<UnlinkedFilesSearchResult> findUnlinkedFilesTask
importFilesBackgroundTaskback to summary
private org.jabref.logic.util.BackgroundTask<List<ImportFilesResultItemViewModel>> importFilesBackgroundTask
importHandlerback to summary
private final ImportHandler importHandler
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final GuiPreferences preferences
progressTextPropertyback to summary
private final StringProperty progressTextProperty
progressValuePropertyback to summary
private final DoubleProperty progressValueProperty
relatedEntriesByFileback to summary
private Map<Path, List<BibEntry>> relatedEntriesByFile
resultListback to summary
private final ObservableList<ImportFilesResultItemViewModel> resultList
scanDirectoryValidatorback to summary
private final de.saxsys.mvvmfx.utils.validation.FunctionBasedValidator<String> scanDirectoryValidator
selectedDateback to summary
private final ObjectProperty<DateRange> selectedDate
selectedExtensionback to summary
private final ObjectProperty<FileExtensionViewModel> selectedExtension
selectedSortback to summary
private final ObjectProperty<ExternalFileSorter> selectedSort
taskActivePropertyback to summary
private final BooleanProperty taskActiveProperty
taskExecutorback to summary
private final TaskExecutor taskExecutor
treeRootPropertyback to summary
private final ObjectProperty<Optional<FileNodeViewModel>> treeRootProperty

Constructor Detail

UnlinkedFilesDialogViewModelback to summary
public UnlinkedFilesDialogViewModel(DialogService dialogService, UndoManager undoManager, FileUpdateMonitor fileUpdateMonitor, GuiPreferences preferences, StateManager stateManager, TaskExecutor taskExecutor)

Method Detail

browseFileDirectoryback to summary
public void browseFileDirectory()
cancelTasksback to summary
public void cancelTasks()
checkedFileListPropertyback to summary
public SimpleListProperty<TreeItem<FileNodeViewModel>> checkedFileListProperty()
directoryPathPropertyback to summary
public StringProperty directoryPathProperty()
directoryPathValidationStatusback to summary
public de.saxsys.mvvmfx.utils.validation.ValidationStatus directoryPathValidationStatus()
getDateFiltersback to summary
public ObservableList<DateRange> getDateFilters()
getFileFiltersback to summary
public ObservableList<FileExtensionViewModel> getFileFilters()
getRelatedEntriesForFilesback to summary
public ObservableList<BibEntry> getRelatedEntriesForFiles(Path filePath)

Returns the entries associated with a file in the most recent search.

getSearchDirectoryback to summary
private Path getSearchDirectory()
getSelectedEntryForFileback to summary
public Optional<BibEntry> getSelectedEntryForFile(Path filePath)
getSortersback to summary
public ObservableList<ExternalFileSorter> getSorters()
progressTextPropertyback to summary
public StringProperty progressTextProperty()
progressValuePropertyback to summary
public DoubleProperty progressValueProperty()
resultTableItemsback to summary
public ObservableList<ImportFilesResultItemViewModel> resultTableItems()
selectedDatePropertyback to summary
public ObjectProperty<DateRange> selectedDateProperty()
selectedExtensionPropertyback to summary
public ObjectProperty<FileExtensionViewModel> selectedExtensionProperty()
selectedSortPropertyback to summary
public ObjectProperty<ExternalFileSorter> selectedSortProperty()
setSelectedEntryForFileback to summary
public void setSelectedEntryForFile(Path filePath, BibEntry entry)
startExportback to summary
public void startExport()

This starts the export of all files of all selected nodes in the file tree view.

startImportback to summary
public void startImport()
startSearchback to summary
public void startSearch()
taskActivePropertyback to summary
public BooleanProperty taskActiveProperty()
treeRootPropertyback to summary
public ObjectProperty<Optional<FileNodeViewModel>> treeRootProperty()