Class SettingsScenarioSimulationDropdown
- java.lang.Object
-
- org.kie.workbench.common.widgets.client.assets.dropdown.AbstractKieAssetsDropdown
-
- org.drools.workbench.screens.scenariosimulation.client.dropdown.ScenarioSimulationDropdown
-
- org.drools.workbench.screens.scenariosimulation.client.dropdown.SettingsScenarioSimulationDropdown
-
- All Implemented Interfaces:
org.kie.workbench.common.widgets.client.assets.dropdown.KieAssetsDropdown
@Dependent @Named("SettingsDropdown") public class SettingsScenarioSimulationDropdown extends ScenarioSimulationDropdown
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_NAMEprotected StringcurrentValueprotected org.uberfire.mvp.CommandonMissingValueHandler
-
Constructor Summary
Constructors Constructor Description SettingsScenarioSimulationDropdown(SettingsScenarioSimulationDropdownView view, ScenarioSimulationAssetsDropdownProvider dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassetListConsumerMethod(List<org.kie.workbench.common.widgets.client.assets.dropdown.KieAssetsDropdownItem> assetList)protected booleanisValuePresentInKieAssets(String value)It navigate over the kieAssets list to check if a value is present.voidloadAssets(String currentValue)It loads the DMN assets and it sets currentValue variable.voidregisterOnMissingValueHandler(org.uberfire.mvp.Command onMissingValueHandler)-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.dropdown.ScenarioSimulationDropdown
asWidget
-
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
- See Also:
- Constant Field Values
-
currentValue
protected String currentValue
-
onMissingValueHandler
protected org.uberfire.mvp.Command onMissingValueHandler
-
-
Constructor Detail
-
SettingsScenarioSimulationDropdown
@Inject public SettingsScenarioSimulationDropdown(@Named("SettingsDropdownView") SettingsScenarioSimulationDropdownView view, ScenarioSimulationAssetsDropdownProvider dataProvider)
-
-
Method Detail
-
loadAssets
public void loadAssets(String currentValue)
It loads the DMN assets and it sets currentValue variable.- Parameters:
currentValue-
-
registerOnMissingValueHandler
public void registerOnMissingValueHandler(org.uberfire.mvp.Command onMissingValueHandler)
-
assetListConsumerMethod
protected void assetListConsumerMethod(List<org.kie.workbench.common.widgets.client.assets.dropdown.KieAssetsDropdownItem> assetList)
- Overrides:
assetListConsumerMethodin classorg.kie.workbench.common.widgets.client.assets.dropdown.AbstractKieAssetsDropdown
-
isValuePresentInKieAssets
protected boolean isValuePresentInKieAssets(String value)
It navigate over the kieAssets list to check if a value is present.- Parameters:
value-- Returns:
-
-