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

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


            Styles parentStyles, String caption, String prompt,
            String value, boolean selected) {
        SelectOption option = new SelectOption();
        option.setStyles(STYLING_FACTORY.createInheritedStyles(
                parentStyles, DisplayKeywords.INLINE));
        option.setCaption(new LiteralTextAssetReference(caption));
        option.setId("OptionId");
        option.setPrompt(new LiteralTextAssetReference(prompt));
        option.setValue(value);
        option.setSelected(selected);
        return option;
    }
View Full Code Here


            Styles parentStyles, String caption,
            String prompt) {
        SelectOptionGroup optionGroup = new SelectOptionGroup();
        optionGroup.setStyles(STYLING_FACTORY.createInheritedStyles(
                parentStyles, DisplayKeywords.INLINE));
        optionGroup.setCaption(new LiteralTextAssetReference(caption));
        optionGroup.setId("GroupId");
        optionGroup.setPrompt(new LiteralTextAssetReference(prompt));
        return optionGroup;
    }
View Full Code Here

    public void testElementStartSrcNonExpressionAttribute() throws Exception {

        referenceResolverMock.expects
                .resolveQuotedTextExpression("not an epxression")
                .returns(new LiteralTextAssetReference("not an epxression"))
                .any();

        SpanAttributes attrsAttributes =
                (SpanAttributes) createTestableAttrsAttributes();
        attrsAttributes.setSrc("not an epxression");
View Full Code Here

        buffer.writeText("[emul-end]");
    }

    // Javadoc inherited.
    public TextAssetReference getShortcut() {
        return new LiteralTextAssetReference("[emul-access-key]");
    }
View Full Code Here

             */
            String prompt = "prompt";

            // javadoc inherited
            public void invoke() throws Exception {
                builder.setPrompt(new LiteralTextAssetReference(prompt));
            }

            // javadoc inherited
            public void verify() throws Exception {
                if (getCurrentEntity() instanceof Menu) {
View Full Code Here

             */
            String message = "message";

            // javadoc inherited
            public void invoke() throws Exception {
                builder.setErrorMessage(new LiteralTextAssetReference(message));
            }

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

             */
            String help = "help";

            // javadoc inherited
            public void invoke() throws Exception {
                builder.setHelp(new LiteralTextAssetReference(help));
            }

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

             */
            String shortcut = "shortcut";

            // javadoc inherited
            public void invoke() throws Exception {
                builder.setShortcut(new LiteralTextAssetReference(shortcut));
            }

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

                .returns(null).any();
        referenceResolverMock.expects.resolveQuotedTextExpression(null)
                .returns(null).any();
        referenceResolverMock.expects
                .resolveQuotedTextExpression("testCaption")
                .returns(new LiteralTextAssetReference("testCaption"))
                .any();

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);
View Full Code Here

        attributes.setInitial("Test");
        result = protocol.getInitialValue(attributes);
        assertEquals("Test", result);

        // c) Expect value of textComponentID as the result.
        attributes.setInitial(new LiteralTextAssetReference("foobar"));
        result = protocol.getInitialValue(attributes);
        assertEquals("foobar", result);

        // d) Expect the value of textComponentID (since sessionContext.
        // getAttribute  return null).
        attributes.setInitial(new LiteralTextAssetReference("foobar"));
        final XFFormAttributes formAttributes = new XFFormAttributes();
        formAttributes.setFormSpecifier(formSpecifier);
        attributes.setFormAttributes(formAttributes);       
        form.addFormFragment(new FormFragment(null));
        result = protocol.getInitialValue(attributes);
View Full Code Here

TOP

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

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.