public abstract class AbstractDataManagementStrategy extends Object implements DataManagementStrategy
| Modifier and Type | Field and Description |
|---|---|
protected ScenarioSimulationModel |
model |
SIMPLE_CLASSES_MAP| Constructor and Description |
|---|
AbstractDataManagementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getPropertiesToHide(ScenarioGridColumn selectedColumn,
ScenarioGridModel scenarioGridModel)
This method returns a
List with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel for the selected column. |
protected Map<String,List<String>> |
getPropertiesToHide(ScenarioGridModel scenarioGridModel)
This method returns a
Map with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel. |
protected static FactModelTree |
getSimpleClassFactModelTree(Class clazz) |
void |
setModel(ScenarioSimulationModel model) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisADataType, manageScenarioSimulationModelContent, populateRightPanelprotected ScenarioSimulationModel model
public void setModel(ScenarioSimulationModel model)
setModel in interface DataManagementStrategyprotected static FactModelTree getSimpleClassFactModelTree(Class clazz)
protected Map<String,List<String>> getPropertiesToHide(ScenarioGridModel scenarioGridModel)
Map with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel.
key: the name of the Fact class (ex. Author), value: list of properties to hide from right panel
If click happen on an already assigned property, all all the properties of given type should be shown;
if, instead, click is on an unassigned property, the already assigned properties must be hidden.
(e.g. inside GIVEN there is an "Author" group; if clicking on "books" property header, the value of the Map returned by this method is an empty List;
if click is on an unassigned property column, the value of the Map returned by this method is a List.
with all the already assigned Author's properties)scenarioGridModel - protected List<String> getPropertiesToHide(ScenarioGridColumn selectedColumn, ScenarioGridModel scenarioGridModel)
List with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel for the selected column.
If click happen on an already assigned property, all all the properties of given type should be shown;
if, instead, click is on an unassigned property, the already assigned properties must be hidden.
(e.g. inside GIVEN there is an "Author" group; if clicking on "books" property header, this method returns an empty List;
if click is on an unassigned property column, this method returns a List.
with all the already assigned Author's properties)
selectedColumn - scenarioGridModel - Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.