@EventHandler("listItem") @SuppressWarnings("unused") public void onClickListItem(final ClickEvent event) { if (clickHandler != null) { clickHandler.onClick(event); } } }
@EventHandler("resetAnchor") public void onResetPressed(ClickEvent clickEvent) { presenter.onResetPressed(); } }
@EventHandler("dropDownButton") void onDropDownClick(ClickEvent event) { presenter.onItemsShown(); } }
@EventHandler("option") public void onClick(ClickEvent clickEvent) { this.presenter.select(); } }
@EventHandler("searchInput") void onSearchClick(ClickEvent event) { // Capture and ignore in order to avoid the drop-down to hide event.stopPropagation(); }
@EventHandler("searchInput") void onSearchOver(KeyDownEvent event) { // Capture and ignore in order to avoid the js errors event.stopPropagation(); }
@EventHandler("itemAnchor") public void onItemClick(ClickEvent event) { presenter.onItemClick(); } }
@EventHandler("headerPanel") private void onHeaderMouseOut(MouseOutEvent event) { if (mouseOver) { headerPanel.setClassName("acl-header-panel"); mouseOver = false; } } }
@EventHandler("cancelButton") public void cancelButtonClicked( final ClickEvent clickEvent ) { presenter.onCancelButtonClicked(); } }
@EventHandler("searchInput") void onSearchChanged(KeyUpEvent event) { String pattern = searchInput.getValue(); presenter.search(pattern); }
@EventHandler("editButton") @SinkNative(Event.ONCLICK) public void onEdit(Event event) { presenter.onEdit(); } }
@EventHandler("itemAnchor") public void onItemClick(ClickEvent event) { presenter.onItemClick(); if(multiSelect) { event.stopPropagation(); } } }
@EventHandler("newEntryAnchor") public void onNewEntryPresed(ClickEvent clickEvent) { clickEvent.stopPropagation(); presenter.onNewEntryPressed(); }
@SinkNative(Event.ONCLICK) @EventHandler("cancelButton") public void cancelClick(final Event event) { buttonPressed = ButtonPressed.CANCEL; presenter.cancelClick(); } }
@SinkNative(Event.ONMOUSEOVER) @EventHandler("description") public void onLoadDescription(Event event) { maybeAddTitle(description); }
@EventHandler("enabled") public void onToggleChange(ChangeEvent event) { presenter.notifyChange(enabled.getValue()); } }
@EventHandler("enableAll") public void onEnableAll(ClickEvent clickEvent) { presenter.doEnableAll(); enableAll.blur(); }
@SinkNative(Event.ONCLICK) @EventHandler("edit") public void editClick(Event e) { editCommand.execute(); } }
@EventHandler("copy-details-button") private void onCopyDetailsButtonClicked(final @ForEvent("click") elemental2.dom.Event e) { final boolean copySucceeded = clipboard.copy(errorDetails); if (copySucceeded) { notificationEvent.fire(new NotificationEvent(DefaultWorkbenchConstants.INSTANCE.ErrorDetailsSuccessfullyCopiedToClipboard(), SUCCESS)); } else { notificationEvent.fire(new NotificationEvent(DefaultWorkbenchConstants.INSTANCE.ErrorDetailsFailedToBeCopiedToClipboard(), WARNING)); } console.error(errorDetails.textContent); hide(); }
@EventHandler("icon") public void onMouseDown(final MouseDownEvent mouseDownEvent) { presenter.onMouseDown(mouseDownEvent.getClientX(), mouseDownEvent.getClientY(), mouseDownEvent.getX(), mouseDownEvent.getY()); }