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

public Class RelatedArticlesTab

extends EntryEditorTab
Class Inheritance
Imports
java.io.IOException, java.util.List, javafx.beans.binding.Bindings, .DoubleBinding, javafx.scene.control.Button, .CheckBox, .Hyperlink, .ProgressIndicator, .ScrollPane, .Tooltip, javafx.scene.layout.HBox, .StackPane, .VBox, javafx.scene.text.Font, .FontPosture, .Text, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.desktop.os.NativeDesktop, org.jabref.gui.preferences.GuiPreferences, org.jabref.logic.importer.ImportCleanup, org.jabref.logic.importer.fetcher.MrDLibFetcher, .MrDlibPreferences, org.jabref.logic.l10n.Localization, org.jabref.logic.util.BackgroundTask, .BuildInfo, .TaskExecutor, org.jabref.model.database.BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.slf4j.Logger, .LoggerFactory

Tab displaying article recommendations based on the currently selected BibEntry

Field Summary

Modifier and TypeField and Description
private final BuildInfo
private final DialogService
private static final Logger
private final GuiPreferences
private final StateManager
private final TaskExecutor

Constructor Summary

AccessConstructor and Description
public
RelatedArticlesTab(BuildInfo buildInfo, GuiPreferences preferences, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
protected void
private ScrollPane

Returns:

ScrollPane to display in place of recommendations
getErrorInfo
()

Gets a ScrollPane to display error info when recommendations fail.

private ScrollPane

Returns:

StackPane returned to be placed into Related Articles tab.
getPrivacyDialog
(BibEntry
Currently selected BibEntry. (required to allow reloading of pane if accepted)
entry
)

Returns a consent dialog used to ask permission to send data to Mr. DLib.

private ScrollPane

Returns:

VBox of related article descriptions to be displayed in the Related Articles tab
getRelatedArticleInfo
(List<BibEntry>
List of BibEntries of related articles
list
,
MrDLibFetcher fetcher)

Creates a VBox of the related article information to be used in the StackPane displayed in the Related Articles tab

private StackPane

Returns:

A StackPane with related article information to be displayed in the Related Articles tab.
getRelatedArticlesPane
(BibEntry
The currently selected BibEntry on the JabRef UI.
entry
)

Gets a StackPane of related article information to be displayed in the Related Articles tab

Inherited from org.jabref.gui.entryeditor.EntryEditorTab:
currentEntryPropertydisposegetCurrentEntryhandleFocusnotifyAboutFocussetContentDrivenVisibilitysetPreferenceDrivenVisibilityvisibility

Field Detail

buildInfoback to summary
private final BuildInfo buildInfo
dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.gui.entryeditor.EntryEditorTab.LOGGER.

preferencesback to summary
private final GuiPreferences preferences
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

RelatedArticlesTabback to summary
public RelatedArticlesTab(BuildInfo buildInfo, GuiPreferences preferences, DialogService dialogService, StateManager stateManager, TaskExecutor taskExecutor)

Method Detail

bindToEntryback to summary
protected void bindToEntry(BibEntry entry)

Implements abstract org.jabref.gui.entryeditor.EntryEditorTab.bindToEntry.

Annotations
@Override
getErrorInfoback to summary
private ScrollPane getErrorInfo()

Gets a ScrollPane to display error info when recommendations fail.

Returns:ScrollPane

ScrollPane to display in place of recommendations

getPrivacyDialogback to summary
private ScrollPane getPrivacyDialog(BibEntry entry)

Returns a consent dialog used to ask permission to send data to Mr. DLib.

Parameters
entry:BibEntry

Currently selected BibEntry. (required to allow reloading of pane if accepted)

Returns:ScrollPane

StackPane returned to be placed into Related Articles tab.

getRelatedArticleInfoback to summary
private ScrollPane getRelatedArticleInfo(List<BibEntry> list, MrDLibFetcher fetcher)

Creates a VBox of the related article information to be used in the StackPane displayed in the Related Articles tab

Parameters
list:List<BibEntry>

List of BibEntries of related articles

Returns:ScrollPane

VBox of related article descriptions to be displayed in the Related Articles tab

getRelatedArticlesPaneback to summary
private StackPane getRelatedArticlesPane(BibEntry entry)

Gets a StackPane of related article information to be displayed in the Related Articles tab

Parameters
entry:BibEntry

The currently selected BibEntry on the JabRef UI.

Returns:StackPane

A StackPane with related article information to be displayed in the Related Articles tab.