@Test public void shouldCallAcceptedOnOkClicked() throws Exception { footer.handleOkClick(mock(ClickEvent.class)); verify(actionDelegate).accepted(); }
@UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); }
MessageDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } }
MessageDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  MessageDialogFooter(final @Nonnull UILocalizationConstant messages); }
MessageDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  MessageDialogFooter(final @Nonnull UILocalizationConstant messages); void setDelegate(@Nonnull ActionDelegate delegate); void setConfirmButtonText(@Nonnull String text); @UiHandler("okButton") void handleOkClick(final ClickEvent event); }
MessageDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  MessageDialogFooter(final @Nonnull UILocalizationConstant messages); void setDelegate(@Nonnull ActionDelegate delegate); void setConfirmButtonText(@Nonnull String text); @UiHandler("okButton") void handleOkClick(final ClickEvent event);  }