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

public Class LinkedFileEditDialog

extends BaseDialog<LinkedFile>
Class Inheritance
Imports
javafx.event.ActionEvent, javafx.fxml.FXML, javafx.scene.control.ButtonType, .ComboBox, .DialogEvent, .TextField, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.externalfiletype.ExternalFileType, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.BaseDialog, .UiTaskExecutor, .ViewModelListCellFactory, org.jabref.logic.l10n.Localization, org.jabref.logic.util.StandardFileType, org.jabref.model.entry.LinkedFile, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

Field Summary

Modifier and TypeField and Description
private static final ButtonType
private TextField
private DialogService
private static final ButtonType
private ComboBox<ExternalFileType>
private TextField
private final LinkedFile
private GuiPreferences
private TextField
private StateManager
private LinkedFileEditDialogViewModel

Constructor Summary

AccessConstructor and Description
public
LinkedFileEditDialog()

Constructor for adding a new LinkedFile.

public
LinkedFileEditDialog(LinkedFile
The linked file to be edited.
linkedFile
)

Constructor for editing an existing LinkedFile.

Method Summary

Modifier and TypeMethod and Description
private void
private void
initializeDialog(String title, ButtonType primaryButtonType)

private void
private void
Inherited from org.jabref.gui.util.BaseDialog:
bringToFrontcloseOnKeyBindingMatchfitWindowToContent

Field Detail

ADD_BUTTONback to summary
private static final ButtonType ADD_BUTTON
descriptionback to summary
private TextField description
Annotations
@FXML
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
EDIT_BUTTONback to summary
private static final ButtonType EDIT_BUTTON
fileTypeback to summary
private ComboBox<ExternalFileType> fileType
Annotations
@FXML
linkedFileback to summary
private final LinkedFile linkedFile
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
sourceUrlback to summary
private TextField sourceUrl
Annotations
@FXML
stateManagerback to summary
private StateManager stateManager
Annotations
@Inject
viewModelback to summary
private LinkedFileEditDialogViewModel viewModel

Constructor Detail

LinkedFileEditDialogback to summary
public LinkedFileEditDialog()

Constructor for adding a new LinkedFile.

LinkedFileEditDialogback to summary
public LinkedFileEditDialog(LinkedFile linkedFile)

Constructor for editing an existing LinkedFile.

Parameters
linkedFile:LinkedFile

The linked file to be edited.

Method Detail

initializeback to summary
private void initialize()
Annotations
@FXML
initializeDialogback to summary
private void initializeDialog(String title, ButtonType primaryButtonType)
onDialogShowback to summary
private void onDialogShow(DialogEvent event)
openBrowseDialogback to summary
private void openBrowseDialog(ActionEvent event)
Annotations
@FXML