Top Description Fields Constructors Methods
org.jabref.gui.autocompleter

public Class PersonNameSuggestionProvider

extends SuggestionProvider<Author>
Class Inheritance
Imports
java.util.Collection, .Collections, .Comparator, .Map, .Objects, java.util.stream.Stream, org.jabref.model.database.BibDatabase, org.jabref.model.entry.Author, .AuthorList, .BibEntry, org.jabref.model.entry.field.Field, org.jabref.model.strings.StringUtil, com.google.common.base.Equivalence, org.controlsfx.control.textfield.AutoCompletionBinding

Delivers possible completions as a list of Authors.

Field Summary

Modifier and TypeField and Description
private final BibDatabase
private final Collection<Field>

Constructor Summary

AccessConstructor and Description
pack-priv
public

Method Summary

Modifier and TypeMethod and Description
public Stream<Author>
protected Comparator<Author>
getComparator()

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.getComparator.

Get the comparator to order the suggestions

protected Equivalence<Author>
public Stream<Author>
protected boolean
isMatch(Author candidate, org.controlsfx.control.textfield.AutoCompletionBinding.ISuggestionRequest request)

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.isMatch.

Check the given candidate is a match (ie a valid suggestion)

Inherited from org.jabref.gui.autocompleter.SuggestionProvider:
getPossibleSuggestionsprovideSuggestions

Field Detail

databaseback to summary
private final BibDatabase database
fieldsback to summary
private final Collection<Field> fields

Constructor Detail

PersonNameSuggestionProviderback to summary
pack-priv PersonNameSuggestionProvider(Field field, BibDatabase database)
PersonNameSuggestionProviderback to summary
public PersonNameSuggestionProvider(Collection<Field> fields, BibDatabase database)

Method Detail

getAuthorsback to summary
public Stream<Author> getAuthors(BibEntry entry)
getComparatorback to summary
protected Comparator<Author> getComparator()

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.getComparator.

Doc from org.jabref.gui.autocompleter.SuggestionProvider.getComparator.

Get the comparator to order the suggestions

Annotations
@Override
getEquivalenceback to summary
protected Equivalence<Author> getEquivalence()

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.getEquivalence.

Annotations
@Override
getSourceback to summary
public Stream<Author> getSource()

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.getSource.

Annotations
@Override
isMatchback to summary
protected boolean isMatch(Author candidate, org.controlsfx.control.textfield.AutoCompletionBinding.ISuggestionRequest request)

Implements abstract org.jabref.gui.autocompleter.SuggestionProvider.isMatch.

Doc from org.jabref.gui.autocompleter.SuggestionProvider.isMatch.

Check the given candidate is a match (ie a valid suggestion)

Annotations
@Override