Package org.apache.isis.viewer.bdd.common

Examples of org.apache.isis.viewer.bdd.common.ScenarioCellDefault


        // create bindings
        getPeer().getTitleBinding().setHeadColumn(0);
        getPeer().getAliasBinding().setHeadColumn(1);

        if (type != null) {
            getPeer().getTypeBinding().setHeadColumn(2, new ScenarioCellDefault(type));
        }

        return null;
    }
View Full Code Here


        return null;
    }

    private void captureCurrent(final String aliasAs, final String title, final String type) {
        getPeer().getAliasBinding().captureCurrent(new ScenarioCellDefault(aliasAs));
        getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(title));
        if (type != null) {
            getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(type));
        }
    }
View Full Code Here

    public String executeRow(final String title) {

        setupHeader(title);

        // capture current
        getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(title));

        // execute
        return checkExists();
    }
View Full Code Here

        setupHeader(onObject, aliasResultAs, perform, usingMember, thatIt, arg0);

        final List<String> argumentCells = new ArrayList<String>();

        // capture current
        getPeer().getOnObjectBinding().captureCurrent(new ScenarioCellDefault(onObject));
        getPeer().getAliasResultAsBinding().captureCurrent(new ScenarioCellDefault(aliasResultAs));
        getPeer().getPerformBinding().captureCurrent(new ScenarioCellDefault(perform));
        getPeer().getOnMemberBinding().captureCurrent(new ScenarioCellDefault(usingMember));
        if (getPeer().getThatItBinding().isFound()) {
            getPeer().getThatItBinding().captureCurrent(new ScenarioCellDefault(thatIt));
        }
        if (getPeer().getArg0Binding().isFound()) {
            getPeer().getArg0Binding().captureCurrent(new ScenarioCellDefault(arg0));
            argumentCells.add(arg0);
        }
        for (final String arg : remainingArgs) {
            argumentCells.add(arg);
        }
View Full Code Here

    }

    private static List<ScenarioCell> asValues(final List<String> argumentCells) {
        final List<ScenarioCell> storyValues = Lists.newArrayList();
        for (final String arg : argumentCells) {
            storyValues.add(new ScenarioCellDefault(arg));
        }
        return storyValues;
    }
View Full Code Here

        setupHeader(onObject, aliasResultAs, perform, usingMember, thatIt, arg0);

        final List<String> argumentCells = new ArrayList<String>();

        // capture current
        getPeer().getOnObjectBinding().captureCurrent(new ScenarioCellDefault(onObject));
        getPeer().getAliasResultAsBinding().captureCurrent(new ScenarioCellDefault(aliasResultAs));
        getPeer().getPerformBinding().captureCurrent(new ScenarioCellDefault(perform));
        getPeer().getOnMemberBinding().captureCurrent(new ScenarioCellDefault(usingMember));
        if (getPeer().getThatItBinding().isFound()) {
            getPeer().getThatItBinding().captureCurrent(new ScenarioCellDefault(thatIt));
        }
        if (getPeer().getArg0Binding().isFound()) {
            getPeer().getArg0Binding().captureCurrent(new ScenarioCellDefault(arg0));
            argumentCells.add(arg0);
        }
        for (final String arg : remainingArgs) {
            argumentCells.add(arg);
        }
View Full Code Here

    }

    private static List<ScenarioCell> asValues(final List<String> argumentCells) {
        final List<ScenarioCell> storyValues = Lists.newArrayList();
        for (final String arg : argumentCells) {
            storyValues.add(new ScenarioCellDefault(arg));
        }
        return storyValues;
    }
View Full Code Here

        // create bindings
        getPeer().getTitleBinding().setHeadColumn(0);
        getPeer().getAliasBinding().setHeadColumn(1);

        if (type != null) {
            getPeer().getTypeBinding().setHeadColumn(2, new ScenarioCellDefault(type));
        }

        return null;
    }
View Full Code Here

        return null;
    }

    private void captureCurrent(final String aliasAs, final String title, final String type) {
        getPeer().getAliasBinding().captureCurrent(new ScenarioCellDefault(aliasAs));
        getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(title));
        if (type != null) {
            getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(type));
        }
    }
View Full Code Here

    public String executeRow(final String title) {

        setupHeader(title);

        // capture current
        getPeer().getTitleBinding().captureCurrent(new ScenarioCellDefault(title));

        // execute
        return checkExists();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.bdd.common.ScenarioCellDefault

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.