public abstract class AbstractAutoCompleter
extends java.lang.Object
NameFieldAutoCompleter
, EntireFieldAutoCompleter
AutoCompleterFactory
Modifier and Type | Field and Description |
---|---|
static int |
SHORTEST_TO_COMPLETE |
static int |
SHORTEST_WORD |
Constructor and Description |
---|
AbstractAutoCompleter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addBibtexEntry(BibtexEntry entry)
Add a BibtexEntry to this autocompleter.
|
void |
addWordToIndex(java.lang.String word) |
java.lang.String[] |
complete(java.lang.String str)
Returns one or more possible completions for a given String.
|
java.lang.String |
getPrefix() |
boolean |
indexContainsWord(java.lang.String word) |
abstract 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 |
public static int SHORTEST_TO_COMPLETE
public static final int SHORTEST_WORD
public abstract void addBibtexEntry(BibtexEntry entry)
AbstractAutoCompleter
) itself
decides which information should be stored for later completion.public abstract boolean isSingleUnitField()
AutoCompleteListener.getCurrentWord(JTextComponent comp)
returns current word only, if true, it returns the text beginning from the bufferpublic java.lang.String[] complete(java.lang.String str)
AbstractAutoCompleter
.addBibtexEntry(BibtexEntry)
public void addWordToIndex(java.lang.String word)
public boolean indexContainsWord(java.lang.String word)
public java.lang.String getPrefix()