Search in sources :

Example 1 with EventHub

use of com.haulmont.bali.events.EventHub in project cuba by cuba-platform.

the class Window method removeListener.

@Deprecated
default void removeListener(CloseListener listener) {
    EventHub eventHub = UiControllerUtils.getEventHub(getFrameOwner());
    eventHub.unsubscribe(AfterCloseEvent.class, new AfterCloseListenerAdapter(listener));
}
Also used : EventHub(com.haulmont.bali.events.EventHub)

Example 2 with EventHub

use of com.haulmont.bali.events.EventHub in project cuba by cuba-platform.

the class Window method removeCloseListener.

@Deprecated
default void removeCloseListener(CloseListener listener) {
    EventHub eventHub = UiControllerUtils.getEventHub(getFrameOwner());
    eventHub.unsubscribe(AfterCloseEvent.class, new AfterCloseListenerAdapter(listener));
}
Also used : EventHub(com.haulmont.bali.events.EventHub)

Aggregations

EventHub (com.haulmont.bali.events.EventHub)2