Package org.gnome.gtk
Interface EntryCompletion.MatchSelectedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
EntryCompletion
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface EntryCompletion.MatchSelectedCallback
extends FunctionPointer
Functional interface declaration of the
MatchSelectedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Emitted when a match from the list is selected.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceEntryCompletion, MemorySegment model, MemorySegment iter) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted when a match from the list is selected.The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by
iter
.Note that
model
is the model that was passed toEntryCompletion.setModel(org.gnome.gtk.TreeModel)
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreeModel, org.gnome.gtk.TreeIter)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-