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

public Class KeywordsEditorViewModel

extends AbstractEditorViewModel
Class Inheritance
Imports
java.util.List, java.util.stream.Collectors, 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.logic.undo.UndoManager, org.jabref.model.entry.Keyword, .KeywordList, org.jabref.model.entry.field.Field, org.jspecify.annotations.Nullable, org.slf4j.Logger, .LoggerFactory

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public Character
pack-priv static StringConverter<Keyword>
public List<Keyword>
public ListProperty<Keyword>
public @Nullable 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
LOGGERback to summary
private static final Logger LOGGER
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, Character keywordSeparator, UndoManager undoManager)

Method Detail

getKeywordSeparatorback to summary
public Character getKeywordSeparator()
getStringConverterback to summary
pack-priv static StringConverter<Keyword> getStringConverter()
getSuggestionsback to summary
public List<Keyword> getSuggestions(String request)
keywordListPropertyback to summary
public ListProperty<Keyword> keywordListProperty()
parseKeywordback to summary
public @Nullable Keyword parseKeyword(String keyword)
parseKeywordsback to summary
private List<Keyword> parseKeywords(String newText)
serializeKeywordsback to summary
private String serializeKeywords(List<Keyword> keywords)