public class DefaultAutoCompleter extends AbstractAutoCompleter
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
_fieldName |
SHORTEST_TO_COMPLETE, SHORTEST_WORD| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAutoCompleter(java.lang.String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBibtexEntry(BibtexEntry entry)
Add a BibtexEntry to this autocompleter.
|
java.lang.String[] |
complete(java.lang.String s)
Returns one or more possible completions for a given String.
|
boolean |
isSingleUnitField()
States whether the field consists of multiple values (false) or of a single value (true)
Symptom: if false,
AutoCompleteListener.getCurrentWord(JTextComponent comp)
returns current word only, if true, it returns the text beginning from the buffer |
addWordToIndex, getPrefix, indexContainsWordprotected DefaultAutoCompleter(java.lang.String fieldName)
AutoCompleterFactorypublic boolean isSingleUnitField()
AbstractAutoCompleterAutoCompleteListener.getCurrentWord(JTextComponent comp)
returns current word only, if true, it returns the text beginning from the bufferisSingleUnitField in class AbstractAutoCompleterpublic java.lang.String[] complete(java.lang.String s)
AbstractAutoCompleterAbstractAutoCompleter
.complete in class AbstractAutoCompleterAbstractAutoCompleter.addBibtexEntry(BibtexEntry)public void addBibtexEntry(BibtexEntry entry)
AbstractAutoCompleterAbstractAutoCompleter) itself
decides which information should be stored for later completion.addBibtexEntry in class AbstractAutoCompleter