@Test public void onApplyButtonClicked() { errorReportPopupView.onApplyButtonClicked(mock(ClickEvent.class)); verify(applyCommandMock, times(1)).execute(); verify(errorReportPopupView, times(1)).hide(); }
@EventHandler("applyButton") public void onApplyButtonClicked(ClickEvent clickEvent) { applyCommand.execute(); hide(); }
ErrorReportPopoverView extends AbstractPopoverView implements ErrorReportPopover { @EventHandler("applyButton") public void onApplyButtonClicked(ClickEvent clickEvent) { applyCommand.execute(); hide(); } }
ErrorReportPopoverView extends AbstractPopoverView implements ErrorReportPopover { @EventHandler("applyButton") public void onApplyButtonClicked(ClickEvent clickEvent) { applyCommand.execute(); hide(); } ErrorReportPopoverView(); @Inject  ErrorReportPopoverView(final Div errorContent,
                                  final Div popoverElement,
                                  final Div popoverContainerElement,
                                  final Div popoverContentElement,
                                  final JQueryProducer.JQuery<Popover> jQueryPopover); }
ErrorReportPopoverView extends AbstractPopoverView implements ErrorReportPopover { @EventHandler("applyButton") public void onApplyButtonClicked(ClickEvent clickEvent) { applyCommand.execute(); hide(); } ErrorReportPopoverView(); @Inject  ErrorReportPopoverView(final Div errorContent,
                                  final Div popoverElement,
                                  final Div popoverContainerElement,
                                  final Div popoverContentElement,
                                  final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final String applyText,
                      final Command applyCommand,
                      final int mx,
                      final int my,
                      final Position position); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final int mx,
                      final int my,
                      final Position position); @EventHandler("keepButton") void onKeepButtonClicked(ClickEvent clickEvent); @EventHandler("applyButton") void onApplyButtonClicked(ClickEvent clickEvent); }
ErrorReportPopoverView extends AbstractPopoverView implements ErrorReportPopover { @EventHandler("applyButton") public void onApplyButtonClicked(ClickEvent clickEvent) { applyCommand.execute(); hide(); } ErrorReportPopoverView(); @Inject  ErrorReportPopoverView(final Div errorContent,
                                  final Div popoverElement,
                                  final Div popoverContainerElement,
                                  final Div popoverContentElement,
                                  final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final String applyText,
                      final Command applyCommand,
                      final int mx,
                      final int my,
                      final Position position); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final int mx,
                      final int my,
                      final Position position); @EventHandler("keepButton") void onKeepButtonClicked(ClickEvent clickEvent); @EventHandler("applyButton") void onApplyButtonClicked(ClickEvent clickEvent);  }