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

public Class DocumentViewerViewModel

extends AbstractViewModel
Class Inheritance
Imports
java.nio.file.InvalidPathException, .Path, java.util.List, .Set, java.util.stream.Collectors, javafx.beans.property.BooleanProperty, .IntegerProperty, .ListProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleIntegerProperty, .SimpleListProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.collections.FXCollections, .ListChangeListener, org.jabref.gui.AbstractViewModel, .DialogService, .StateManager, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.util.io.FileUtil, org.jabref.model.entry.BibEntry, .LinkedFile, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<Path>
private final IntegerProperty
private final DialogService
private final ListProperty<LinkedFile>
private final StringProperty
private final BooleanProperty
private static final Logger
private final CliPreferences
private final ListChangeListener<BibEntry>
private final StateManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectProperty<Path>
public IntegerProperty
public void
public ListProperty<LinkedFile>
public void
public StringProperty
private boolean
private void
private void
public void
setLiveMode(boolean value)

public void
showPage(int pageNumber)

public void

Field Detail

currentDocumentback to summary
private final ObjectProperty<Path> currentDocument
currentPageback to summary
private final IntegerProperty currentPage
dialogServiceback to summary
private final DialogService dialogService
filesback to summary
private final ListProperty<LinkedFile> files
highlightTextback to summary
private final StringProperty highlightText
liveModeback to summary
private final BooleanProperty liveMode
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final CliPreferences preferences
selectedEntriesListenerback to summary
private final ListChangeListener<BibEntry> selectedEntriesListener
stateManagerback to summary
private final StateManager stateManager

Constructor Detail

DocumentViewerViewModelback to summary
public DocumentViewerViewModel(@NonNull StateManager stateManager, @NonNull CliPreferences preferences, @NonNull DialogService dialogService)

Method Detail

currentDocumentPropertyback to summary
public ObjectProperty<Path> currentDocumentProperty()
currentPagePropertyback to summary
public IntegerProperty currentPageProperty()
disposeback to summary
public void dispose()
filesPropertyback to summary
public ListProperty<LinkedFile> filesProperty()
highlightTextback to summary
public void highlightText(String text)
highlightTextPropertyback to summary
public StringProperty highlightTextProperty()
isPdfFileback to summary
private boolean isPdfFile(LinkedFile file)
setCurrentDocumentback to summary
private void setCurrentDocument(Path path)
setCurrentEntriesback to summary
private void setCurrentEntries(List<BibEntry> entries)
setLiveModeback to summary
public void setLiveMode(boolean value)
showPageback to summary
public void showPage(int pageNumber)
switchToFileback to summary
public void switchToFile(LinkedFile file)