@Test public void testInitPresenter() { view.init(presenter); assertEquals(view.presenter, presenter); }
@PostConstruct void init() { copyToClipboardButton.setType(Button.ButtonType.BUTTON); copyToClipboardButton.setButtonStyleType(Button.ButtonStyleType.DEFAULT); copyToClipboardButton.addIcon("fa", "fa-clipboard"); copyToClipboardButton.setClickHandler(this::onCopyToClipboardClick); copyToClipboardButton.getElement().title = translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CopyToClipboardActionTitle); messagesTable.getRightActionsToolbar().add(buildWrapperWidget(copyToClipboardButton.getElement())); okButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_OkAction)); okButton.setClickHandler(this::onOkButtonClick); cancelButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CancelAction)); cancelButton.setClickHandler(this::onHide); initTable(); }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { @PostConstruct void init() { copyToClipboardButton.setType(Button.ButtonType.BUTTON); copyToClipboardButton.setButtonStyleType(Button.ButtonStyleType.DEFAULT); copyToClipboardButton.addIcon("fa", "fa-clipboard"); copyToClipboardButton.setClickHandler(this::onCopyToClipboardClick); copyToClipboardButton.getElement().title = translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CopyToClipboardActionTitle); messagesTable.getRightActionsToolbar().add(buildWrapperWidget(copyToClipboardButton.getElement())); okButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_OkAction)); okButton.setClickHandler(this::onOkButtonClick); cancelButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CancelAction)); cancelButton.setClickHandler(this::onHide); initTable(); } }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { @PostConstruct void init() { copyToClipboardButton.setType(Button.ButtonType.BUTTON); copyToClipboardButton.setButtonStyleType(Button.ButtonStyleType.DEFAULT); copyToClipboardButton.addIcon("fa", "fa-clipboard"); copyToClipboardButton.setClickHandler(this::onCopyToClipboardClick); copyToClipboardButton.getElement().title = translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CopyToClipboardActionTitle); messagesTable.getRightActionsToolbar().add(buildWrapperWidget(copyToClipboardButton.getElement())); okButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_OkAction)); okButton.setClickHandler(this::onOkButtonClick); cancelButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CancelAction)); cancelButton.setClickHandler(this::onHide); initTable(); }  }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { @PostConstruct void init() { copyToClipboardButton.setType(Button.ButtonType.BUTTON); copyToClipboardButton.setButtonStyleType(Button.ButtonStyleType.DEFAULT); copyToClipboardButton.addIcon("fa", "fa-clipboard"); copyToClipboardButton.setClickHandler(this::onCopyToClipboardClick); copyToClipboardButton.getElement().title = translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CopyToClipboardActionTitle); messagesTable.getRightActionsToolbar().add(buildWrapperWidget(copyToClipboardButton.getElement())); okButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_OkAction)); okButton.setClickHandler(this::onOkButtonClick); cancelButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CancelAction)); cancelButton.setClickHandler(this::onHide); initTable(); }  @Override void init(MarshallingResponsePopup presenter); @Override void setTitle(String title); @Override void setInlineNotification(String notificationMessage, InlineNotification.InlineNotificationType notificationType); @Override void setOkActionLabel(String okActionLabel); @Override void setOkActionEnabled(boolean enabled); @Override ListDataProvider<MarshallingResponsePopup.Row> getMessagesTableProvider(); @Override void show(Command okCommand); @Override void copyToClipboard(String text); }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { @PostConstruct void init() { copyToClipboardButton.setType(Button.ButtonType.BUTTON); copyToClipboardButton.setButtonStyleType(Button.ButtonStyleType.DEFAULT); copyToClipboardButton.addIcon("fa", "fa-clipboard"); copyToClipboardButton.setClickHandler(this::onCopyToClipboardClick); copyToClipboardButton.getElement().title = translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CopyToClipboardActionTitle); messagesTable.getRightActionsToolbar().add(buildWrapperWidget(copyToClipboardButton.getElement())); okButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_OkAction)); okButton.setClickHandler(this::onOkButtonClick); cancelButton.setText(translationService.getValue(StunnerWidgetsConstants.MarshallingResponsePopup_CancelAction)); cancelButton.setClickHandler(this::onHide); initTable(); }  @Override void init(MarshallingResponsePopup presenter); @Override void setTitle(String title); @Override void setInlineNotification(String notificationMessage, InlineNotification.InlineNotificationType notificationType); @Override void setOkActionLabel(String okActionLabel); @Override void setOkActionEnabled(boolean enabled); @Override ListDataProvider<MarshallingResponsePopup.Row> getMessagesTableProvider(); @Override void show(Command okCommand); @Override void copyToClipboard(String text);  }