Examples of MarqueeEmulationAttributePropertyRenderer


Examples of com.volantis.mcs.protocols.html.css.emulator.renderer.MarqueeEmulationAttributePropertyRenderer

                        dec.getSupportType(DeviceCapabilityConstants.MARQUEE_LOOP_ATT));
                if (!marqueeLoopCssSupported && loopSupported) {

                    AttributeAndOrElementStyleEmulationPropertyRenderer loopRenderer =
                            new AttributeAndOrElementStyleEmulationPropertyRenderer(
                                    new MarqueeEmulationAttributePropertyRenderer(
                                            DeviceCapabilityConstants.MARQUEE_LOOP_ATT, false));
                    styleEmulationPropertyRendererSelector.register(
                            StylePropertyDetails.MCS_MARQUEE_REPETITION,
                            loopRenderer);
                }

                // Marquee direction.
                boolean marqueeDirCssSupported = marqueeStyleCssSupported &&
                        (cssVersion.getProperty(StylePropertyDetails.MCS_MARQUEE_DIRECTION) != null);
                boolean directionSupported = CapabilitySupportLevel.FULL.equals(
                        dec.getSupportType(DeviceCapabilityConstants.MARQUEE_DIRECTION_ATT));
                if (!marqueeDirCssSupported && directionSupported) {

                    AttributeAndOrElementStyleEmulationPropertyRenderer dirRenderer =
                            new AttributeAndOrElementStyleEmulationPropertyRenderer(
                                    new MarqueeEmulationAttributePropertyRenderer(
                                            DeviceCapabilityConstants.MARQUEE_DIRECTION_ATT, false));
                    styleEmulationPropertyRendererSelector.register(
                            StylePropertyDetails.MCS_MARQUEE_DIRECTION, dirRenderer);
                }

                // Marquee background colour.
                if (!supportsDisplayKeyword &&
                        CapabilitySupportLevel.FULL.equals(dec.getSupportType(
                                DeviceCapabilityConstants.MARQUEE_BGCOLOR_ATT))) {
                    AttributeAndOrElementStyleEmulationPropertyRenderer bgColorRenderer
                            = new AttributeAndOrElementStyleEmulationPropertyRenderer(
                                    new MarqueeEmulationAttributePropertyRenderer(
                                            DeviceCapabilityConstants.MARQUEE_BGCOLOR_ATT, false));
                    styleEmulationPropertyRendererSelector.register(
                            StylePropertyDetails.BACKGROUND_COLOR, bgColorRenderer);
                }
            }
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.