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

public Class LinkedFilesEditor

extends VBox
implements FieldEditorFX
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.FieldEditorFX
Imports
java.util.Optional, javafx.beans.binding.Bindings, .BooleanBinding, javafx.beans.property.SimpleObjectProperty, javafx.collections.ObservableList, javafx.css.PseudoClass, javafx.fxml.FXML, javafx.geometry.Insets, javafx.scene.Node, .Parent, javafx.scene.control.Button, .ContextMenu, .Label, .ListView, .OverrunStyle, .ProgressBar, .ProgressIndicator, .SelectionMode, .TextField, .Tooltip, javafx.scene.input.ClipboardContent, .DragEvent, .Dragboard, .KeyEvent, .MouseButton, .MouseEvent, .TransferMode, javafx.scene.layout.HBox, .Priority, .Region, .VBox, javafx.scene.text.Text, org.jabref.gui.DialogService, .DragAndDropDataFormats, .StateManager, org.jabref.gui.actions.StandardActions, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.copyfiles.CopyLinkedFilesAction, org.jabref.gui.fieldeditors.contextmenu.ContextAction, .ContextMenuFactory, org.jabref.gui.icon.IconTheme, .JabRefIconView, org.jabref.gui.importer.GrobidUseDialogHelper, org.jabref.gui.keyboard.KeyBinding, org.jabref.gui.linkedfile.DeleteFileAction, .LinkedFileEditDialog, .OcrLinkedFileAction, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.ControlHelper, .ViewModelListCellFactory, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.undo.UndoManager, org.jabref.logic.util.TaskExecutor, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, .LinkedFile, org.jabref.model.entry.field.Field, org.jabref.model.util.FileUpdateMonitor, com.airhacks.afterburner.views.ViewLoader, com.tobiasdiez.easybind.EasyBind, com.tobiasdiez.easybind.optional.ObservableOptionalValue, jakarta.inject.Inject

Field Summary

Modifier and TypeField and Description
private JournalAbbreviationRepository
private ContextMenu
private com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry>
private BibEntryTypesManager
private HBox
private ContextMenuFactory
private final BibDatabaseContext
private DialogService
private final Field
private final FieldCheckers
private FileUpdateMonitor
private JabRefIconView
private ListView<LinkedFileViewModel>
private static final int
private TextField
private GuiPreferences
private ProgressIndicator
private StateManager
private final SuggestionProvider<?>
private TaskExecutor
private final UndoManager
private LinkedFilesEditorViewModel

Constructor Summary

AccessConstructor and Description
public
LinkedFilesEditor(Field field, BibDatabaseContext databaseContext, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
private void
public void
public void
private Node
private void
private void
public Parent
public LinkedFilesEditorViewModel
public double
getWeight()

Overrides default org.jabref.gui.fieldeditors.FieldEditorFX.getWeight.

Returns relative size of the field editor in terms of display space.

private void
private void
private void
private void
private void
private void
private static double
Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

abbreviationRepositoryback to summary
private JournalAbbreviationRepository abbreviationRepository
Annotations
@Inject
activeContextMenuback to summary
private ContextMenu activeContextMenu
bibEntryback to summary
private com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry
bibEntryTypesManagerback to summary
private BibEntryTypesManager bibEntryTypesManager
Annotations
@Inject
buttonRowback to summary
private HBox buttonRow
Annotations
@FXML
contextMenuFactoryback to summary
private ContextMenuFactory contextMenuFactory
databaseContextback to summary
private final BibDatabaseContext databaseContext
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
fieldback to summary
private final Field field
fieldCheckersback to summary
private final FieldCheckers fieldCheckers
fileUpdateMonitorback to summary
private FileUpdateMonitor fileUpdateMonitor
Annotations
@Inject
fulltextFetcherback to summary
private JabRefIconView fulltextFetcher
Annotations
@FXML
listViewback to summary
private ListView<LinkedFileViewModel> listView
Annotations
@FXML
MAX_VISIBLE_ROWSback to summary
private static final int MAX_VISIBLE_ROWS
noFilePlaceholderback to summary
private TextField noFilePlaceholder
Annotations
@FXML
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
progressIndicatorback to summary
private ProgressIndicator progressIndicator
Annotations
@FXML
stateManagerback to summary
private StateManager stateManager
Annotations
@Inject
suggestionProviderback to summary
private final SuggestionProvider<?> suggestionProvider
taskExecutorback to summary
private TaskExecutor taskExecutor
Annotations
@Inject
undoManagerback to summary
private final UndoManager undoManager
viewModelback to summary
private LinkedFilesEditorViewModel viewModel

Constructor Detail

LinkedFilesEditorback to summary
public LinkedFilesEditor(Field field, BibDatabaseContext databaseContext, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, UndoManager undoManager)

Method Detail

addFromURLback to summary
private void addFromURL()
Annotations
@FXML
addNewFileback to summary
public void addNewFile()
Annotations
@FXML
bindToEntryback to summary
public void bindToEntry(BibEntry entry)

Implements org.jabref.gui.fieldeditors.FieldEditorFX.bindToEntry.

Annotations
@Override
createFileDisplayback to summary
private Node createFileDisplay(LinkedFileViewModel linkedFile)
deleteAttachedFilesWithConfirmationback to summary
private void deleteAttachedFilesWithConfirmation()
fetchFulltextback to summary
private void fetchFulltext()
Annotations
@FXML
getNodeback to summary
public Parent getNode()

Implements org.jabref.gui.fieldeditors.FieldEditorFX.getNode.

Annotations
@Override
getViewModelback to summary
public LinkedFilesEditorViewModel getViewModel()
getWeightback to summary
public double getWeight()

Overrides default org.jabref.gui.fieldeditors.FieldEditorFX.getWeight.

Doc from org.jabref.gui.fieldeditors.FieldEditorFX.getWeight.

Returns relative size of the field editor in terms of display space.

A value of 1 means that the editor gets exactly as much space as all other regular editors.

A value of 2 means that the editor gets twice as much space as regular editors.

Annotations
@Override
handleItemMouseClickback to summary
private void handleItemMouseClick(LinkedFileViewModel linkedFile, MouseEvent event)
handleOnDragDetectedback to summary
private void handleOnDragDetected(LinkedFileViewModel linkedFile, MouseEvent event)
handleOnDragDroppedback to summary
private void handleOnDragDropped(LinkedFileViewModel originalItem, DragEvent event)
handleOnDragOverback to summary
private void handleOnDragOver(LinkedFileViewModel originalItem, DragEvent event)
initializeback to summary
private void initialize()
Annotations
@FXML
setUpKeyBindingsback to summary
private void setUpKeyBindings()
verticalInsetsback to summary
private static double verticalInsets(Region region)