Package com.volantis.styling.engine

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


                assertStylesEqual(StylesBuilder.getSparseStyles(
                        "color: yellow"),
                        engine);

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

            // </a>
            engine.endElement(NS, "a");
        }
View Full Code Here


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

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

    }

    public void testImmediatePrecedingSiblingSelector() {
View Full Code Here

                assertStylesEqual(StylesBuilder.getSparseStyles(
                        "color: blue"),
                        engine);

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


                // <c>
                engine.startElement(NS, "c", attributes);
                assertStylesEqual(StylesBuilder.getSparseStyles(
View Full Code Here

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

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

            engine.endElement(NS, "div");
        }

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

            assertEquals(XYZ_STRING, value);

            engine.endElement(NS, "div");
        }

        engine.endElement(NS, "body");
    }

    /**
     * Test that the evaluation mechanism works for a single value.
     */
 
View Full Code Here

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

        engine.endElement(NS, "body");
    }

    private StylingEngine createStylingEngine(
            Reader reader,
            final FunctionResolver functionResolverMock) {
View Full Code Here

                = ContextInternals.getMarinerPageContext(context);

        if (this.isStylingEnabled) {
            StylingEngine stylingEngine = pageContext.getStylingEngine();
            // Notify the styling engine that the element end has been reached
            stylingEngine.endElement(XDIMESchemata.CDM_NAMESPACE,
                    papiAttributes.getElementName());
        }

        return returnCode;
    }
View Full Code Here

                    attributes.getGenericAttributes();
            genericAttributes.setAttributeValue(null, "class", captionClass);
            stylingEngine.startElement(namespace, "xfoption",
                    (Attributes) genericAttributes);
            pattributes.setCaptionStyles(stylingEngine.getStyles());
            stylingEngine.endElement(namespace, "xfoption");
        }

        // Set the selected attribute
        String selected = attributes.getSelected();
        if (selected != null) {
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.