use of com.google.gwt.event.dom.client.HasClickHandlers in project ovirt-engine by oVirt.
the class AbstractPopupPresenterWidget method onBind.
@Override
protected void onBind() {
super.onBind();
HasClickHandlers closeButton = getView().getCloseButton();
if (closeButton != null) {
registerHandler(closeButton.addClickHandler(event -> AbstractPopupPresenterWidget.this.onClose()));
}
HasClickHandlers closeIconButton = getView().getCloseIconButton();
if (closeIconButton != null) {
registerHandler(closeIconButton.addClickHandler(event -> AbstractPopupPresenterWidget.this.onClose()));
}
registerHandler(getView().setPopupKeyPressHandler(event -> AbstractPopupPresenterWidget.this.onKeyPress(event)));
registerHandler(getEventBus().addHandler(UserLoginChangeEvent.getType(), event -> {
if (isVisible()) {
getView().hide();
}
}));
registerHandler(getView().getRepositionOnWindowResizeHandler());
}
Aggregations