Top Inners Fields Constructors Methods
org.jabref.gui.fieldeditors

public Class LinkedFilesEditor

extends HBox
implements FieldEditorFX
Class Inheritance
All Implemented Interfaces
org.jabref.gui.fieldeditors.FieldEditorFX
Imports
java.util.Optional, javax.swing.undo.UndoManager, javafx.beans.binding.Bindings, javafx.beans.property.SimpleObjectProperty, javafx.collections.ObservableList, javafx.css.PseudoClass, javafx.fxml.FXML, javafx.scene.Node, .Parent, javafx.scene.control.Button, .ContextMenu, .Label, .ListView, .OverrunStyle, .ProgressBar, .ProgressIndicator, .SelectionMode, .SeparatorMenuItem, .Tooltip, javafx.scene.input.ClipboardContent, .DragEvent, .Dragboard, .KeyEvent, .MouseButton, .MouseEvent, .TransferMode, javafx.scene.layout.HBox, .Priority, javafx.scene.text.Text, org.jabref.gui.DialogService, .DragAndDropDataFormats, org.jabref.gui.actions.ActionFactory, .SimpleCommand, .StandardActions, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.copyfiles.CopySingleFileAction, org.jabref.gui.icon.IconTheme, .JabRefIconView, org.jabref.gui.importer.GrobidOptInDialogHelper, org.jabref.gui.keyboard.KeyBinding, org.jabref.gui.linkedfile.DeleteFileAction, org.jabref.gui.util.BindingsHelper, .TaskExecutor, .ViewModelListCellFactory, org.jabref.gui.util.uithreadaware.UiThreadObservableList, org.jabref.logic.integrity.FieldCheckers, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, .LinkedFile, org.jabref.model.entry.field.Field, org.jabref.preferences.PreferencesService, com.airhacks.afterburner.views.ViewLoader, com.tobiasdiez.easybind.EasyBind, com.tobiasdiez.easybind.optional.ObservableOptionalValue, jakarta.inject.Inject

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private JournalAbbreviationRepository
private com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry>
private BibEntryTypesManager
private final BibDatabaseContext
private final UiThreadObservableList<LinkedFileViewModel>
private DialogService
private final Field
private final FieldCheckers
private JabRefIconView
private ListView<LinkedFileViewModel>
private PreferencesService
private ProgressIndicator
private final SuggestionProvider<?>
private TaskExecutor
private UndoManager
private LinkedFilesEditorViewModel

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
private void
private void
public void
private ContextMenu
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
Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

abbreviationRepositoryback to summary
private JournalAbbreviationRepository abbreviationRepository
Annotations
@Inject
bibEntryback to summary
private com.tobiasdiez.easybind.optional.ObservableOptionalValue<BibEntry> bibEntry
bibEntryTypesManagerback to summary
private BibEntryTypesManager bibEntryTypesManager
Annotations
@Inject
databaseContextback to summary
private final BibDatabaseContext databaseContext
decoratedModelListback to summary
private final UiThreadObservableList<LinkedFileViewModel> decoratedModelList
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
fieldback to summary
private final Field field
fieldCheckersback to summary
private final FieldCheckers fieldCheckers
fulltextFetcherback to summary
private JabRefIconView fulltextFetcher
Annotations
@FXML
listViewback to summary
private ListView<LinkedFileViewModel> listView
Annotations
@FXML
preferencesServiceback to summary
private PreferencesService preferencesService
Annotations
@Inject
progressIndicatorback to summary
private ProgressIndicator progressIndicator
Annotations
@FXML
suggestionProviderback to summary
private final SuggestionProvider<?> suggestionProvider
taskExecutorback to summary
private TaskExecutor taskExecutor
Annotations
@Inject
undoManagerback to summary
private UndoManager undoManager
Annotations
@Inject
viewModelback to summary
private LinkedFilesEditorViewModel viewModel

Constructor Detail

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

Method Detail

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

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

Annotations
@Override
createContextMenuForFileback to summary
private ContextMenu createContextMenuForFile(LinkedFileViewModel linkedFile)
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.

Returns:double

the relative weight of the editor in terms of display space

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()
org.jabref.gui.fieldeditors back to summary

private Class LinkedFilesEditor.ContextAction

extends SimpleCommand
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final StandardActions
private final LinkedFileViewModel
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
ContextAction(StandardActions command, LinkedFileViewModel linkedFile, PreferencesService preferencesService)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

commandback to summary
private final StandardActions command
linkedFileback to summary
private final LinkedFileViewModel linkedFile

Constructor Detail

ContextActionback to summary
public ContextAction(StandardActions command, LinkedFileViewModel linkedFile, PreferencesService preferencesService)

Method Detail

executeback to summary
public void execute()
Annotations
@Override