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

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


                    pageContext.getDeviceName());
        }

        AssetResolver resolver = pageContext.getAssetResolver();

        TextAssetReference altText = new LiteralTextAssetReference(altAttr);
        altText = new FallbackComponentTextAssetReference(resolver, policy,
                altText);

        return finishAltText(altText, attributes, pageContext, styles);
    }
View Full Code Here


            logger.debug("Trying altText for dynvis asset named \"" +
                    reference.getName() + " on device " +
                    pageContext.getDeviceName());
        }

        TextAssetReference altText = new LiteralTextAssetReference(altAttr);

        return finishAltText(altText, attributes, pageContext, styles);
    }
View Full Code Here

        if (expression == null) {
            return null;
        } else if (expression.startsWith("{") && expression.endsWith("}")) {
            expression = expression.substring(1, expression.length() - 1);
        }
        return new LiteralTextAssetReference(expression);
    }
View Full Code Here

        }

        // the title attribute is used as the prompt

        String title = getAttribute(com.volantis.mcs.xdime.XDIMEAttribute.TITLE, attributes);
        pattributes.setPrompt(new LiteralTextAssetReference(title));

        // Set the entry container (caption will be set by XFLabelElementImpl).
        pattributes.setEntryContainerInstance(
                getPageContext(context).getCurrentContainerInstance());
View Full Code Here

            //if xf:label element was not specified for xf:submit element
            //then set label to the default value
            if (null == caption) {
                ((XFFormFieldAttributes)protocolAttributes)
                    .setCaption(new LiteralTextAssetReference(
                            DEFAULT_SUBMIT_CAPTION));
            }
           
            // wizard is embracing this element
            // wizard id is needed for proper action reference desciption
View Full Code Here

    // Javadoc inherited.
    public void setUp() throws Exception {
        super.setUp();

        OPTION1 = new SelectOption();
        OPTION1.setCaption(new LiteralTextAssetReference("Option one caption"));
        OPTION1.setValue(OPTION1_VALUE);

        OPTION2 = new SelectOption();
        OPTION2.setCaption(new LiteralTextAssetReference("Option two caption"));
        OPTION2.setValue(OPTION2_VALUE);
        mockFieldType = new FieldTypeMock(
            "mockFieldType", expectations);
        protocol = new VolantisProtocolMock("protocol", expectations, null);
        mockFieldType.fuzzy.doField(
View Full Code Here

                new MarinerPageContextMock("pageContext", expectations);
        PolicyReferenceResolverMock policyRefResolver =
                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        SelectOptionMock attributes =
                new SelectOptionMock("attributes", expectations);
        TextAssetReference textAssetRef = new LiteralTextAssetReference("");
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        StylesMock labelStyles = new StylesMock("labelStyles", expectations);
        StylingEngineMock stylingEngine =
                new StylingEngineMock("stylingEngine", expectations);
View Full Code Here

                new MarinerPageContextMock("pageContext", expectations);
        PolicyReferenceResolverMock policyRefResolver =
                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        XFFormFieldAttributesMock attributes =
                new XFFormFieldAttributesMock("attributes", expectations);
        TextAssetReference textAssetRef = new LiteralTextAssetReference("");
        StylesMock labelStyles = new StylesMock("labelStyles", expectations);
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        StylingEngineMock stylingEngine =
                new StylingEngineMock("stylingEngine", expectations);
View Full Code Here

     * Set the altText property.
     *
     * @param altText The new value of the altText property.
     */
    public void setAltText(String altText) {
      this.altText = new LiteralTextAssetReference(altText);
    }
View Full Code Here

        addTextExpectations(textSrc);


        referenceResolverMock.expects
                .resolveUnquotedTextExpression("note.mtxt").returns(
                        new LiteralTextAssetReference("a note")).any();
        environmentContextMock
                .expects.getMimeType("note.mtxt")
                .returns("application/x-mcs-text").any();

        openDocument();
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.