public static interface EntryCompletion.CursorOnMatch
iter
.
final DataColumnString column; final EntryCompletion completion; ... completion.connect(new CursorOnMatch.InsertPrefix() { public boolean onCursorOnMatch(EntryCompletion source, TreeModel model, TreeIter iter) { final Entry entry; final String content; entry = source.getEntry(); content = model.getValue(iter, column); entry.setText(content); return true; } });
Modifier and Type | Method and Description |
---|---|
boolean |
onCursorOnMatch(EntryCompletion source,
TreeModel model,
TreeIter iter)
The useful parameters are
model and iter
which will make you able to get the value of the selected
completion using the TreeModel's
getValue()
method. |
boolean onCursorOnMatch(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.