@ApplicationScoped public class SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PREFERRED_WIDHT |
protected com.google.gwt.event.shared.EventBus |
eventBus |
static String |
IDENTIFIER |
protected org.uberfire.mvp.Command |
saveCommand |
protected org.drools.scenariosimulation.api.model.Settings |
settings |
protected SettingsScenarioSimulationDropdown |
settingsScenarioSimulationDropdown |
currentPath, title, view
Constructor and Description |
---|
SettingsPresenter() |
SettingsPresenter(SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
SettingsView view) |
Modifier and Type | Method and Description |
---|---|
SettingsView |
getView() |
void |
init() |
void |
reset()
It resets the current status of the
SubDock component |
protected void |
setDmnErrorPath()
It sets an error message to
dmnPathErrorLabel span element
This method should be called in case of INVALID DMN file path. |
protected void |
setDMNSettings(org.drools.scenariosimulation.api.model.Settings settings) |
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
protected void |
setRuleSettings(org.drools.scenariosimulation.api.model.Settings settings) |
void |
setScenarioType(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType,
org.drools.scenariosimulation.api.model.Settings settings,
String fileName) |
void |
syncDmnFilePath() |
void |
syncDmoSession() |
void |
syncRuleFlowGroup() |
void |
syncSkipFromBuild() |
void |
syncStateless() |
protected void |
validateSimulation()
It checks if a user selected DMN path is valid or not.
|
asWidget, getDefaultPosition, getTitle, isCurrentlyShow, setCurrentPath, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCurrentlyShow, setCurrentPath
public static final int DEFAULT_PREFERRED_WIDHT
public static final String IDENTIFIER
protected com.google.gwt.event.shared.EventBus eventBus
protected org.drools.scenariosimulation.api.model.Settings settings
protected org.uberfire.mvp.Command saveCommand
protected SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown
public SettingsPresenter()
@Inject public SettingsPresenter(@Named(value="SettingsDropdown") SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown, SettingsView view)
@PostConstruct public void init()
public void setScenarioType(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType, org.drools.scenariosimulation.api.model.Settings settings, String fileName)
setScenarioType
in interface SettingsView.Presenter
public void reset()
SubDockView.Presenter
SubDock
componentreset
in interface SubDockView.Presenter
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
setEventBus
in interface SettingsView.Presenter
public SettingsView getView()
protected void setRuleSettings(org.drools.scenariosimulation.api.model.Settings settings)
protected void setDMNSettings(org.drools.scenariosimulation.api.model.Settings settings)
public void syncDmoSession()
syncDmoSession
in interface SettingsView.Presenter
public void syncRuleFlowGroup()
syncRuleFlowGroup
in interface SettingsView.Presenter
public void syncStateless()
syncStateless
in interface SettingsView.Presenter
public void syncDmnFilePath()
syncDmnFilePath
in interface SettingsView.Presenter
public void syncSkipFromBuild()
syncSkipFromBuild
in interface SettingsView.Presenter
protected void setDmnErrorPath()
dmnPathErrorLabel
span element
This method should be called in case of INVALID DMN file path.protected void validateSimulation()
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
widgetCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.