public static interface EntryCompletion.InsertPrefix
final EntryCompletion completion;
...
completion.setInlineCompletion(true);
completion.connect(new EntryCompletion.InsertPrefix() {
public boolean onInsertPrefix(EntryCompletion source, String prefix) {
final Entry entry;
entry = source.getEntry();
entry.setText(prefix);
entry.selectRegion(0, prefix.length());
}
});
| Modifier and Type | Method and Description |
|---|---|
boolean |
onInsertPrefix(EntryCompletion source,
String prefix)
The only two parameters give references to the EntryCompletion
source which has emitted the signal and the selected
prefix. |
boolean onInsertPrefix(EntryCompletion source, String prefix)
source which has emitted the signal and the selected
prefix.