@Test public void testInitPopovers() throws Exception { view.initPopovers(); verify(input, times(1)).setAttribute("type", "textbox"); verify(input, times(4)).setAttribute("class", "form-control"); verify(input, times(3)).setAttribute("type", "checkbox"); verify(input, times(4)).setAttribute("data-toggle", "popover"); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(HEADER_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(HIDE_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(UPDATE_ENGINE_TRANSLATION)); verify(popoverUtils).setupAndRegisterPopover(eq(input), eq(LOGICALLY_INSERT_TRANSLATION)); }
@PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control"); popoverUtils.setupAndRegisterPopover(header, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HeaderColumnDescription)); popoverUtils.setupAndRegisterPopover(hideColumn, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HideColumnDescription)); popoverUtils.setupAndRegisterPopover(logicallyInsert, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_LogicalInsertDescription)); popoverUtils.setupAndRegisterPopover(updateEngineWithChanges, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_UpdateEngineDescription)); }
AdditionalInfoPageView implements IsElement,
                                               AdditionalInfoPage.View { @PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control"); popoverUtils.setupAndRegisterPopover(header, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HeaderColumnDescription)); popoverUtils.setupAndRegisterPopover(hideColumn, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HideColumnDescription)); popoverUtils.setupAndRegisterPopover(logicallyInsert, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_LogicalInsertDescription)); popoverUtils.setupAndRegisterPopover(updateEngineWithChanges, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_UpdateEngineDescription)); } }
AdditionalInfoPageView implements IsElement,
                                               AdditionalInfoPage.View { @PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control"); popoverUtils.setupAndRegisterPopover(header, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HeaderColumnDescription)); popoverUtils.setupAndRegisterPopover(hideColumn, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HideColumnDescription)); popoverUtils.setupAndRegisterPopover(logicallyInsert, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_LogicalInsertDescription)); popoverUtils.setupAndRegisterPopover(updateEngineWithChanges, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_UpdateEngineDescription)); } AdditionalInfoPageView(); @Inject  AdditionalInfoPageView(final TranslationService translationService,
                                  final DecisionTablePopoverUtils popoverUtils,
                                  final Input header,
                                  final Div headerFormItem,
                                  final Input hideColumn,
                                  final Input updateEngineWithChanges,
                                  final Input logicallyInsert); }
AdditionalInfoPageView implements IsElement,
                                               AdditionalInfoPage.View { @PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control"); popoverUtils.setupAndRegisterPopover(header, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HeaderColumnDescription)); popoverUtils.setupAndRegisterPopover(hideColumn, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HideColumnDescription)); popoverUtils.setupAndRegisterPopover(logicallyInsert, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_LogicalInsertDescription)); popoverUtils.setupAndRegisterPopover(updateEngineWithChanges, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_UpdateEngineDescription)); } AdditionalInfoPageView(); @Inject  AdditionalInfoPageView(final TranslationService translationService,
                                  final DecisionTablePopoverUtils popoverUtils,
                                  final Input header,
                                  final Div headerFormItem,
                                  final Input hideColumn,
                                  final Input updateEngineWithChanges,
                                  final Input logicallyInsert); @PostConstruct void initPopovers(); @EventHandler("header") void onSelectHeader(final KeyUpEvent event); @EventHandler("hideColumn") void onSelectHideColumn(final ChangeEvent event); @EventHandler("logicallyInsert") void onSelectLogicallyInsert(final ChangeEvent event); @EventHandler("updateEngineWithChanges") void onSelectUpdateEngineWithChanges(final ChangeEvent event); @Override void init(final AdditionalInfoPage page); @Override void showHideColumn(final boolean isHidden); @Override void showHeader(); @Override void showLogicallyInsert(final boolean isLogicallyInsert); @Override void showUpdateEngineWithChanges(final boolean isUpdateEngine); @Override void showWarning(String message); @Override void hideWarning(); @Override void clear(); }
AdditionalInfoPageView implements IsElement,
                                               AdditionalInfoPage.View { @PostConstruct public void initPopovers() { header.setAttribute("type", "textbox"); header.setAttribute("data-toggle", "popover"); header.setAttribute("class", "form-control"); hideColumn.setAttribute("type", "checkbox"); hideColumn.setAttribute("data-toggle", "popover"); hideColumn.setAttribute("class", "form-control"); logicallyInsert.setAttribute("type", "checkbox"); logicallyInsert.setAttribute("data-toggle", "popover"); logicallyInsert.setAttribute("class", "form-control"); updateEngineWithChanges.setAttribute("type", "checkbox"); updateEngineWithChanges.setAttribute("data-toggle", "popover"); updateEngineWithChanges.setAttribute("class", "form-control"); popoverUtils.setupAndRegisterPopover(header, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HeaderColumnDescription)); popoverUtils.setupAndRegisterPopover(hideColumn, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_HideColumnDescription)); popoverUtils.setupAndRegisterPopover(logicallyInsert, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_LogicalInsertDescription)); popoverUtils.setupAndRegisterPopover(updateEngineWithChanges, translate(GuidedDecisionTableErraiConstants.AdditionalInfoPage_UpdateEngineDescription)); } AdditionalInfoPageView(); @Inject  AdditionalInfoPageView(final TranslationService translationService,
                                  final DecisionTablePopoverUtils popoverUtils,
                                  final Input header,
                                  final Div headerFormItem,
                                  final Input hideColumn,
                                  final Input updateEngineWithChanges,
                                  final Input logicallyInsert); @PostConstruct void initPopovers(); @EventHandler("header") void onSelectHeader(final KeyUpEvent event); @EventHandler("hideColumn") void onSelectHideColumn(final ChangeEvent event); @EventHandler("logicallyInsert") void onSelectLogicallyInsert(final ChangeEvent event); @EventHandler("updateEngineWithChanges") void onSelectUpdateEngineWithChanges(final ChangeEvent event); @Override void init(final AdditionalInfoPage page); @Override void showHideColumn(final boolean isHidden); @Override void showHeader(); @Override void showLogicallyInsert(final boolean isLogicallyInsert); @Override void showUpdateEngineWithChanges(final boolean isUpdateEngine); @Override void showWarning(String message); @Override void hideWarning(); @Override void clear();  }