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, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.util.BackgroundTask, .TaskExecutor, org.jabref.logic.importer.ImportCleanup, org.jabref.logic.importer.fetcher.MrDLibFetcher, org.jabref.logic.l10n.Localization, org.jabref.logic.util.BuildInfo, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.preferences.MrDlibPreferences, .PreferencesService, 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 BibDatabaseContext
private final DialogService
private static final Logger
public static final String
private final PreferencesService
private final TaskExecutor
Inherited from org.jabref.gui.entryeditor.EntryEditorTab:
currentEntry

Constructor Summary

AccessConstructor and Description
public
RelatedArticlesTab(BuildInfo buildInfo, BibDatabaseContext databaseContext, PreferencesService preferencesService, DialogService dialogService, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
protected void
bindToEntry(BibEntry entry)

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

Updates the view with the contents of the given entry.

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

public boolean
shouldShow(BibEntry entry)

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

Decide whether to show this tab for the given entry.

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

Field Detail

buildInfoback to summary
private final BuildInfo buildInfo
databaseContextback to summary
private final BibDatabaseContext databaseContext
dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
NAMEback to summary
public static final String NAME
preferencesServiceback to summary
private final PreferencesService preferencesService
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

RelatedArticlesTabback to summary
public RelatedArticlesTab(BuildInfo buildInfo, BibDatabaseContext databaseContext, PreferencesService preferencesService, DialogService dialogService, TaskExecutor taskExecutor)

Method Detail

bindToEntryback to summary
protected void bindToEntry(BibEntry entry)

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

Doc from org.jabref.gui.entryeditor.EntryEditorTab.bindToEntry.

Updates the view with the contents of the given entry.

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.

shouldShowback to summary
public boolean shouldShow(BibEntry entry)

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

Doc from org.jabref.gui.entryeditor.EntryEditorTab.shouldShow.

Decide whether to show this tab for the given entry.

Annotations
@Override