public void catchNotifications() {

        m_catchNotifications = true;
        if (isShowing()) {
            installNotificationWidget();
        }
        if (m_closingHandlerRegistration == null) {
            // when closing the dialog
            m_closingHandlerRegistration = addCloseHandler(new CloseHandler<PopupPanel>() {

                /**
                 * @see CloseHandler#onClose(CloseEvent)
                 */
                public void onClose(CloseEvent<PopupPanel> event) {

                    clearNotifications();
                }
            });
        }
    }
public void catchNotifications ( ) { m_catchNotifications = true ; if ( isShowing ( ) ) { installNotificationWidget ( ) ; } if ( m_closingHandlerRegistration == null ) { m_closingHandlerRegistration = addCloseHandler ( new CloseHandler < PopupPanel > ( ) { public void onClose ( CloseEvent < PopupPanel > event ) { clearNotifications ( ) ; } } ) ; } }
Replaces current notification widget by an overlay.<p>