Interface CloseHandler<C>

  • 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 CloseHandler<C>
    • Method Detail

      • shouldClose

        static <C> boolean shouldClose​(C component,
                                       CloseHandler<C> closeHandler,
                                       Event event,
                                       boolean fireEvent)
        Helper method which returns the result of shouldClose(Event, Object), if fireEvent is true and a close handler has been defined, otherwise true.
      • fireEvent

        static <C> void fireEvent​(C component,
                                  CloseHandler<C> closeHandler,
                                  Event event,
                                  boolean fireEvent)
        Helper method which calls onClose(Event, Object), if fireEvent is true and a close handler has been defined.
      • shouldClose

        default boolean shouldClose​(Event event,
                                    C component)
        Default implementation returns true