Package com.volantis.styling.values

Examples of com.volantis.styling.values.MutablePropertyValues.clearPropertyValue()


                propertyValues.getComputedValue(StylePropertyDetails.CONTENT);
        if (content != null) {
            Inserter inserter = getInserter();
            inserter.insert(markerSpan, content);

            propertyValues.clearPropertyValue(StylePropertyDetails.CONTENT);

            // As some content has been added to the marker make sure that
            // if the user has not explicitly specified any padding on the
            // right that we add some to make it readable.
            propertyValues.overrideUnlessExplicitlySpecified(
View Full Code Here


            overrideVerticalAlign(propertyValues);
            overrideTextAlign(propertyValues);

            Inserter inserter = getInserter();
            inserter.insert(markerTd, content);
            propertyValues.clearPropertyValue(StylePropertyDetails.CONTENT);
        }
    }

    private void overrideTextAlign(MutablePropertyValues propertyValues) {
        propertyValues.overrideUnlessExplicitlySpecified(
View Full Code Here

                content != ContentKeywords.NONE) {
            Inserter inserter = domProtocol.getInserter();
            inserter.insert(e, content);

            // Clear the content property as we have already dealt with it.
            propValues.clearPropertyValue(StylePropertyDetails.CONTENT);
        }

        return e;
    }
View Full Code Here

        if (display == null) {
            display = StylePropertyDetails.DISPLAY.getStandardDetails()
                    .getInitialValue();
        } else {
            // Clear the property value.
            propValues.clearPropertyValue(StylePropertyDetails.DISPLAY);
        }

        String name = (String) DISPLAY_MAP.get(display);
        if (name == null) {
            // displayValue may be a CSS-valid value but only
View Full Code Here

                    double pixelWidth = useableWidth * percentage.getPercentage() / 100.0;
                    StyleLength length = StyleValueFactory.getDefaultInstance()
                            .getLength(null, pixelWidth, LengthUnit.PX);
                    propertyValues.setComputedValue(StylePropertyDetails.WIDTH, length);
                } else {
                    propertyValues.clearPropertyValue(StylePropertyDetails.WIDTH);
                }
            }
        }
    }

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.