@Dependent public class DeleteColumnCommand extends AbstractScenarioGridCommand
Command
to delete a column. Eventually add a ne column if the deleted one is the last of its group.gridWidget, restorableStatus
Constructor and Description |
---|
DeleteColumnCommand(GridWidget gridWidget) |
Modifier and Type | Method and Description |
---|---|
protected void |
createColumnIfEmptyGroup(ScenarioSimulationContext context,
ScenarioSimulationContext.Status status,
int newColumnPosition)
Creates a new column in the group if there is none.
|
protected void |
internalExecute(ScenarioSimulationContext context) |
commonUndoRedoPreexecution, execute, getFactIdentifierByColumnTitle, getScenarioGridColumnLocal, redo, setCurrentContext, undo
commonExecution, getId
public DeleteColumnCommand(GridWidget gridWidget)
protected void internalExecute(ScenarioSimulationContext context)
internalExecute
in class AbstractScenarioSimulationCommand
protected void createColumnIfEmptyGroup(ScenarioSimulationContext context, ScenarioSimulationContext.Status status, int newColumnPosition)
context
- status
- newColumnPosition
- Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.