public static interface EntryCompletion.MatchSelected
Generally, this signal is enough to handle a completion selection and it just used to complete the entry according to the selected completion string.
final DataColumnString column; final EntryCompletion completion; completion.connect(new EntryCompletion.MatchSelected() { final String text; final Entry entry; entry = source.getEntry(); text = model.getValue(iter, column); entry.setText(text); ... });
Modifier and Type | Method and Description |
---|---|
boolean |
onMatchSelected(EntryCompletion source,
TreeModel model,
TreeIter iter)
The useful parameter are
model and iter
which will make you able to get the value of the selected
completion using the TreeModel's
getValue()
method. |
boolean onMatchSelected(EntryCompletion source, TreeModel model, TreeIter iter)
model
and iter
which will make you able to get the value of the selected
completion using the TreeModel's
getValue()
method.