Top Fields Constructors Methods
org.jabref.gui.openoffice

public Class StyleSelectDialogViewModel

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.List, .Optional, java.util.stream.Collectors, javafx.beans.property.ListProperty, .ObjectProperty, .SimpleListProperty, .SimpleObjectProperty, javafx.collections.FXCollections, javafx.scene.control.ButtonType, .DialogPane, .ScrollPane, .TextArea, org.jabref.gui.DialogService, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.externalfiletype.ExternalFileType, .ExternalFileTypes, org.jabref.gui.util.FileDialogConfiguration, org.jabref.logic.l10n.Localization, org.jabref.logic.openoffice.OpenOfficePreferences, org.jabref.logic.openoffice.style.OOBibStyle, .StyleLoader, org.jabref.logic.util.StandardFileType, org.jabref.model.database.BibDatabaseContext, org.jabref.preferences.FilePreferences, .PreferencesService

Field Summary

Modifier and TypeField and Description
private final DialogService
private final FilePreferences
private final OpenOfficePreferences
private final ObjectProperty<StyleSelectItemViewModel>
private final StyleLoader
private final ListProperty<StyleSelectItemViewModel>

Constructor Summary

AccessConstructor and Description
public
StyleSelectDialogViewModel(DialogService dialogService, StyleLoader styleLoader, PreferencesService preferencesService)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public StyleSelectItemViewModel
private StyleSelectItemViewModel
public List<StyleSelectItemViewModel>
public ObjectProperty<StyleSelectItemViewModel>
public void
public ListProperty<StyleSelectItemViewModel>
public OOBibStyle
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogServiceback to summary
private final DialogService dialogService
filePreferencesback to summary
private final FilePreferences filePreferences
openOfficePreferencesback to summary
private final OpenOfficePreferences openOfficePreferences
selectedItemback to summary
private final ObjectProperty<StyleSelectItemViewModel> selectedItem
styleLoaderback to summary
private final StyleLoader styleLoader
stylesback to summary
private final ListProperty<StyleSelectItemViewModel> styles

Constructor Detail

StyleSelectDialogViewModelback to summary
public StyleSelectDialogViewModel(DialogService dialogService, StyleLoader styleLoader, PreferencesService preferencesService)

Method Detail

addStyleFileback to summary
public void addStyleFile()
deleteStyleback to summary
public void deleteStyle()
editStyleback to summary
public void editStyle()
fromOOBibStyleback to summary
public StyleSelectItemViewModel fromOOBibStyle(OOBibStyle style)
getStyleOrDefaultback to summary
private StyleSelectItemViewModel getStyleOrDefault(String stylePath)
loadStylesback to summary
public List<StyleSelectItemViewModel> loadStyles()
selectedItemPropertyback to summary
public ObjectProperty<StyleSelectItemViewModel> selectedItemProperty()
storePrefsback to summary
public void storePrefs()
stylesPropertyback to summary
public ListProperty<StyleSelectItemViewModel> stylesProperty()
toOOBibStyleback to summary
public OOBibStyle toOOBibStyle(StyleSelectItemViewModel item)
viewStyleback to summary
public void viewStyle(StyleSelectItemViewModel item)