/** * Fires an {@link AttachEvent} on all registered handlers in the handler * source. * * @param <S> The handler source type * @param source the source of the handlers * @param attached whether to announce an attach or detach */ public static <S extends HasAttachHandlers> void fire(S source, boolean attached) { if (TYPE != null) { AttachEvent event = new AttachEvent(attached); source.fireEvent(event); } }
/** * Fires an {@link AttachEvent} on all registered handlers in the handler * source. * * @param <S> The handler source type * @param source the source of the handlers * @param attached whether to announce an attach or detach */ public static <S extends HasAttachHandlers> void fire(S source, boolean attached) { if (TYPE != null) { AttachEvent event = new AttachEvent(attached); source.fireEvent(event); } }
/** * Fires an {@link AttachEvent} on all registered handlers in the handler * source. * * @param <S> The handler source type * @param source the source of the handlers * @param attached whether to announce an attach or detach */ public static <S extends HasAttachHandlers> void fire(S source, boolean attached) { if (TYPE != null) { AttachEvent event = new AttachEvent(attached); source.fireEvent(event); } }