@Test public void setDMNSettings() { settingsPresenterSpy.setDMNSettings(settingsSpy); verify(ruleSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(dmnSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.INLINE)); verify(dmnNameMock, times(1)).setValue(eq(DMN_NAME)); verify(dmnNamespaceMock, times(1)).setValue(eq(DMN_NAMESPACE)); verify(dmnFilePathErrorLabelStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(dmnFilePathErrorLabelMock, times(1)).setInnerText(eq("")); verify(settingsScenarioSimulationDropdownMock, times(1)).registerOnMissingValueHandler(isA(Command.class)); verify(settingsScenarioSimulationDropdownMock, times(1)).registerOnChangeHandler(isA(Command.class)); verify(settingsScenarioSimulationDropdownMock, times(1)).loadAssets(eq(DMN_FILE_PATH)); }
protected void setDMNSettings(Settings settings) { view.getRuleSettings().getStyle().setDisplay(Style.Display.NONE); view.getDmnSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmnName().setValue(Optional.ofNullable(settings.getDmnName()).orElse("")); view.getDmnNamespace().setValue(Optional.ofNullable(settings.getDmnNamespace()).orElse("")); view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.NONE); view.getDmnFilePathErrorLabel().setInnerText(""); settingsScenarioSimulationDropdown.registerOnMissingValueHandler(this::setDmnErrorPath); settingsScenarioSimulationDropdown.registerOnChangeHandler(this::validateSimulation); settingsScenarioSimulationDropdown.loadAssets(settings.getDmnFilePath()); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setDMNSettings(Settings settings) { view.getRuleSettings().getStyle().setDisplay(Style.Display.NONE); view.getDmnSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmnName().setValue(Optional.ofNullable(settings.getDmnName()).orElse("")); view.getDmnNamespace().setValue(Optional.ofNullable(settings.getDmnNamespace()).orElse("")); view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.NONE); view.getDmnFilePathErrorLabel().setInnerText(""); settingsScenarioSimulationDropdown.registerOnMissingValueHandler(this::setDmnErrorPath); settingsScenarioSimulationDropdown.registerOnChangeHandler(this::validateSimulation); settingsScenarioSimulationDropdown.loadAssets(settings.getDmnFilePath()); } }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setDMNSettings(Settings settings) { view.getRuleSettings().getStyle().setDisplay(Style.Display.NONE); view.getDmnSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmnName().setValue(Optional.ofNullable(settings.getDmnName()).orElse("")); view.getDmnNamespace().setValue(Optional.ofNullable(settings.getDmnNamespace()).orElse("")); view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.NONE); view.getDmnFilePathErrorLabel().setInnerText(""); settingsScenarioSimulationDropdown.registerOnMissingValueHandler(this::setDmnErrorPath); settingsScenarioSimulationDropdown.registerOnChangeHandler(this::validateSimulation); settingsScenarioSimulationDropdown.loadAssets(settings.getDmnFilePath()); } SettingsPresenter(); @Inject  SettingsPresenter(@Named(SettingsScenarioSimulationDropdown.BEAN_NAME) SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
                             SettingsView view); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setDMNSettings(Settings settings) { view.getRuleSettings().getStyle().setDisplay(Style.Display.NONE); view.getDmnSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmnName().setValue(Optional.ofNullable(settings.getDmnName()).orElse("")); view.getDmnNamespace().setValue(Optional.ofNullable(settings.getDmnNamespace()).orElse("")); view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.NONE); view.getDmnFilePathErrorLabel().setInnerText(""); settingsScenarioSimulationDropdown.registerOnMissingValueHandler(this::setDmnErrorPath); settingsScenarioSimulationDropdown.registerOnChangeHandler(this::validateSimulation); settingsScenarioSimulationDropdown.loadAssets(settings.getDmnFilePath()); } SettingsPresenter(); @Inject  SettingsPresenter(@Named(SettingsScenarioSimulationDropdown.BEAN_NAME) SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
                             SettingsView view); @PostConstruct void init(); @Override void setScenarioType(ScenarioSimulationModel.Type scenarioType, Settings settings, String fileName); @Override void reset(); @Override void setEventBus(EventBus eventBus); SettingsView getView(); @Override void syncDmoSession(); @Override void syncRuleFlowGroup(); @Override void syncStateless(); @Override void syncDmnFilePath(); @Override void syncSkipFromBuild(); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setDMNSettings(Settings settings) { view.getRuleSettings().getStyle().setDisplay(Style.Display.NONE); view.getDmnSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmnName().setValue(Optional.ofNullable(settings.getDmnName()).orElse("")); view.getDmnNamespace().setValue(Optional.ofNullable(settings.getDmnNamespace()).orElse("")); view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.NONE); view.getDmnFilePathErrorLabel().setInnerText(""); settingsScenarioSimulationDropdown.registerOnMissingValueHandler(this::setDmnErrorPath); settingsScenarioSimulationDropdown.registerOnChangeHandler(this::validateSimulation); settingsScenarioSimulationDropdown.loadAssets(settings.getDmnFilePath()); } SettingsPresenter(); @Inject  SettingsPresenter(@Named(SettingsScenarioSimulationDropdown.BEAN_NAME) SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
                             SettingsView view); @PostConstruct void init(); @Override void setScenarioType(ScenarioSimulationModel.Type scenarioType, Settings settings, String fileName); @Override void reset(); @Override void setEventBus(EventBus eventBus); SettingsView getView(); @Override void syncDmoSession(); @Override void syncRuleFlowGroup(); @Override void syncStateless(); @Override void syncDmnFilePath(); @Override void syncSkipFromBuild(); static final int DEFAULT_PREFERRED_WIDHT; static final String IDENTIFIER; }