|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WordList
A storage of words that can be used as completions.
AutoComplete
stores there all words typed
so far that satisfy certain conditions given by
the PreferencesManager
.
Method Summary | |
---|---|
boolean |
add(net.jakubholy.jedit.autocomplete.Completion completion)
Insert the completion into the list. |
void |
addAll(net.jakubholy.jedit.autocomplete.Completion[] completions)
|
void |
addObserver(java.util.Observer o)
Add an observer interested in receiving WordListEvent s whenever
the contents of this word list changes (completion added/removed, cleared). |
void |
clear()
Removes all of the elements from this wordList. |
boolean |
containes(net.jakubholy.jedit.autocomplete.Completion completion)
Return true if is in the list. |
void |
deleteObserver(java.util.Observer o)
Stop observing this word list. |
net.jakubholy.jedit.autocomplete.Completion[] |
getAllWords()
Returns all words in the list in a sorted array. |
net.jakubholy.jedit.autocomplete.Completion[] |
getCompletions(java.lang.String prefix)
Return an array of all words in the list starting with the given prefix and longer than that prefix. |
boolean |
remove(net.jakubholy.jedit.autocomplete.Completion completion)
Removes the specified element from this wordList if it is present. |
int |
size()
Returns the number of elements in this wordlist. |
Method Detail |
---|
net.jakubholy.jedit.autocomplete.Completion[] getCompletions(java.lang.String prefix)
prefix
- The prefix whose completions we search; at least 1 letter.
net.jakubholy.jedit.autocomplete.Completion[] getAllWords()
boolean add(net.jakubholy.jedit.autocomplete.Completion completion)
boolean containes(net.jakubholy.jedit.autocomplete.Completion completion)
void addAll(net.jakubholy.jedit.autocomplete.Completion[] completions)
boolean remove(net.jakubholy.jedit.autocomplete.Completion completion)
void clear()
int size()
void addObserver(java.util.Observer o)
WordListEvent
s whenever
the contents of this word list changes (completion added/removed, cleared).
void deleteObserver(java.util.Observer o)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |