Examples of StylePropertyIteratee


Examples of com.volantis.styling.properties.StylePropertyIteratee

    protected void checkNormalized(
            ImmutableStylePropertySet supportedProperties, String expectedCSS) {

        final MutablePropertyValues filteredValues =
                STYLING_FACTORY.createPropertyValues();
        supportedProperties.iterateStyleProperties(new StylePropertyIteratee() {
            public IterationAction next(StyleProperty property) {
                filteredValues.setComputedValue(property,
                        inputValues.getStyleValue(property));
                return IterationAction.CONTINUE;
            }
View Full Code Here

Examples of com.volantis.styling.properties.StylePropertyIteratee

        // todo: don't create unless necessary. then no need for empty check above?
        final MutableStyleProperties properties =
            ThemeFactory.getDefaultInstance().createMutableStyleProperties();

        // todo: better to use values.iterateComputed() and StyleValueIteratee?
        values.iterateStyleProperties(new StylePropertyIteratee() {
            public IterationAction next(StyleProperty property) {
                StyleValue value = values.getComputedValue(property);
                properties.setStyleValue(property, value);
                return IterationAction.CONTINUE;
            }
View Full Code Here

Examples of com.volantis.styling.properties.StylePropertyIteratee

            }

    public static Styles getCompleteStyles(String css, boolean specified) {
        Styles styles = getStyles(css, specified);
        final MutablePropertyValues propertyValues = styles.getPropertyValues();
        StylePropertyDetails.getDefinitions().iterateStyleProperties(new StylePropertyIteratee() {
            public IterationAction next(StyleProperty property) {
                StyleValue value = propertyValues.getComputedValue(property);
                if (value == null) {
                    propertyValues.setComputedValue(property,
                            property.getStandardDetails().getInitialValue());
View Full Code Here

Examples of com.volantis.styling.properties.StylePropertyIteratee

            final StyleProperties properties, final boolean specified) {

        final MutablePropertyValues values =
                styles.getPropertyValues();
        if (properties != null) {
            values.iterateStyleProperties(new StylePropertyIteratee() {
                public IterationAction next(StyleProperty property) {
                    StyleValue value = properties.getStyleValue(property);
                    values.setComputedValue(property, value);
                    if (specified) {
                        values.setSpecifiedValue(property, value);
View Full Code Here

Examples of com.volantis.styling.properties.StylePropertyIteratee

        // version as specified in the device.

        // Iterate over the individual property names, checking for each
        // one in the device.
        StylePropertyDetails.getDefinitions().iterateStyleProperties(
                new StylePropertyIteratee() {
            public IterationAction next(StyleProperty property) {

                final String externalName =
                        CSS_NAME_MAPPER.getExternalString(property);
                String policy = "x-css.properties." + externalName + ".support";
View Full Code Here

Examples of com.volantis.styling.properties.StylePropertyIteratee

        };

        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        final List standardProperties = new ArrayList();
        definitions.iterateStyleProperties(new StylePropertyIteratee() {
            public IterationAction next(StyleProperty property) {
                String name = property.getName();

                // Ignore all the mcs specific properties as they will not be
                // written out in the final output. The exception to this is
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.