Class SettingsPresenter
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.rightpanel.AbstractSubDockPresenter<SettingsView>
-
- org.drools.workbench.screens.scenariosimulation.client.rightpanel.SettingsPresenter
-
- All Implemented Interfaces:
SettingsView.Presenter,SubDockView.Presenter
@ApplicationScoped public class SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PREFERRED_WIDHTprotected com.google.gwt.event.shared.EventBuseventBusstatic StringIDENTIFIERprotected org.uberfire.mvp.CommandsaveCommandprotected SettingsScenarioSimulationDropdownsettingsScenarioSimulationDropdown-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.rightpanel.AbstractSubDockPresenter
currentPath, title, view
-
-
Constructor Summary
Constructors Constructor Description SettingsPresenter()SettingsPresenter(SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown, SettingsView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SettingsViewgetView()voidinit()voidreset()It resets the current status of theSubDockcomponentprotected voidsetDmnErrorPath(String requiredDMNFilePath)It sets an error message todmnPathErrorLabelspan element This method should be called in case of INVALID DMN file path.protected voidsetDMNSettings(org.drools.scenariosimulation.api.model.Settings settings)voidsetEventBus(com.google.gwt.event.shared.EventBus eventBus)protected voidsetRuleSettings(org.drools.scenariosimulation.api.model.Settings settings)voidsetScenarioType(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType, org.drools.scenariosimulation.api.model.Settings settings, String fileName)voidsyncDmnFilePath()voidsyncDmoSession()voidsyncRuleFlowGroup()voidsyncSkipFromBuild()voidsyncStateless()protected voidupdateDMNSettings(org.drools.scenariosimulation.api.model.Settings settings)protected voidupdateRuleSettings(org.drools.scenariosimulation.api.model.Settings settings)voidupdateSettingsData(org.drools.scenariosimulation.api.model.Settings settings)protected voidvalidateSimulation()It checks if a user selected DMN path is valid or not.-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.rightpanel.AbstractSubDockPresenter
asWidget, getDefaultPosition, getTitle, isCurrentlyShow, setCurrentPath, setup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.client.rightpanel.SubDockView.Presenter
isCurrentlyShow, setCurrentPath
-
-
-
-
Field Detail
-
DEFAULT_PREFERRED_WIDHT
public static final int DEFAULT_PREFERRED_WIDHT
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
eventBus
protected com.google.gwt.event.shared.EventBus eventBus
-
saveCommand
protected org.uberfire.mvp.Command saveCommand
-
settingsScenarioSimulationDropdown
protected SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown
-
-
Constructor Detail
-
SettingsPresenter
public SettingsPresenter()
-
SettingsPresenter
@Inject public SettingsPresenter(@Named("SettingsDropdown") SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown, SettingsView view)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
setScenarioType
public void setScenarioType(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType, org.drools.scenariosimulation.api.model.Settings settings, String fileName)- Specified by:
setScenarioTypein interfaceSettingsView.Presenter
-
reset
public void reset()
Description copied from interface:SubDockView.PresenterIt resets the current status of theSubDockcomponent- Specified by:
resetin interfaceSubDockView.Presenter
-
setEventBus
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
- Specified by:
setEventBusin interfaceSettingsView.Presenter
-
getView
public SettingsView getView()
-
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)
-
syncDmoSession
public void syncDmoSession()
- Specified by:
syncDmoSessionin interfaceSettingsView.Presenter
-
syncRuleFlowGroup
public void syncRuleFlowGroup()
- Specified by:
syncRuleFlowGroupin interfaceSettingsView.Presenter
-
syncStateless
public void syncStateless()
- Specified by:
syncStatelessin interfaceSettingsView.Presenter
-
syncDmnFilePath
public void syncDmnFilePath()
- Specified by:
syncDmnFilePathin interfaceSettingsView.Presenter
-
syncSkipFromBuild
public void syncSkipFromBuild()
- Specified by:
syncSkipFromBuildin interfaceSettingsView.Presenter
-
updateSettingsData
public void updateSettingsData(org.drools.scenariosimulation.api.model.Settings settings)
- Specified by:
updateSettingsDatain interfaceSettingsView.Presenter
-
setDmnErrorPath
protected void setDmnErrorPath(String requiredDMNFilePath)
It sets an error message todmnPathErrorLabelspan 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 thedmnPathErrorLabelspan element and it validates the whole Simulation. If not valid, the otherwise. This method should be called everytime a value is selected inwidgetSettingsScenarioSimulationDropdown
-
-