Search in sources :

Example 1 with BeforeCloseWithShortcutEvent

use of com.haulmont.cuba.gui.components.Window.BeforeCloseWithShortcutEvent in project cuba by cuba-platform.

the class WebWindowManager method isCloseWithShortcutPrevented.

protected boolean isCloseWithShortcutPrevented(Window currentWindow) {
    WebWindow webWindow = (WebWindow) ComponentsHelper.getWindowImplementation(currentWindow);
    if (webWindow != null) {
        BeforeCloseWithShortcutEvent event = new BeforeCloseWithShortcutEvent(webWindow);
        webWindow.fireBeforeCloseWithShortcut(event);
        return event.isClosePrevented();
    }
    return false;
}
Also used : BeforeCloseWithShortcutEvent(com.haulmont.cuba.gui.components.Window.BeforeCloseWithShortcutEvent) WebWindow(com.haulmont.cuba.web.gui.WebWindow)

Aggregations

BeforeCloseWithShortcutEvent (com.haulmont.cuba.gui.components.Window.BeforeCloseWithShortcutEvent)1 WebWindow (com.haulmont.cuba.web.gui.WebWindow)1