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

pack-priv final Record MultiSelectionMenuBuilder

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 
Imports
java.io.IOException, java.nio.file.Path, java.util.ArrayList, .LinkedHashMap, .List, .Map, .Optional, java.util.function.Consumer, .Predicate, javafx.beans.binding.Bindings, javafx.collections.ObservableList, javafx.scene.control.MenuItem, org.jabref.gui.DialogService, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.desktop.os.NativeDesktop, org.jabref.gui.fieldeditors.LinkedFileViewModel, .LinkedFilesEditorViewModel, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.DirectoryDialogConfiguration, org.jabref.logic.l10n.Localization, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, com.tobiasdiez.easybind.optional.ObservableOptionalValue, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

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 static final Logger
private final GuiPreferences
preferences

Record Component accessed by preferences().

private final LinkedFilesEditorViewModel
viewModel

Record Component accessed by viewModel().

Constructor Summary

AccessConstructor and Description
pack-priv
MultiSelectionMenuBuilder(@NonNull DialogService dialogService, @NonNull BibDatabaseContext databaseContext, @NonNull com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry, @NonNull GuiPreferences preferences, @NonNull LinkedFilesEditorViewModel viewModel)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
private MenuItem
public com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry>
bibEntry()

Record Component getter of bibEntry.

private MenuItem
public List<MenuItem>
private 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 final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

pack-priv boolean
hasSourceUrl(LinkedFileViewModel linkedFileViewModel)

pack-priv boolean
pack-priv boolean
isOnline(LinkedFileViewModel linkedFileViewModel)

pack-priv void
public GuiPreferences
preferences()

Record Component getter of preferences.

public boolean
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

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().

LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final GuiPreferences preferences

Record Component accessed by preferences().

viewModelback to summary
private final LinkedFilesEditorViewModel viewModel

Record Component accessed by viewModel().

Constructor Detail

MultiSelectionMenuBuilderback to summary
pack-priv MultiSelectionMenuBuilder(@NonNull DialogService dialogService, @NonNull BibDatabaseContext databaseContext, @NonNull com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry, @NonNull GuiPreferences preferences, @NonNull LinkedFilesEditorViewModel viewModel)

Method Detail

alwaysEnabledback to summary
pack-priv boolean alwaysEnabled(LinkedFileViewModel ignored)
batchCommandItemback to summary
private MenuItem batchCommandItem(ActionFactory actionFactory, StandardActions action, ObservableList<LinkedFileViewModel> selection, Predicate<LinkedFileViewModel> enablePredicate)
bibEntryback to summary
public com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry()

Record Component getter of bibEntry.

buildCopyToFolderItemback to summary
private MenuItem buildCopyToFolderItem(ActionFactory actionFactory, ObservableList<LinkedFileViewModel> selection)
buildMenuback to summary
public List<MenuItem> buildMenu(ObservableList<LinkedFileViewModel> selection)

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

Annotations
@Override
customBatchItemback to summary
private MenuItem customBatchItem(ActionFactory actionFactory, StandardActions action, ObservableList<LinkedFileViewModel> selection, Predicate<LinkedFileViewModel> enablePredicate, Consumer<List<LinkedFileViewModel>> consumer)
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).
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.

hasSourceUrlback to summary
pack-priv boolean hasSourceUrl(LinkedFileViewModel linkedFileViewModel)
isLocalAndExistsback to summary
pack-priv boolean isLocalAndExists(LinkedFileViewModel linkedFileViewModel)
isOnlineback to summary
pack-priv boolean isOnline(LinkedFileViewModel linkedFileViewModel)
openContainingFoldersback to summary
pack-priv void openContainingFolders(List<LinkedFileViewModel> linkedFileViewModels)
preferencesback to summary
public GuiPreferences preferences()

Record Component getter of preferences.

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

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

Annotations
@Override
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.

viewModelback to summary
public LinkedFilesEditorViewModel viewModel()

Record Component getter of viewModel.