Package fr.soleil.bossanova.model

Examples of fr.soleil.bossanova.model.Step


    }

    @Override
    public boolean addActorStep(String stepName, String comment,
            Map<String, String> parameters) {
        Step step = new Step(StepType.ACTOR, stepName);
        step.setParameters(parameters);
        step.setComment(comment);
        return addStep(step, true);
    }
View Full Code Here


    public void insertStepsAt(List<Step> steps, int index) {
        if (batch != null) {
            for (int i = 0; i
                    < steps.size(); i++) {
                Step step = steps.get(i);
                batch.insertStepAt(step, index + i);
            }
        }
        setCurrentBatchSaved( false );
        setChangedAndNotify();
View Full Code Here

        setChangedAndNotify();
    }

    public void moveStepUp(int stepIndex) {
        if (stepIndex > 0 && stepIndex < batch.size()) {
            Step stepToMove = batch.getStep(stepIndex);
            if (stepToMove != null) {
                batch.removeStepAt(stepIndex);
                batch.insertStepAt(stepToMove, stepIndex - 1);
                setCurrentBatchSaved( false );
                setChangedAndNotify();
View Full Code Here

        }
    }

    public void moveStepdown(int stepIndex) {
        if (stepIndex < batch.size() - 1) {
            Step stepToMove = batch.getStep(stepIndex);
            if (stepToMove != null) {
                batch.removeStepAt(stepIndex);
                batch.insertStepAt(stepToMove, stepIndex + 1);
                setCurrentBatchSaved( false );
                setChangedAndNotify();
View Full Code Here

            }
        }
    }

    public void modifyIterationCountForStepAt(int stepIndex, int iterationCount) {
        Step step = getBatch().getStep(stepIndex);

        if (step != null) {
            step.setIterationCount(iterationCount);
            setCurrentBatchSaved( false );
            setChangedAndNotify();
        }
    }
View Full Code Here

        }
    }

    public void modifyTypeAndNameForStepAt(int stepIndex, String name,
            StepType stepType) {
        Step step = getBatch().getStep(stepIndex);

        if (step != null) {
            step.setFlow(null);
            step.setName(name);
            step.setType(stepType);
            // TODO REFACTOR that's weird
            BossaNovaData.getSingleton().getApplication().getMainScreen().changeStep();
            setCurrentBatchSaved( false );
            setChangedAndNotify();
        }
View Full Code Here

            setChangedAndNotify();
        }
    }

    public void modifyCommentForStepAt(int stepIndex, String comment) {
        Step step = getBatch().getStep(stepIndex);

        if (step != null) {
            step.setComment(comment);
        }
    }
View Full Code Here

            step.setComment(comment);
        }
    }

    public void modifyEnableForStepAt(int stepIndex, boolean enable) {
        Step step = getBatch().getStep(stepIndex);

        if (step != null) {
            step.setEnable(enable);
        }
    }
View Full Code Here

     * @param enable
     */
    public void modifyEnableForAllStep(boolean enable) {
        for (int i = 0; i
                < getBatch().size(); i++) {
            Step step = getBatch().getStep(i);
            step.setEnable(enable);
        }
        setCurrentBatchSaved( false );
        setChangedAndNotify();
    }
View Full Code Here

   
    public void checkBatchSteps()
    {
        for (int i = 0; i < getBatch().size(); i++)
        {
            Step step = getBatch().getStep(i);
            if (StepType.SEQUENCE.equals(step.getType()))
            {
                File f = RepositoryManager.getSequenceRepository().getSequenceForName(step.getName());
                if( f==null )
                {
                    step.setOnFault(true);
                    setChangedAndNotify();
                }
            }
        }
View Full Code Here

TOP

Related Classes of fr.soleil.bossanova.model.Step

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.