Package org.gnome.webkit.wpe
Interface WebFormManager.FormControlsAssociatedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebFormManager
- 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 WebFormManager.FormControlsAssociatedCallback
extends FunctionPointer
Functional interface declaration of the
FormControlsAssociatedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Emitted after form elements (or form associated elements) are associated toframe
.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 void
upcall
(MemorySegment sourceWebFormManager, MemorySegment frame, MemorySegment elements) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted after form elements (or form associated elements) are associated toframe
. This is useful to implement form auto filling for web pages where form fields are added dynamically. This signal might be emitted multiple times for the same frame.Note that this signal could be also emitted when form controls are moved between forms. In that case, the
elements
array carries the list of those elements which have moved.Clients should take a reference to the members of the
elements
array if it is desired to keep them alive after the signal handler returns. -
upcall
default void upcall(MemorySegment sourceWebFormManager, MemorySegment frame, MemorySegment elements) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.wpe.Frame, org.gnome.webkit.jsc.Value[])
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
-