Verified Owner
Top Fields Constructors Methods
org.jabref.gui.fieldeditors.contextmenu

pack-priv final Record SingleSelectionMenuBuilder

extends Record
implements ContextMenuBuilder
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.contextmenu.ContextMenuBuilder
Record Components
dialogService:DialogService 
databaseContext:BibDatabaseContext 
bibEntry:com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> 
preferences:GuiPreferences 
viewModel:LinkedFilesEditorViewModel 
taskExecutor:TaskExecutor 
fileUpdateMonitor:FileUpdateMonitor 
undoManager:UndoManager 
stateManager:StateManager 
Imports
java.util.ArrayList, .List, javafx.collections.ObservableList, javafx.scene.control.MenuItem, .SeparatorMenuItem, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionFactory, .StandardActions, org.jabref.gui.copyfiles.CopyLinkedFilesAction, org.jabref.gui.fieldeditors.LinkedFileViewModel, .LinkedFilesEditorViewModel, org.jabref.gui.linkedfile.OcrLinkedFileAction, org.jabref.gui.preferences.GuiPreferences, org.jabref.logic.undo.UndoManager, org.jabref.logic.util.TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.util.FileUpdateMonitor, com.tobiasdiez.easybind.optional.ObservableOptionalValue, org.jspecify.annotations.NonNull

Field Summary

Modifier and TypeField and Description
private final com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry>
bibEntry

Record Component accessed by bibEntry().

private final BibDatabaseContext
databaseContext

Record Component accessed by databaseContext().

private final DialogService
dialogService

Record Component accessed by dialogService().

private final FileUpdateMonitor
fileUpdateMonitor

Record Component accessed by fileUpdateMonitor().

private final GuiPreferences
preferences

Record Component accessed by preferences().

private final StateManager
stateManager

Record Component accessed by stateManager().

private final TaskExecutor
taskExecutor

Record Component accessed by taskExecutor().

private final UndoManager
undoManager

Record Component accessed by undoManager().

private final LinkedFilesEditorViewModel
viewModel

Record Component accessed by viewModel().

Constructor Summary

AccessConstructor and Description
pack-priv
SingleSelectionMenuBuilder(@NonNull DialogService dialogService, @NonNull BibDatabaseContext databaseContext, @NonNull com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry, @NonNull GuiPreferences preferences, @NonNull LinkedFilesEditorViewModel viewModel, @NonNull TaskExecutor taskExecutor, @NonNull FileUpdateMonitor fileUpdateMonitor, @NonNull UndoManager undoManager, @NonNull StateManager stateManager)

Method Summary

Modifier and TypeMethod and Description
public com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry>
bibEntry()

Record Component getter of bibEntry.

public List<MenuItem>
public BibDatabaseContext
databaseContext()

Record Component getter of databaseContext.

public DialogService
dialogService()

Record Component getter of dialogService.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public FileUpdateMonitor
fileUpdateMonitor()

Record Component getter of fileUpdateMonitor.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public GuiPreferences
preferences()

Record Component getter of preferences.

public StateManager
stateManager()

Record Component getter of stateManager.

public boolean
public TaskExecutor
taskExecutor()

Record Component getter of taskExecutor.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public UndoManager
undoManager()

Record Component getter of undoManager.

public LinkedFilesEditorViewModel
viewModel()

Record Component getter of viewModel.

Field Detail

bibEntryback to summary
private final com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry

Record Component accessed by bibEntry().

databaseContextback to summary
private final BibDatabaseContext databaseContext

Record Component accessed by databaseContext().

dialogServiceback to summary
private final DialogService dialogService

Record Component accessed by dialogService().

fileUpdateMonitorback to summary
private final FileUpdateMonitor fileUpdateMonitor

Record Component accessed by fileUpdateMonitor().

preferencesback to summary
private final GuiPreferences preferences

Record Component accessed by preferences().

stateManagerback to summary
private final StateManager stateManager

Record Component accessed by stateManager().

taskExecutorback to summary
private final TaskExecutor taskExecutor

Record Component accessed by taskExecutor().

undoManagerback to summary
private final UndoManager undoManager

Record Component accessed by undoManager().

viewModelback to summary
private final LinkedFilesEditorViewModel viewModel

Record Component accessed by viewModel().

Constructor Detail

SingleSelectionMenuBuilderback to summary
pack-priv SingleSelectionMenuBuilder(@NonNull DialogService dialogService, @NonNull BibDatabaseContext databaseContext, @NonNull com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry, @NonNull GuiPreferences preferences, @NonNull LinkedFilesEditorViewModel viewModel, @NonNull TaskExecutor taskExecutor, @NonNull FileUpdateMonitor fileUpdateMonitor, @NonNull UndoManager undoManager, @NonNull StateManager stateManager)

Method Detail

bibEntryback to summary
public com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry()

Record Component getter of bibEntry.

buildMenuback to summary
public List<MenuItem> buildMenu(@NonNull ObservableList<LinkedFileViewModel> selection)

Implements org.jabref.gui.fieldeditors.contextmenu.ContextMenuBuilder.buildMenu.

Annotations
@Override
databaseContextback to summary
public BibDatabaseContext databaseContext()

Record Component getter of databaseContext.

dialogServiceback to summary
public DialogService dialogService()

Record Component getter of dialogService.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
fileUpdateMonitorback to summary
public FileUpdateMonitor fileUpdateMonitor()

Record Component getter of fileUpdateMonitor.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

preferencesback to summary
public GuiPreferences preferences()

Record Component getter of preferences.

stateManagerback to summary
public StateManager stateManager()

Record Component getter of stateManager.

supportsback to summary
public boolean supports(ObservableList<LinkedFileViewModel> selection)

Implements org.jabref.gui.fieldeditors.contextmenu.ContextMenuBuilder.supports.

Annotations
@Override
taskExecutorback to summary
public TaskExecutor taskExecutor()

Record Component getter of taskExecutor.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

undoManagerback to summary
public UndoManager undoManager()

Record Component getter of undoManager.

viewModelback to summary
public LinkedFilesEditorViewModel viewModel()

Record Component getter of viewModel.