Top Fields Constructors Methods
org.jabref.gui.fieldeditors

public Class KeywordsEditorViewModel

extends AbstractEditorViewModel
Class Inheritance
Imports
java.util.List, java.util.stream.Collectors, javax.swing.undo.UndoManager, javafx.beans.property.ListProperty, .SimpleListProperty, javafx.collections.FXCollections, javafx.util.StringConverter, org.jabref.gui.autocompleter.SuggestionProvider, org.jabref.gui.util.BindingsHelper, org.jabref.logic.integrity.FieldCheckers, org.jabref.model.entry.Keyword, .KeywordList, org.jabref.model.entry.field.Field, org.jabref.preferences.PreferencesService, org.tinylog.Logger

Field Summary

Modifier and TypeField and Description
private final ListProperty<Keyword>
private final Character
private final SuggestionProvider<?>
Inherited from org.jabref.gui.fieldeditors.AbstractEditorViewModel:
entryfieldtext

Constructor Summary

AccessConstructor and Description
public
KeywordsEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, PreferencesService preferencesService, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
public Character
public StringConverter<Keyword>
public List<Keyword>
public ListProperty<Keyword>
private List<Keyword>
private String
Inherited from org.jabref.gui.fieldeditors.AbstractEditorViewModel:
bindToEntrycompletegetFieldValidatortextProperty

Field Detail

keywordListPropertyback to summary
private final ListProperty<Keyword> keywordListProperty
keywordSeparatorback to summary
private final Character keywordSeparator
suggestionProviderback to summary
private final SuggestionProvider<?> suggestionProvider

Hides org.jabref.gui.fieldeditors.AbstractEditorViewModel.suggestionProvider.

Constructor Detail

KeywordsEditorViewModelback to summary
public KeywordsEditorViewModel(Field field, SuggestionProvider<?> suggestionProvider, FieldCheckers fieldCheckers, PreferencesService preferencesService, UndoManager undoManager)

Method Detail

getKeywordSeparatorback to summary
public Character getKeywordSeparator()
getStringConverterback to summary
public StringConverter<Keyword> getStringConverter()
getSuggestionsback to summary
public List<Keyword> getSuggestions(String request)
keywordListPropertyback to summary
public ListProperty<Keyword> keywordListProperty()
parseKeywordsback to summary
private List<Keyword> parseKeywords(String newText)
serializeKeywordsback to summary
private String serializeKeywords(List<Keyword> keywords)