Package com.volantis.mcs.protocols.assets.implementation

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralScriptAssetReference


        XFFormAttributes papiAttributes = new XFFormAttributes();
        final String ON_SUBMIT = "OnSubmit";
        final String ON_RESET = "OnRest";

        referenceResolverMock.expects.resolveQuotedScriptExpression(ON_SUBMIT)
            .returns(new LiteralScriptAssetReference(ON_SUBMIT)).any();

        referenceResolverMock.expects.resolveQuotedScriptExpression(ON_RESET)
            .returns(new LiteralScriptAssetReference(ON_RESET)).any();

        papiAttributes.setOnSubmit(ON_SUBMIT);
        papiAttributes.setOnReset(ON_RESET);

        CanvasAttributes attributes = new CanvasAttributes();
View Full Code Here


    private void addScriptExpressionExpectations(String expected) {
        if (expected != null) {
            referenceResolverMock.expects
                    .resolveQuotedScriptExpression(expected)
                    .returns(new LiteralScriptAssetReference(expected))
                    .any();
        }
    }
View Full Code Here

    private void addScriptExpressionExpectation(String expected) {
        if (expected != null) {
            referenceResolverMock.expects
                    .resolveQuotedScriptExpression(expected)
                    .returns(new LiteralScriptAssetReference(expected));
        }
    }
View Full Code Here

            String handler = "dummy";

            // javadoc inherited
            public void invoke() throws Exception {
                builder.setEventHandler(type,
                        new LiteralScriptAssetReference(handler));
            }

            // javadoc inherited
            public void verify() throws Exception {
                assertEquals(handler,
View Full Code Here

    public void setEvent(int index, String event) {
        if (logger.isDebugEnabled()) {
            logger.debug("Setting event " + index + " to " + event);
        }

        events[index] = new LiteralScriptAssetReference(event);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.implementation.LiteralScriptAssetReference

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.