Module gomint.api
Package io.gomint.gui

Interface FormListener<R>

  • Type Parameters:
    R - type of return value from the response

    public interface FormListener<R>
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • onResponse

        FormListener<R> onResponse​(Consumer<R> consumer)
        Attach a consumer for the response
        Parameters:
        consumer - which consumes the form response
        Returns:
        this object for chaining
      • onClose

        FormListener<R> onClose​(Consumer<Void> consumer)
        Attach a consumer which gets called when the client closes the form without a response
        Parameters:
        consumer - which consumes closing without response
        Returns:
        this object for chaining