@ApplicationScoped public class SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PREFERRED_WIDHT |
static String |
IDENTIFIER |
protected org.uberfire.mvp.Command |
saveCommand |
protected SettingsScenarioSimulationDropdown |
settingsScenarioSimulationDropdown |
protected org.drools.scenariosimulation.api.model.SimulationDescriptor |
simulationDescriptor |
currentPath, title, view| Constructor and Description |
|---|
SettingsPresenter() |
SettingsPresenter(SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
SettingsView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
onSaveButton(String scenarioType) |
void |
reset()
It resets the current status of the
SubDock component |
protected void |
saveDMNSettings() |
protected void |
saveRuleSettings() |
protected void |
setDmnErrorPath()
It sets an error message to
dmnPathErrorLabel span element and it disables the saveButton
This method should be called in case of INVALID DMN file path. |
protected void |
setDMNSettings(org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor) |
protected void |
setRuleSettings(org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor) |
void |
setSaveCommand(org.uberfire.mvp.Command saveCommand) |
void |
setScenarioType(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type scenarioType,
org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor,
String fileName) |
protected void |
validateDmnPath()
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 org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor
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.SimulationDescriptor simulationDescriptor,
String fileName)
setScenarioType in interface SettingsView.Presenterpublic void setSaveCommand(org.uberfire.mvp.Command saveCommand)
setSaveCommand in interface SettingsView.Presenterpublic void onSaveButton(String scenarioType)
onSaveButton in interface SettingsView.Presenterpublic void reset()
SubDockView.PresenterSubDock componentreset in interface SubDockView.Presenterprotected void setRuleSettings(org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor)
protected void setDMNSettings(org.drools.scenariosimulation.api.model.SimulationDescriptor simulationDescriptor)
protected void saveRuleSettings()
protected void saveDMNSettings()
protected void setDmnErrorPath()
dmnPathErrorLabel span element and it disables the saveButton
This method should be called in case of INVALID DMN file path.protected void validateDmnPath()
saveButton
and it clears the dmnPathErrorLabel span element. If not valid, the otherwise.
This method should be called everytime a value is selected in SettingsScenarioSimulationDropdown widgetCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.