|
java-gnome version 4.0.15 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
public static interface EntryCompletion.InsertPrefix
Emitted when the inline auto-completion is triggered. The default behavior is to make the entry display the whole prefix and select the newly inserted part.
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());
}
});
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean onInsertPrefix(EntryCompletion source,
String prefix)
source which has emitted the signal and the selected
prefix.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||