| Modifier and Type | Class and Description |
|---|---|
| private static interface | CitationRelationsTab.
One of the two citation searches of |
| private static record | CitationRelationsTab.
Immutable snapshot of the active library, taken on the JavaFX Application Thread and consumed by the
background duplicate matching in |
| Modifier and Type | Field and Description |
|---|---|
| private final CitationsRelationsTabViewModel | |
| private @Nullable CitationComponents | |
| private @Nullable CitationComponents | |
| private final DialogService | |
| private final DuplicateCheck | |
| private final EntryEditorPreferences | |
| private final BibEntryTypesManager | |
| private ComboBox | |
| private static final Logger | |
| private final GuiPreferences | |
| private final MainTableTooltip | |
| private final ProgressIndicator | |
| private final GridPane | |
| private final SearchCitationsRelationsService | |
| private boolean | |
| private final StateManager | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | CitationRelationsTab(DialogService dialogService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, GuiPreferences preferences, TaskExecutor taskExecutor, BibEntryTypesManager bibEntryTypesManager, SearchCitationsRelationsService searchCitationsRelationsService)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | bindToEntry(BibEntry entry)
Implements abstract org.
|
| private ContextMenu | Returns: a ContextMenu with the "Open API URL in browser" optionthe BibEntry to get the API URL for entry, SearchType the type of search (CITES for references, CITED_BY for citations) searchType)Creates a context menu for citation relation labels with an option to open the API URL in browser |
| private org.jabref.logic.util.BackgroundTask | createCitationSearchTask(BibEntry entry, SearchType searchType, boolean bypassCache, List<BibEntry> libraryEntries, BibDatabaseMode databaseMode)
|
| private org.jabref.logic.util.BackgroundTask | createSearchTask(CitationRelationsTab.
Wraps fetching and duplicate matching into a task whose cancellation checks are bound to that very task. |
| private void | |
| private VBox | |
| private SplitPane | Returns: SplitPane to displayBibEntry which is currently selected in JabRef Database entry)Method to create main SplitPane holding all lists, buttons and labels for tab and starts search |
| private String | getSourceString(BibEntry entry, BibDatabaseMode type, FieldPreferences fieldPreferences, BibEntryTypesManager entryTypesManager)
|
| private BorderPane | |
| private HBox | |
| private void | handleDragDetected(CheckListView<CitationRelationItem> listView, CitationRelationItem item, MouseEvent event)
|
| private void | |
| private void | handleItemClick(CitationRelationItem item, MouseEvent event, CheckListView<CitationRelationItem> listView, CitationComponents citationComponents)
|
| private void | |
| private void | |
| private void | importEntries(List<CitationRelationItem>
entries to import entriesToImport, SearchType searchType, BibEntry existingEntry)Function to import selected entries to the database. |
| private void | |
| private void | |
| private List | matchAgainstLibrary(List<BibEntry> fetchedList, List<BibEntry> libraryEntries, BibDatabaseMode databaseMode, BooleanSupplier isCancelled)
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | onSearchForRelationsSucceed(CitationComponents citationComponents, List<CitationRelationItem> citationRelationItems, ObservableList<CitationRelationItem> observableList)
|
| private void | openPossibleDuplicateEntriesWindow(CitationRelationItem
duplicate in the citation relations tab citationRelationItem, CheckListView<CitationRelationItem> CheckListView to display citations listView)Function to open possible duplicate entries window to compare duplicate entries |
| private void | |
| private void | |
| private void | searchForRelations(CitationComponents citationComponents, CitationComponents otherCitationComponents, boolean bypassCache)
|
| private static void | |
| private static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private CitationRelationsTab. | snapshotActiveLibrary()
Snapshots the active library on the JavaFX Application Thread, so the background matching task never iterates the live entry list, which the user can modify while the search runs. |
| private void | styleFetchedListView(CheckListView<CitationRelationItem>
CheckListView to style listView, CitationComponents citationComponents)Styles a given CheckListView to display BibEntries either with a hyperlink or an add button. |
| private void | |
| private void |
| citationsRelationsTabViewModel | back to summary |
|---|---|
| private final CitationsRelationsTabViewModel citationsRelationsTabViewModel | |
| currentCitedByComponents | back to summary |
|---|---|
| private @Nullable CitationComponents currentCitedByComponents | |
| currentCitingComponents | back to summary |
|---|---|
| private @Nullable CitationComponents currentCitingComponents | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| duplicateCheck | back to summary |
|---|---|
| private final DuplicateCheck duplicateCheck | |
| entryEditorPreferences | back to summary |
|---|---|
| private final EntryEditorPreferences entryEditorPreferences | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| fetcherCombo | back to summary |
|---|---|
| private ComboBox<CitationFetcherType> fetcherCombo | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| previewTooltip | back to summary |
|---|---|
| private final MainTableTooltip previewTooltip | |
| progressIndicator | back to summary |
|---|---|
| private final ProgressIndicator progressIndicator | |
| sciteResultsPane | back to summary |
|---|---|
| private final GridPane sciteResultsPane | |
| searchCitationsRelationsService | back to summary |
|---|---|
| private final SearchCitationsRelationsService searchCitationsRelationsService | |
| shouldClearSelectionOnDrop | back to summary |
|---|---|
| private boolean shouldClearSelectionOnDrop | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| CitationRelationsTab | back to summary |
|---|---|
| public CitationRelationsTab(DialogService dialogService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, GuiPreferences preferences, TaskExecutor taskExecutor, BibEntryTypesManager bibEntryTypesManager, SearchCitationsRelationsService searchCitationsRelationsService) | |
| bindToEntry | back to summary |
|---|---|
| protected void bindToEntry(BibEntry entry) Implements abstract org.
| |
| createCitationContextMenu | back to summary |
|---|---|
| private ContextMenu createCitationContextMenu(BibEntry entry, SearchType searchType) Creates a context menu for citation relation labels with an option to open the API URL in browser
| |
| createCitationSearchTask | back to summary |
|---|---|
| private org.jabref.logic.util.BackgroundTask | |
| createSearchTask | back to summary |
|---|---|
| private org.jabref.logic.util.BackgroundTask Wraps fetching and duplicate matching into a task whose cancellation checks are bound to that very task.
They must not read the mutable per-direction task references instead: those references are reassigned - or
set to | |
| executeSearch | back to summary |
|---|---|
| private void executeSearch(CitationComponents citationComponents, boolean bypassCache) | |
| getErrorPane | back to summary |
|---|---|
| private VBox getErrorPane() | |
| getPaneAndStartSearch | back to summary |
|---|---|
| private SplitPane getPaneAndStartSearch(BibEntry entry) Method to create main SplitPane holding all lists, buttons and labels for tab and starts search | |
| getSourceString | back to summary |
|---|---|
| private String getSourceString(BibEntry entry, BibDatabaseMode type, FieldPreferences fieldPreferences, BibEntryTypesManager entryTypesManager) throws IOException
Implementation Note This code is similar to | |
| getTalliesPane | back to summary |
|---|---|
| private BorderPane getTalliesPane(TalliesResponse tallModel) | |
| getTopBar | back to summary |
|---|---|
| private HBox getTopBar() | |
| handleDragDetected | back to summary |
|---|---|
| private void handleDragDetected(CheckListView<CitationRelationItem> listView, CitationRelationItem item, MouseEvent event) | |
| handleDragDone | back to summary |
|---|---|
| private void handleDragDone(CheckListView<CitationRelationItem> listView, DragEvent event) | |
| handleItemClick | back to summary |
|---|---|
| private void handleItemClick(CitationRelationItem item, MouseEvent event, CheckListView<CitationRelationItem> listView, CitationComponents citationComponents) | |
| handleRefresh | back to summary |
|---|---|
| private void handleRefresh(CitationComponents citationComponents, CitationComponents otherCitationComponents) | |
| hideNodes | back to summary |
|---|---|
| private void hideNodes(Node... nodes) | |
| importEntries | back to summary |
|---|---|
| private void importEntries(List<CitationRelationItem> entriesToImport, SearchType searchType, BibEntry existingEntry) Function to import selected entries to the database. Also writes the entries to import to the CITING/CITED field
| |
| initFetcherCombo | back to summary |
|---|---|
| private void initFetcherCombo() | |
| jumpToEntry | back to summary |
|---|---|
| private void jumpToEntry(CitationRelationItem entry) | |
| matchAgainstLibrary | back to summary |
|---|---|
| private List | |
| onDoiLookUp | back to summary |
|---|---|
| private void onDoiLookUp() | |
| onDoiLookUpError | back to summary |
|---|---|
| private void onDoiLookUpError() | |
| onDoiMissing | back to summary |
|---|---|
| private void onDoiMissing() | |
| onSciteLookUp | back to summary |
|---|---|
| private void onSciteLookUp() | |
| onSearchForRelationsSucceed | back to summary |
|---|---|
| private void onSearchForRelationsSucceed(CitationComponents citationComponents, List<CitationRelationItem> citationRelationItems, ObservableList<CitationRelationItem> observableList) | |
| openPossibleDuplicateEntriesWindow | back to summary |
|---|---|
| private void openPossibleDuplicateEntriesWindow(CitationRelationItem citationRelationItem, CheckListView<CitationRelationItem> listView) Function to open possible duplicate entries window to compare duplicate entries
| |
| refreshCurrentEntryAfterDoiLookup | back to summary |
|---|---|
| private void refreshCurrentEntryAfterDoiLookup(BibEntry entry) | |
| resetEmptyPanels | back to summary |
|---|---|
| private void resetEmptyPanels() | |
| searchForRelations | back to summary |
|---|---|
| private void searchForRelations(CitationComponents citationComponents, CitationComponents otherCitationComponents, boolean bypassCache) | |
| setLabelOn | back to summary |
|---|---|
| private static void setLabelOn(CheckListView<CitationRelationItem> listView, String message) | |
| setLoadingPlaceholder | back to summary |
|---|---|
| private static void setLoadingPlaceholder(CheckListView<CitationRelationItem> listView) | |
| setSciteResultsPane | back to summary |
|---|---|
| private void setSciteResultsPane() | |
| setUpEmptyPanel | back to summary |
|---|---|
| private void setUpEmptyPanel(CitationComponents citationComponents, CitationComponents otherCitationComponents) | |
| showEntrySourceDialog | back to summary |
|---|---|
| private void showEntrySourceDialog(BibEntry entry) | |
| showNodes | back to summary |
|---|---|
| private void showNodes(Node... nodes) | |
| snapshotActiveLibrary | back to summary |
|---|---|
| private CitationRelationsTab. Snapshots the active library on the JavaFX Application Thread, so the background matching task never iterates the live entry list, which the user can modify while the search runs. Todo This could be a wrong database, because the user might have switched to another library. Snapshotting when the search is triggered instead of when its result arrives narrows the window, but does not close it - this is still the active library, not the entry's own one. If we were on fixing this, we would need to a) associate a BibEntry with a database or b) pass the database at "bindToEntry". | |
| styleFetchedListView | back to summary |
|---|---|
| private void styleFetchedListView(CheckListView<CitationRelationItem> listView, CitationComponents citationComponents) Styles a given CheckListView to display BibEntries either with a hyperlink or an add button. Also adds the handling of mouse clicks.
| |
| styleLabel | back to summary |
|---|---|
| private void styleLabel(Label label, String tooltipText) Method to style heading labels | |
| triggerDoiLookup | back to summary |
|---|---|
| private void triggerDoiLookup() | |
SearchCitationsRelationsService, parameterized over the cancellation
check so that createSearchTask can supply the one belonging to the task it is currently building.
| fetch | back to summary |
|---|---|
| public List | |
matchAgainstLibrary.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final BibDatabaseMode |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public BibDatabaseMode | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| entries | back to summary |
|---|---|
| private final List<BibEntry> entries Record Component accessed by entries(). | |
| mode | back to summary |
|---|---|
| private final BibDatabaseMode mode Record Component accessed by mode(). | |
| LibrarySnapshot | back to summary |
|---|---|
| private LibrarySnapshot(List<BibEntry> entries, BibDatabaseMode mode) | |
| entries | back to summary |
|---|---|
| public List Record Component getter of entries. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| mode | back to summary |
|---|---|
| public BibDatabaseMode mode() Record Component getter of mode. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |