use of com.haulmont.cuba.gui.components.Window.BeforeCloseWithCloseButtonEvent in project cuba by cuba-platform.
the class WebWindowManager method isCloseWithCloseButtonPrevented.
protected boolean isCloseWithCloseButtonPrevented(Window currentWindow) {
WebWindow webWindow = (WebWindow) ComponentsHelper.getWindowImplementation(currentWindow);
if (webWindow != null) {
BeforeCloseWithCloseButtonEvent event = new BeforeCloseWithCloseButtonEvent(webWindow);
webWindow.fireBeforeCloseWithCloseButton(event);
return event.isClosePrevented();
}
return false;
}
Aggregations