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 TypeMethodDescriptionvoidEmitted 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.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceWebFormManager, MemorySegment frame, MemorySegment elements) Theupcallmethod 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
elementsarray carries the list of those elements which have moved.Clients should take a reference to the members of the
elementsarray if it is desired to keep them alive after the signal handler returns.- Since:
- 2.40
-
upcall
default void upcall(MemorySegment sourceWebFormManager, MemorySegment frame, MemorySegment elements) Theupcallmethod is called from native code. The parameters are marshaled andrun(org.webkitgtk.webprocessextension.Frame, org.webkitgtk.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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-