Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.exporter

public Class CreateModifyExporterDialogViewModel

extends AbstractViewModel
Class Inheritance
Imports
java.nio.file.Path, javafx.beans.property.SimpleStringProperty, .StringProperty, org.jabref.gui.AbstractViewModel, .DialogService, org.jabref.gui.util.FileDialogConfiguration, org.jabref.logic.exporter.TemplateExporter, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.util.StandardFileType, org.slf4j.Logger, .LoggerFactory

This view model can be used both for "add exporter" and "modify exporter" functionalities. It takes an optional exporter which is empty for "add exporter," and takes the selected exporter for "modify exporter." It returns an optional exporter which empty if an invalid or no exporter is created, and otherwise contains the exporter to be added or that is modified.

Field Summary

Modifier and TypeField and Description
private final DialogService
private final StringProperty
private final StringProperty
private static final Logger
private final StringProperty
private final CliPreferences

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public StringProperty
public StringProperty
public StringProperty
public ExporterViewModel

Field Detail

dialogServiceback to summary
private final DialogService dialogService
extensionback to summary
private final StringProperty extension
layoutFileback to summary
private final StringProperty layoutFile
LOGGERback to summary
private static final Logger LOGGER
nameback to summary
private final StringProperty name
preferencesback to summary
private final CliPreferences preferences

Constructor Detail

CreateModifyExporterDialogViewModelback to summary
public CreateModifyExporterDialogViewModel(ExporterViewModel exporter, DialogService dialogService, CliPreferences preferences)

Method Detail

browseback to summary
public void browse()
getExtensionback to summary
public StringProperty getExtension()
getLayoutFileNameback to summary
public StringProperty getLayoutFileName()
getNameback to summary
public StringProperty getName()
saveExporterback to summary
public ExporterViewModel saveExporter()