Package org.drools.guvnor.shared.simulation

Examples of org.drools.guvnor.shared.simulation.SimulationStepModel


        PathWidget pathWidget = pathWidgetMap.get(path);
        pathTabPanel.selectTab(pathTabPanel.getWidgetIndex(pathWidget));
    }

    public void addStep(SimulationPathModel path) {
        SimulationStepModel step = SimulationStepModel.createNew(path);
        path.addStep(step);
        pathWidgetMap.get(path).addedStep(step);
        timeLineWidget.addedStep(step);
    }
View Full Code Here


        pathWidgetMap.get(path).removedStep(step);
        timeLineWidget.removedStep(step);
    }

    public void addCommand(AbstractCommandModel command) {
        SimulationStepModel step = command.getStep();
        SimulationPathModel path = step.getPath();
        step.addCommand(command);
        pathWidgetMap.get(path).addedCommand(command);
        // TODO notify timeLineWidget in case the step icon needs to change
    }
View Full Code Here

        pathWidgetMap.get(path).addedCommand(command);
        // TODO notify timeLineWidget in case the step icon needs to change
    }

    public void moveUpCommand(AbstractCommandModel command) {
        SimulationStepModel step = command.getStep();
        if (step.getCommands().indexOf(command) == 0) {
            // TODO disable button instead
            return;
        }
        SimulationPathModel path = step.getPath();
        step.moveUpCommand(command);
        pathWidgetMap.get(path).movedUpCommand(command);
    }
View Full Code Here

        step.moveUpCommand(command);
        pathWidgetMap.get(path).movedUpCommand(command);
    }

    public void moveDownCommand(AbstractCommandModel command) {
        SimulationStepModel step = command.getStep();
        if (step.getCommands().indexOf(command) == step.getCommands().size() - 1) {
            // TODO disable button instead
            return;
        }
        SimulationPathModel path = step.getPath();
        step.moveDownCommand(command);
        pathWidgetMap.get(path).movedDownCommand(command);
    }
View Full Code Here

        step.moveDownCommand(command);
        pathWidgetMap.get(path).movedDownCommand(command);
    }

    public void removeCommand(AbstractCommandModel command) {
        SimulationStepModel step = command.getStep();
        SimulationPathModel path = step.getPath();
        step.removeCommand(command);
        pathWidgetMap.get(path).removedCommand(command);
        // TODO notify timeLineWidget in case the step icon needs to change
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.shared.simulation.SimulationStepModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.