Class SetHeaderCellValueCommand
- java.lang.Object
-
- org.kie.workbench.common.command.client.AbstractCommand<ScenarioSimulationContext,ScenarioSimulationViolation>
-
- org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationCommand
-
- org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationUndoableCommand<ScenarioSimulationContext.Status>
-
- org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioGridCommand
-
- org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetHeaderCellValueCommand
-
- All Implemented Interfaces:
org.kie.workbench.common.command.client.Command<ScenarioSimulationContext,ScenarioSimulationViolation>
public class SetHeaderCellValueCommand extends AbstractScenarioGridCommand
Commandto to set the value of a header' cell
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisInstanceHeaderprotected booleanisPropertyHeader-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioGridCommand
gridWidget
-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationUndoableCommand
restorableStatus
-
-
Constructor Summary
Constructors Constructor Description SetHeaderCellValueCommand(GridWidget gridWidget, boolean isInstanceHeader, boolean isPropertyHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinternalExecute(ScenarioSimulationContext context)protected booleanrecursivelyFindIsPropertyType(ScenarioSimulationContext context, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> propertyNameElements)protected voidvalidateInstanceHeader(ScenarioSimulationContext context, String headerCellValue, int columnIndex)protected voidvalidatePropertyHeader(ScenarioSimulationContext context, String headerCellValue, int columnIndex)-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioGridCommand
commonUndoRedoPreExecution, getFactIdentifierByColumnTitle, getScenarioGridColumnLocal, setCurrentContext, setRestorableStatusPreExecution
-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationUndoableCommand
execute, redo, undo
-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationCommand
commonExecution, getId
-
-
-
-
Constructor Detail
-
SetHeaderCellValueCommand
public SetHeaderCellValueCommand(GridWidget gridWidget, boolean isInstanceHeader, boolean isPropertyHeader)
-
-
Method Detail
-
internalExecute
protected void internalExecute(ScenarioSimulationContext context)
- Specified by:
internalExecutein classAbstractScenarioSimulationCommand
-
validateInstanceHeader
protected void validateInstanceHeader(ScenarioSimulationContext context, String headerCellValue, int columnIndex)
-
validatePropertyHeader
protected void validatePropertyHeader(ScenarioSimulationContext context, String headerCellValue, int columnIndex)
-
recursivelyFindIsPropertyType
protected boolean recursivelyFindIsPropertyType(ScenarioSimulationContext context, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> propertyNameElements)
-
-