Package org.patternfly.handler
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> void
fireEvent
(C component, List<CloseHandler<C>> closeHandler, Event event, boolean fireEvent) Helper method which callsonClose(Event, Object)
, iffireEvent
istrue
and a close handler has been defined.void
Called ifshouldClose(Event, Object)
returnedtrue
static <C> boolean
shouldClose
(C component, List<CloseHandler<C>> closeHandler, Event event, boolean fireEvent) Helper method which returns the result ofshouldClose(Event, Object)
, iffireEvent
istrue
and a close handler has been defined, otherwisetrue
.default boolean
shouldClose
(Event event, C component) Default implementation returnstrue
-
Method Details
-
shouldClose
static <C> boolean shouldClose(C component, List<CloseHandler<C>> closeHandler, Event event, boolean fireEvent) Helper method which returns the result ofshouldClose(Event, Object)
, iffireEvent
istrue
and a close handler has been defined, otherwisetrue
. -
fireEvent
static <C> void fireEvent(C component, List<CloseHandler<C>> closeHandler, Event event, boolean fireEvent) Helper method which callsonClose(Event, Object)
, iffireEvent
istrue
and a close handler has been defined. -
shouldClose
Default implementation returnstrue
-
onClose
Called ifshouldClose(Event, Object)
returnedtrue
-