Interface GridAction

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 interface GridAction
Click handler. Runs in a later task of the viewer's entity context, never inside the backend's own event handler, so it may call GridSession.update(Grid), UiSession.close() or show another intent. The action is taken from the snapshot the backend had last been given when the click was reported, and runs only if the session is still open when its task runs. Exceptions are logged with the owner and swallowed. A click the player made on an older picture that reaches the server after a redraw runs the action of the redrawn slot; keep actions safe to run on whatever the slot shows now.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handles one click.
  • Method Details

    • onClick

      void onClick(GridClick click)
      Handles one click.