Interface UiBackend.BackendCallbacks<R>

Type Parameters:
R - answer type
Enclosing interface:
UiBackend

@NonExtendable public static interface UiBackend.BackendCallbacks<R>
How a backend reports back. May be called from any thread, including inside the backend's own event handler: the service only records the report there, and runs module code (grid actions, result dependents) later in a task of the viewer's entity context. The first completed or closed report chooses the outcome if none has been chosen; every report after the outcome is chosen is ignored. clicked is not terminal. completed on a Grid session is ignored.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clicked(GridSlot slot, ClickKind kind)
    For Grid: a click on slot.
    void
    Reports an end without an answer.
    void
    completed(R value)
    Reports an answer.
  • Method Details

    • completed

      void completed(R value)
      Reports an answer.
    • closed

      void closed(CloseReason reason)
      Reports an end without an answer.
    • clicked

      void clicked(GridSlot slot, ClickKind kind)
      For Grid: a click on slot.