Interface CellArea.FocusChangedCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
CellArea
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 CellArea.FocusChangedCallback extends FunctionPointer

Functional interface declaration of the FocusChangedCallback callback.

See Also:
  • Method Details

    • run

      void run(@Nullable CellRenderer renderer, String path)

      Indicates that focus changed on this area. This signal is emitted either as a result of focus handling or event handling.

      It's possible that the signal is emitted even if the currently focused renderer did not change, this is because focus may change to the same renderer in the same cell area for a different row of data.

    • upcall

      default void upcall(MemorySegment sourceCellArea, MemorySegment renderer, MemorySegment path)
      The upcall method is called from native code. The parameters are marshaled and run(CellRenderer, String) 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