Package com.volantis.mcs.protocols.assets

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


        // NOTE: The old XHTMLFull.doRolloverImage used to fix border="0"
        // This is a bogus way of doing this so it has been left out till
        // such time as we have the time to fix it properly.
        // @todo implement border=0 for devices that require it.
       
        ImageAssetReference overReference = icon.getOverURL();
        if (overReference != null) {
            String overUrl = overReference.getURL();
            if (overUrl != null) {
                // Normal url must be non null.
                String normalUrl = icon.getNormalURL().getURL();
                // These urls are in external form so we shouldn't need to
                // quote them (hopefully).
View Full Code Here


                RuntimePolicyReference reference =
                        resolver.resolvePolicyExpression(expression);

                AssetResolver assetResolver = context.getAssetResolver();
                ImageAssetReference image =
                        new DefaultComponentImageAssetReference(reference,
                                assetResolver);
                String url = image.getURL();
                if (url != null) {
                    return url;
                }
                actionImageCaption = getTextFromReference(
                        image.getTextFallback(), TextEncoding.PLAIN);

            } catch (AssetReferenceException e) {
                logger.error ("repository-exception", e);
            }
        } else if (valueType == StyleValueType.TRANSCODABLE_URI) {
View Full Code Here

TOP

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

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.