Verified Owner
Top Fields Constructors Methods
org.jabref.gui.entryeditor.fileannotationtab

public Class FileAnnotationTabViewModel

extends AbstractViewModel
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.ArrayList, .Comparator, .List, .Map, .StringJoiner, java.util.stream.Collectors, javafx.beans.property.ListProperty, .ObjectProperty, .ReadOnlyBooleanProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, org.jabref.gui.AbstractViewModel, org.jabref.gui.clipboard.ClipBoardManager, org.jabref.gui.util.UiTaskExecutor, org.jabref.logic.l10n.Localization, org.jabref.logic.os.OS, org.jabref.logic.pdf.FileAnnotationCache, org.jabref.model.entry.BibEntry, org.jabref.model.pdf.FileAnnotation, org.jabref.model.util.FileUpdateListener, .FileUpdateMonitor, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final ReadOnlyBooleanProperty
private final ListProperty<FileAnnotationViewModel>
private final FileAnnotationCache
private final ClipBoardManager
private final ObjectProperty<FileAnnotationViewModel>
private Path
private final BibEntry
private Map<Path, List<FileAnnotation>>
private final FileUpdateListener
private final FileUpdateMonitor
private final ListProperty<Path>
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ListProperty<FileAnnotationViewModel>
public void
copyCurrentAnnotation()

Copies the meta and content information of the pdf annotation to the clipboard

public ObjectProperty<FileAnnotationViewModel>
public ListProperty<Path>
private FileAnnotationViewModel
public ReadOnlyBooleanProperty
public void
public void
private void

Field Detail

annotationEmptyback to summary
private final ReadOnlyBooleanProperty annotationEmpty
annotationsback to summary
private final ListProperty<FileAnnotationViewModel> annotations
cacheback to summary
private final FileAnnotationCache cache
clipBoardManagerback to summary
private final ClipBoardManager clipBoardManager
currentAnnotationback to summary
private final ObjectProperty<FileAnnotationViewModel> currentAnnotation
currentFileback to summary
private Path currentFile
entryback to summary
private final BibEntry entry
fileAnnotationsback to summary
private Map<Path, List<FileAnnotation>> fileAnnotations
fileListenerback to summary
private final FileUpdateListener fileListener
fileMonitorback to summary
private final FileUpdateMonitor fileMonitor
filesback to summary
private final ListProperty<Path> files
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

FileAnnotationTabViewModelback to summary
public FileAnnotationTabViewModel(FileAnnotationCache cache, BibEntry entry, FileUpdateMonitor fileMonitor, ClipBoardManager clipBoardManager)

Method Detail

annotationsPropertyback to summary
public ListProperty<FileAnnotationViewModel> annotationsProperty()
copyCurrentAnnotationback to summary
public void copyCurrentAnnotation()

Copies the meta and content information of the pdf annotation to the clipboard

currentAnnotationPropertyback to summary
public ObjectProperty<FileAnnotationViewModel> currentAnnotationProperty()
filesPropertyback to summary
public ListProperty<Path> filesProperty()
getCurrentAnnotationback to summary
private FileAnnotationViewModel getCurrentAnnotation()
isAnnotationsEmptyback to summary
public ReadOnlyBooleanProperty isAnnotationsEmpty()
notifyNewSelectedAnnotationback to summary
public void notifyNewSelectedAnnotation(FileAnnotationViewModel newAnnotation)
notifyNewSelectedFileback to summary
public void notifyNewSelectedFile(Path newFile)
reloadAnnotationsback to summary
private void reloadAnnotations()