Examples of TextAssetReference


Examples of com.volantis.mcs.protocols.assets.TextAssetReference

            if (buffer != null && buffer instanceof DOMOutputBuffer) {
                DOMOutputBuffer domBuffer = (DOMOutputBuffer) buffer;

                // get the shortcut properties from the menu.
                Menu menu = item.getMenu();
                TextAssetReference shortcutValue = item.getShortcut();
                if (menu != null && shortcutValue != null &&
                        customisation.supportsAccessKeyAttribute()) {

                    String shortcutTextValue =
                            shortcutValue.getText(TextEncoding.PLAIN);

                    if (shortcutTextValue != null) {
                        // this is never null.
                        ShortcutProperties shortcutProps =
                                menu.getShortcutProperties();
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

                    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

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

            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

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

        // Extract project to resolve policy expressions against.
        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        TextAssetReference textReference =
                resolver.resolveQuotedTextExpression(linkText);

        // Retrive the text from asset and set the
        // linkText if textReference is a text asset.
        if (textReference != null) {
            linkText = textReference.getText(TextEncoding.PLAIN);

            linkBuffer =
                pageContext.getDeviceLayoutContext().allocateOutputBuffer();
            linkBuffer.writeText(linkText);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

        // by the protocol.
        com.volantis.mcs.protocols.XFTextInputAttributes pattributes
                = new com.volantis.mcs.protocols.XFTextInputAttributes();

        // Initialise the attributes specific to this field.
        TextAssetReference object;
        String value;

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

        pattributes.setStyles(stylingEngine.getStyles());

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        TextAssetReference object;
        // Process the caption as a mariner expression.
        object = resolver.resolveQuotedTextExpression(attributes.getCaption());
        pattributes.setCaption(object);

        // Process the prompt as a mariner expression.
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

                = ContextInternals.getMarinerPageContext(context);

        VolantisProtocol protocol = pageContext.getProtocol();
        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();
        TextAssetReference altText = resolver.resolveQuotedTextExpression(
                attributes.getAltText());

        pattributes.setId(attributes.getId());
        pattributes.setTitle(attributes.getTitle());
        pattributes.setAltText(altText);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

        SpanAttributes attributes = (SpanAttributes) papiAttributes;

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        TextAssetReference srcReference =
                resolver.resolveQuotedTextExpression(attributes.getSrc());
        if (srcReference != null && srcReference.isPolicy()) {
            pattributes.setSrc(srcReference);
        }

        int result = super.styleElementStart(context,
                (SpanAttributes) papiAttributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

        if (form == null) {
            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

        TextAssetReference textReference;
        LinkAssetReference linkReference;
        String value;

        // Copy the base attributes.
        pattributes.setId(attributes.getId());
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.TextAssetReference

                }

                PolicyReferenceResolver resolver =
                        pageContext.getPolicyReferenceResolver();

                TextAssetReference caption =
                        resolver.resolveQuotedTextExpression(labelText);
                attributes.setCaption(caption);

                // The caption container instance will have been set to the
                // current container as part of initialising the attributes.
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.