Examples of CellBinding


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

    @Override
    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        final ObjectAdapter onAdapter = performContext.getOnAdapter();
        final ObjectMember nakedObjectMember = performContext.getObjectMember();
        final CellBinding onMemberBinding = performContext.getPeer().getOnMemberBinding();
        final List<ScenarioCell> argumentCells = performContext.getArgumentCells();

        final ObjectAction nakedObjectAction = (ObjectAction) nakedObjectMember;
        final int parameterCount = nakedObjectAction.getParameterCount();
        final boolean isContributedOneArgAction = nakedObjectAction.isContributed() && parameterCount == 1;
View Full Code Here

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

    @Override
    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        final ObjectAdapter onAdapter = performContext.getOnAdapter();
        final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();

        if (onAdapter.representsPersistent()) {
            throw ScenarioBoundValueException.current(thatItBinding, "(saved)");
        }
View Full Code Here

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

    }

    @Override
    protected void doThat(final PerformContext performContext, final Iterable<ObjectAdapter> collection) throws ScenarioBoundValueException {

        final CellBinding thatBinding = performContext.getPeer().getThatItBinding();
        final CellBinding arg0Binding = performContext.getPeer().getArg0Binding();

        if (!arg0Binding.isFound()) {
            throw ScenarioBoundValueException.current(thatBinding, "(requires argument)");
        }

        final ScenarioCell arg0Cell = arg0Binding.getCurrentCell();

        final String expectedSizeStr = arg0Cell.getText();
        final int expectedSize;
        try {
            expectedSize = Integer.parseInt(expectedSizeStr);
View Full Code Here

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

    }

    @Override
    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();

        if (performContext.validObjectConsent().isAllowed()) {
            throw ScenarioBoundValueException.current(thatItBinding, "(valid)");
        }
View Full Code Here

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

        if (resultAdapter != null) {
            String actualStr = performContext.getPeer().getAliasRegistry().getAlias(resultAdapter);
            if (actualStr == null) {
                actualStr = resultAdapter.titleString();
            }
            final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();
            throw ScenarioBoundValueException.current(thatItBinding, actualStr);
        }

        return null;
    }
View Full Code Here

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

    @Override
    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        if (!performContext.validObjectConsent().isAllowed()) {
            final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();
            throw ScenarioBoundValueException.current(thatItBinding, "(not valid)");
        }

        return null;
    }
View Full Code Here

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

    @Override
    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        final ObjectAdapter onAdapter = performContext.getOnAdapter();
        final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();

        if (!onAdapter.representsPersistent()) {
            throw ScenarioBoundValueException.current(thatItBinding, "(not saved)");
        }
View Full Code Here

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

    @Override
    public void doHandle(final PerformContext performContext) throws ScenarioBoundValueException {

        final ObjectAdapter onAdapter = performContext.getOnAdapter();
        final ObjectMember objectMember = performContext.getObjectMember();
        final CellBinding onMemberBinding = performContext.getPeer().getOnMemberBinding();
        final List<ScenarioCell> argumentCells = performContext.getArgumentCells();

        final ObjectAction objectAction = (ObjectAction) objectMember;

        final int parameterCount = objectAction.getParameterCount();
View Full Code Here

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

        // get
        final ObjectAdapter resultAdapter = otoa.get(performContext.getOnAdapter());

        if (resultAdapter == null) {
            final CellBinding thatItBinding = performContext.getPeer().getThatItBinding();
            throw ScenarioBoundValueException.current(thatItBinding, "(empty)");
        }

        return null;
    }
View Full Code Here

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

    public ObjectAdapter that(final PerformContext performContext) throws ScenarioBoundValueException {

        final OneToOneAssociation otoa = (OneToOneAssociation) performContext.getObjectMember();

        // if we have an expected result
        final CellBinding arg0Binding = performContext.getPeer().getArg0Binding();
        final ScenarioCell arg0Cell = arg0Binding.getCurrentCell();
        final String expected = arg0Cell.getText();

        // get
        final ObjectAdapter resultAdapter = otoa.get(performContext.getOnAdapter());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.