Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.preview

public Class PreviewPanel

extends VBox
implements PreviewControls
Class Inheritance
All Implemented Interfaces
org.jabref.gui.preview.PreviewControls
Imports
java.io.File, java.nio.file.Path, java.util.List, .Optional, java.util.stream.Collectors, javafx.geometry.Insets, .Pos, javafx.scene.control.ComboBox, .ContextMenu, .Label, .MenuItem, .SeparatorMenuItem, javafx.scene.input.ClipboardContent, .DataFormat, .DragEvent, .Dragboard, .KeyEvent, .MouseEvent, .TransferMode, javafx.scene.layout.HBox, .Priority, .VBox, javafx.util.Duration, .StringConverter, org.jabref.gui.DialogService, .Notifications, .StateManager, org.jabref.gui.externalfiles.ExternalFilesEntryLinker, org.jabref.gui.icon.IconTheme, org.jabref.gui.keyboard.KeyBinding, .KeyBindingRepository, org.jabref.gui.preferences.GuiPreferences, .PreferencesDialogView, org.jabref.gui.preferences.preview.PreviewTab, org.jabref.gui.search.SearchType, org.jabref.gui.util.BindingsHelper, .DragDrop, .ViewModelListCellFactory, org.jabref.logic.l10n.Localization, org.jabref.logic.preview.PreviewLayout, org.jabref.logic.util.TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jspecify.annotations.Nullable

Displays the entry preview

The instance is re-used at each tab. The code ensures that the panel is moved across tabs when the user switches the tab.

Field Summary

Modifier and TypeField and Description
private final DialogService
private BibEntry
private final ExternalFilesEntryLinker
private final KeyBindingRepository
private final PreviewPreferences
private final PreviewViewer
private final StateManager

Constructor Summary

AccessConstructor and Description
public
PreviewPanel(DialogService dialogService, KeyBindingRepository keyBindingRepository, GuiPreferences preferences, TaskExecutor taskExecutor, StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
private static HBox
private void
private ContextMenu
public void
private void
private void
private static void
public void
public void
public void
private void
Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
entryback to summary
private BibEntry entry
fileLinkerback to summary
private final ExternalFilesEntryLinker fileLinker
keyBindingRepositoryback to summary
private final KeyBindingRepository keyBindingRepository
previewPreferencesback to summary
private final PreviewPreferences previewPreferences
previewViewback to summary
private final PreviewViewer previewView
stateManagerback to summary
private final StateManager stateManager

Constructor Detail

PreviewPanelback to summary
public PreviewPanel(DialogService dialogService, KeyBindingRepository keyBindingRepository, GuiPreferences preferences, TaskExecutor taskExecutor, StateManager stateManager)

Method Detail

constructPreviewSelectionBarback to summary
private static HBox constructPreviewSelectionBar(PreviewPreferences previewPreferences)
createKeyBindingsback to summary
private void createKeyBindings()
createPopupMenuback to summary
private ContextMenu createPopupMenu()
nextPreviewStyleback to summary
public void nextPreviewStyle()

Implements org.jabref.gui.preview.PreviewControls.nextPreviewStyle.

Annotations
@Override
onDragDetectedback to summary
private void onDragDetected(MouseEvent event)
onDragDroppedback to summary
private void onDragDropped(DragEvent event)
onDragOverback to summary
private static void onDragOver(DragEvent event)
previousPreviewStyleback to summary
public void previousPreviewStyle()

Implements org.jabref.gui.preview.PreviewControls.previousPreviewStyle.

Annotations
@Override
setDatabaseback to summary
public void setDatabase(@Nullable BibDatabaseContext databaseContext)
setEntryback to summary
public void setEntry(BibEntry entry)
updatePreviewback to summary
private void updatePreview()