|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompletionModel
Method Summary | |
---|---|
boolean |
complete(java.lang.String prefix)
Finds possible completions for a prefix. |
java.lang.String |
completeUniquePrefix(java.lang.String prefix)
Returns largest common prefix of all possible completions for the given prefix. |
void |
insert(java.lang.Object object)
Inserts an object for later completion, matching is done using its Object.toString() method. |
void |
remove(java.lang.Object object)
Removes an object from the completion model. |
Methods inherited from interface javax.swing.MutableComboBoxModel |
---|
addElement, insertElementAt, removeElement, removeElementAt |
Methods inherited from interface javax.swing.ComboBoxModel |
---|
getSelectedItem, setSelectedItem |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
---|
void insert(java.lang.Object object)
Object.toString()
method.
object
- the object to be addedvoid remove(java.lang.Object object)
object
- the object to be removedboolean complete(java.lang.String prefix)
MutableComboBoxModel
.
prefix
- the prefix being matched
java.lang.String completeUniquePrefix(java.lang.String prefix)
prefix
- the prefix being matched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |