Class SettingsPresenter

    • Field Detail

      • DEFAULT_PREFERRED_WIDHT

        public static final int DEFAULT_PREFERRED_WIDHT
        See Also:
        Constant Field Values
      • eventBus

        protected com.google.gwt.event.shared.EventBus eventBus
      • saveCommand

        protected org.uberfire.mvp.Command saveCommand
    • Method Detail

      • setScenarioType

        public void setScenarioType​(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType,
                                    org.drools.scenariosimulation.api.model.Settings settings,
                                    String fileName)
        Specified by:
        setScenarioType in interface SettingsView.Presenter
      • setRuleSettings

        protected void setRuleSettings​(org.drools.scenariosimulation.api.model.Settings settings)
      • updateRuleSettings

        protected void updateRuleSettings​(org.drools.scenariosimulation.api.model.Settings settings)
      • setDMNSettings

        protected void setDMNSettings​(org.drools.scenariosimulation.api.model.Settings settings)
      • updateDMNSettings

        protected void updateDMNSettings​(org.drools.scenariosimulation.api.model.Settings settings)
      • setDmnErrorPath

        protected void setDmnErrorPath​(String requiredDMNFilePath)
        It sets an error message to dmnPathErrorLabel span element This method should be called in case of INVALID DMN file path.
      • validateSimulation

        protected void validateSimulation()
        It checks if a user selected DMN path is valid or not. If valid, it clears the dmnPathErrorLabel span element and it validates the whole Simulation. If not valid, the otherwise. This method should be called everytime a value is selected in SettingsScenarioSimulationDropdown widget