@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(); }
InputDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } }
InputDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  InputDialogFooter(final @Nonnull UILocalizationConstant messages); }
InputDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  InputDialogFooter(final @Nonnull UILocalizationConstant messages); void setDelegate(final ActionDelegate delegate); @UiHandler("okButton") void handleOkClick(final ClickEvent event); @UiHandler("cancelButton") void handleCancelClick(final ClickEvent event); }
InputDialogFooter extends Composite { @UiHandler("okButton") public void handleOkClick(final ClickEvent event) { this.actionDelegate.accepted(); } @Inject  InputDialogFooter(final @Nonnull UILocalizationConstant messages); void setDelegate(final ActionDelegate delegate); @UiHandler("okButton") void handleOkClick(final ClickEvent event); @UiHandler("cancelButton") void handleCancelClick(final ClickEvent event);  }