Package com.volantis.styling.engine

Examples of com.volantis.styling.engine.StylingEngine.startElement()


                // </c>
                engine.endElement(NS, "c");

                // <c>
                engine.startElement(NS, "c", attributes);
                assertStylesEqual(StylesBuilder.getSparseStyles(
                        "color: yellow"),
                        engine);

                // </c>
View Full Code Here


        StylingEngine engine = createStylingEngine(css);
        Attributes attributes = createAttributes();

        {
            // <a>
            engine.startElement(NS, "a", attributes);
            assertStylesEqual(StylesBuilder.getSparseStyles(
                    "color: blue"),
                    engine);

            {
View Full Code Here

                    "color: blue"),
                    engine);

            {
                // <b>
                engine.startElement(NS, "b", attributes);
                assertStylesEqual(StylesBuilder.getSparseStyles(
                        "color: blue"),
                        engine);

                // </b>
View Full Code Here

        //   Test Expectations
        // =====================================================================

        StyleValue value;

        engine.startElement(NS, "body", attributesMock);
        value = getContainerValue(engine, StylePropertyDetails.MCS_CONTAINER);
        assertEquals(ABC_STRING, value);

        {
            engine.startElement(NS, "div", attributesMock);
View Full Code Here

        engine.startElement(NS, "body", attributesMock);
        value = getContainerValue(engine, StylePropertyDetails.MCS_CONTAINER);
        assertEquals(ABC_STRING, value);

        {
            engine.startElement(NS, "div", attributesMock);

            value = getContainerValue(engine, StylePropertyDetails.MCS_CONTAINER);
            assertEquals(XYZ_STRING, value);

            engine.endElement(NS, "div");
View Full Code Here

                    XYZ_STRING,
                    ABC_STRING,
                    XYZ_STRING
                }));

        engine.startElement(NS, "body", attributesMock);
        value = getContainerValue(engine, StylePropertyDetails.CONTENT);
        assertEquals(expected, value);

        engine.endElement(NS, "body");
    }
View Full Code Here

                    "element-not-allowed-inside-xdimecp", papiAttributes.getElementName()));
        }

        if (this.isStylingEnabled) {
            StylingEngine stylingEngine = pageContext.getStylingEngine();
            stylingEngine.startElement(XDIMESchemata.CDM_NAMESPACE,
                    papiAttributes.getElementName(),
                    (Attributes) papiAttributes.getGenericAttributes());

            setStyles(stylingEngine.getStyles());
View Full Code Here

        if (captionClass != null) {
            final String namespace = XDIMESchemata.CDM_NAMESPACE;
            final PAPIAttributes genericAttributes =
                    attributes.getGenericAttributes();
            genericAttributes.setAttributeValue(null, "class", captionClass);
            stylingEngine.startElement(namespace, "xfoption",
                    (Attributes) genericAttributes);
            pattributes.setCaptionStyles(stylingEngine.getStyles());
            stylingEngine.endElement(namespace, "xfoption");
        }
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.