@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, setupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCurrentlyShow, setCurrentPathpublic 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.Presenterpublic void reset()
SubDockView.PresenterSubDock componentreset in interface SubDockView.Presenterpublic void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
setEventBus in interface SettingsView.Presenterpublic 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.Presenterpublic void syncRuleFlowGroup()
syncRuleFlowGroup in interface SettingsView.Presenterpublic void syncStateless()
syncStateless in interface SettingsView.Presenterpublic void syncDmnFilePath()
syncDmnFilePath in interface SettingsView.Presenterpublic void syncSkipFromBuild()
syncSkipFromBuild in interface SettingsView.Presenterprotected 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.