Package com.volantis.mcs.protocols.assets

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


        div.setAttribute("style", styleItemDiv);

        // We are rendering li as div, so must take extra care to support li-specific attributes.
        // This unfortunatelly duplicates code from  XHTMLBasic.addListItemAttributes(),
        // but we cannot delegate to protocol as this method is protected.
        LinkAssetReference url = attributes.getHref();
        if (url != null && url.getURL() != null) {
            div.setAttribute("href", url.getURL());
        }
    }
View Full Code Here


        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        // Resolve the src string to a mariner expression
        LinkAssetReference expression = resolver.resolveQuotedLinkExpression(
                attributes.getSrc(), PageURLType.SEGMENT);
        pattributes.setSrc(expression);

        pattributes.setLongDesc(attributes.getLongDesc());
        pattributes.setTitle(attributes.getTitle());
View Full Code Here

            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

        TextAssetReference textReference;
        LinkAssetReference linkReference;
        String value;

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

     */
    private LinkAssetReference getHrefAttribute(XDIMEContextInternal context,
            XDIMEAttributes attributes) throws XDIMEException {
        // Prepare a local field, which will store the LinkAssetReference
        // with the URL from the 'href' attribute.
        LinkAssetReference linkAssetReference = null;

        // Read the href attribute
        String url = getAttribute(XDIMEAttribute.HREF, attributes);

        // Do the actual processing, if the 'href' attribute is specified.
View Full Code Here

            TextAssetReference shortcutObj =
                    resolver.resolveQuotedTextExpression(shortcut);
            builder.setShortcut(shortcutObj);

            //Process the href as a mariner expression
            LinkAssetReference href = resolver.resolveQuotedLinkExpression(
                    attributes.getHref(), PageURLType.MENU_ITEM);
            builder.setHref(href);

            // Process the prompt as a mariner expression
            TextAssetReference prompt = resolver.resolveQuotedTextExpression(
View Full Code Here

            }
            String title = attributes.getTitle();
            if (title != null) {
                text = text + " title="+title;
            }
            LinkAssetReference href = attributes.getHref();
            if (href != null) {
                text = text + " href="+href.getURL();
            }
        }
        return text;
    }
View Full Code Here

    protected void doAnchor(DOMOutputBuffer dom,
                            AnchorAttributes attributes)
        throws ProtocolException {

        LinkAssetReference hrefObject;
        String href = null;

        if ((hrefObject = attributes.getHref()) != null) {
            href = getRewrittenLinkFromObject(
                    hrefObject, attributes.getSegment() != null);
View Full Code Here

                element.setAttribute ("scrolling", "yes");
            }
        }

        // src could be a link component
        LinkAssetReference reference = attributes.getSrc();
        if (reference != null) {
            element.setAttribute("src", reference.getURL());
        }
    }
View Full Code Here

        // argument is true the a dtmf value is added from the shortcut property
        // of the menuitem.  Otherwise the specified index is used as the dtmf.
        // All dtmf values are validated to check that they are in the range 1..9
        // before we attempt to add the value.
        String resolvedHref = null;
        LinkAssetReference href = item.getHref();
        if (href != null) {
            resolvedHref = getRewrittenLinkFromObject(href,
                    item.getSegment() != null);
        }
View Full Code Here

        Element element = dom.openStyledElement ("a", attributes);

        addCoreAttributes (element, attributes);

        LinkAssetReference reference = attributes.getHref();
        if (reference != null) {
            element.setAttribute ("href", reference.getURL());
        }
        if (supportsAccessKeyAttribute
            && (value = getPlainText (attributes.getShortcut())) != null) {
            element.setAttribute ("accesskey", value);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.LinkAssetReference

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.