Verified Owner
Top Fields Constructors Methods
org.jabref.gui.libraryproperties.constants

public Class ConstantsPropertiesViewModel

extends Object
implements PropertiesTabViewModel
Class Inheritance
All Implemented Interfaces
org.jabref.gui.libraryproperties.PropertiesTabViewModel
Imports
java.util.Comparator, .List, .Locale, .Map, .Optional, java.util.stream.Collectors, javafx.beans.property.BooleanProperty, .ListProperty, .SimpleBooleanProperty, .SimpleListProperty, javafx.beans.value.ObservableValue, javafx.collections.FXCollections, .ObservableList, org.jabref.gui.DialogService, org.jabref.gui.frame.ExternalApplicationsPreferences, org.jabref.gui.help.HelpAction, org.jabref.gui.libraryproperties.PropertiesTabViewModel, org.jabref.logic.bibtex.comparator.BibtexStringComparator, org.jabref.logic.help.HelpFile, org.jabref.logic.undo.UndoManager, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibtexString, org.jabref.model.metadata.MetaData, org.jabref.model.undo.UndoableReplaceStrings, com.tobiasdiez.easybind.EasyBind

Field Summary

Modifier and TypeField and Description
private final BibDatabaseContext
private final DialogService
private final ExternalApplicationsPreferences
private static final String
private final ListProperty<ConstantsItemModel>
private final UndoManager
private final BooleanProperty

Constructor Summary

AccessConstructor and Description
public
ConstantsPropertiesViewModel(BibDatabaseContext databaseContext, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
public void
private static Map<String, String>
private ConstantsItemModel
private BibtexString
public Optional<ConstantsItemModel>
public void
public void
public void
public void
public void
public ListProperty<ConstantsItemModel>
public BooleanProperty
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseContextback to summary
private final BibDatabaseContext databaseContext
dialogServiceback to summary
private final DialogService dialogService
externalApplicationsPreferencesback to summary
private final ExternalApplicationsPreferences externalApplicationsPreferences
NEW_STRING_LABELback to summary
private static final String NEW_STRING_LABEL
stringsListPropertyback to summary
private final ListProperty<ConstantsItemModel> stringsListProperty
undoManagerback to summary
private final UndoManager undoManager
validPropertyback to summary
private final BooleanProperty validProperty

Constructor Detail

ConstantsPropertiesViewModelback to summary
public ConstantsPropertiesViewModel(BibDatabaseContext databaseContext, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, UndoManager undoManager)

Method Detail

addNewStringback to summary
public void addNewString()
contentsOfback to summary
private static Map<String, String> contentsOf(List<BibtexString> strings)
convertFromBibTexStringback to summary
private ConstantsItemModel convertFromBibTexString(BibtexString bibtexString)
fromBibtexStringViewModelback to summary
private BibtexString fromBibtexStringViewModel(ConstantsItemModel viewModel)
labelAlreadyExistsback to summary
public Optional<ConstantsItemModel> labelAlreadyExists(String label)
openHelpPageback to summary
public void openHelpPage()
removeStringback to summary
public void removeString(ConstantsItemModel item)
resortStringsback to summary
public void resortStrings()
setValuesback to summary
public void setValues(MetaData metaData)

Implements org.jabref.gui.libraryproperties.PropertiesTabViewModel.setValues.

Doc from org.jabref.gui.libraryproperties.PropertiesTabViewModel.setValues.

Fills this tab's controls from metaData — see PropertiesTab#setValues(MetaData).

Annotations
@Override
storeSettingsback to summary
public void storeSettings(MetaData metaData)

Implements org.jabref.gui.libraryproperties.PropertiesTabViewModel.storeSettings.

Doc from org.jabref.gui.libraryproperties.PropertiesTabViewModel.storeSettings.

Writes this tab's settings into metaData — see PropertiesTab#storeSettings(MetaData). A tab whose settings are not metadata, such as the preamble, ignores it and records its own change.

Annotations
@Override
stringsListPropertyback to summary
public ListProperty<ConstantsItemModel> stringsListProperty()
validPropertyback to summary
public BooleanProperty validProperty()