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.

Since:
2.40
See Also:
  • Method Details

    • run

      void run(@Nullable Frame frame, @Nullable Value @Nullable [] elements)

      Emitted after form elements (or form associated elements) are associated to frame. 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.

      Since:
      2.40
    • upcall

      default void upcall(MemorySegment sourceWebFormManager, MemorySegment frame, MemorySegment elements)
      The upcall method is called from native code. The parameters are marshaled and run(Frame, Value[]) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer