@Test public void testSetupAccordionWidget() { final VerticalPanel defaultPanel = mock(VerticalPanel.class); final GuidedDecisionTableAccordionItem.Type accordionType = METADATA; final Consumer<VerticalPanel> setWidget = (panel) -> assertEquals(panel, defaultPanel); doReturn(defaultPanel).when(presenter).makeDefaultPanel(); presenter.setupAccordionWidget(accordionType, setWidget); verify(accordion).addItem(accordionType, defaultPanel); }
void setupAccordionWidget(final GuidedDecisionTableAccordionItem.Type accordionType, final Consumer<VerticalPanel> setWidget) { final VerticalPanel defaultPanel = makeDefaultPanel(); setWidget.accept(defaultPanel); accordion.addItem(accordionType, defaultPanel); }
ColumnsPagePresenter { void setupAccordionWidget(final GuidedDecisionTableAccordionItem.Type accordionType, final Consumer<VerticalPanel> setWidget) { final VerticalPanel defaultPanel = makeDefaultPanel(); setWidget.accept(defaultPanel); accordion.addItem(accordionType, defaultPanel); } }
ColumnsPagePresenter { void setupAccordionWidget(final GuidedDecisionTableAccordionItem.Type accordionType, final Consumer<VerticalPanel> setWidget) { final VerticalPanel defaultPanel = makeDefaultPanel(); setWidget.accept(defaultPanel); accordion.addItem(accordionType, defaultPanel); } @Inject  ColumnsPagePresenter(final View view,
                                final GuidedDecisionTableAccordion accordion,
                                final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance,
                                final TranslationService translationService,
                                final ManagedInstance<DeleteColumnManagementAnchorWidget> deleteColumnManagementAnchorWidgets,
                                final ManagedInstance<AttributeColumnConfigRow> attributeColumnConfigRow,
                                final ColumnManagementView conditionsPanel,
                                final ColumnManagementView actionsPanel,
                                final ShowRuleNameOptionPresenter showRuleNameOptionPresenter); }
ColumnsPagePresenter { void setupAccordionWidget(final GuidedDecisionTableAccordionItem.Type accordionType, final Consumer<VerticalPanel> setWidget) { final VerticalPanel defaultPanel = makeDefaultPanel(); setWidget.accept(defaultPanel); accordion.addItem(accordionType, defaultPanel); } @Inject  ColumnsPagePresenter(final View view,
                                final GuidedDecisionTableAccordion accordion,
                                final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance,
                                final TranslationService translationService,
                                final ManagedInstance<DeleteColumnManagementAnchorWidget> deleteColumnManagementAnchorWidgets,
                                final ManagedInstance<AttributeColumnConfigRow> attributeColumnConfigRow,
                                final ColumnManagementView conditionsPanel,
                                final ColumnManagementView actionsPanel,
                                final ShowRuleNameOptionPresenter showRuleNameOptionPresenter); @PostConstruct void setup(); View getView(); void init(final GuidedDecisionTableModellerView.Presenter modeller); void onUpdatedLockStatusEvent(final @Observes UpdatedLockStatusEvent event); void onRefreshAttributesPanelEvent(final @Observes RefreshAttributesPanelEvent event); void onRefreshMetaDataPanelEvent(final @Observes RefreshMetaDataPanelEvent event); void onRefreshConditionsPanelEvent(final @Observes RefreshConditionsPanelEvent event); void onRefreshActionsPanelEvent(final @Observes RefreshActionsPanelEvent event); GuidedDecisionTableAccordion getAccordion(); void onDecisionTableSelected(final @Observes DecisionTableSelectedEvent event); void refresh(); }
ColumnsPagePresenter { void setupAccordionWidget(final GuidedDecisionTableAccordionItem.Type accordionType, final Consumer<VerticalPanel> setWidget) { final VerticalPanel defaultPanel = makeDefaultPanel(); setWidget.accept(defaultPanel); accordion.addItem(accordionType, defaultPanel); } @Inject  ColumnsPagePresenter(final View view,
                                final GuidedDecisionTableAccordion accordion,
                                final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance,
                                final TranslationService translationService,
                                final ManagedInstance<DeleteColumnManagementAnchorWidget> deleteColumnManagementAnchorWidgets,
                                final ManagedInstance<AttributeColumnConfigRow> attributeColumnConfigRow,
                                final ColumnManagementView conditionsPanel,
                                final ColumnManagementView actionsPanel,
                                final ShowRuleNameOptionPresenter showRuleNameOptionPresenter); @PostConstruct void setup(); View getView(); void init(final GuidedDecisionTableModellerView.Presenter modeller); void onUpdatedLockStatusEvent(final @Observes UpdatedLockStatusEvent event); void onRefreshAttributesPanelEvent(final @Observes RefreshAttributesPanelEvent event); void onRefreshMetaDataPanelEvent(final @Observes RefreshMetaDataPanelEvent event); void onRefreshConditionsPanelEvent(final @Observes RefreshConditionsPanelEvent event); void onRefreshActionsPanelEvent(final @Observes RefreshActionsPanelEvent event); GuidedDecisionTableAccordion getAccordion(); void onDecisionTableSelected(final @Observes DecisionTableSelectedEvent event); void refresh();  }