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.List, .Optional, java.util.function.Predicate, java.util.stream.Collectors, javax.swing.undo.UndoManager, javafx.beans.property.BooleanProperty, .DoubleProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.ProgressIndicator, .TreeItem, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.util.BackgroundTask, .DirectoryDialogConfiguration, .FileDialogConfiguration, .FileNodeViewModel, .TaskExecutor, org.jabref.logic.l10n.Localization, org.jabref.logic.util.StandardFileType, org.jabref.model.database.BibDatabaseContext, org.jabref.model.util.FileUpdateMonitor, org.jabref.preferences.PreferencesService, 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 BackgroundTask<FileNodeViewModel>
private BackgroundTask<List<ImportFilesResultItemViewModel>>
private final ImportHandler
private static final Logger
private final PreferencesService
private final StringProperty
private final DoubleProperty
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, PreferencesService 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>
private Path
public ObservableList<ExternalFileSorter>
public StringProperty
public DoubleProperty
public ObservableList<ImportFilesResultItemViewModel>
public ObjectProperty<DateRange>
public ObjectProperty<FileExtensionViewModel>
public ObjectProperty<ExternalFileSorter>
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
findUnlinkedFilesTaskback to summary
private BackgroundTask<FileNodeViewModel> findUnlinkedFilesTask
importFilesBackgroundTaskback to summary
private BackgroundTask<List<ImportFilesResultItemViewModel>> importFilesBackgroundTask
importHandlerback to summary
private final ImportHandler importHandler
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final PreferencesService preferences
progressTextPropertyback to summary
private final StringProperty progressTextProperty
progressValuePropertyback to summary
private final DoubleProperty progressValueProperty
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, PreferencesService 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()
getSearchDirectoryback to summary
private Path getSearchDirectory()
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()
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()