Package com.volantis.styling.properties

Examples of com.volantis.styling.properties.StylePropertyDefinitions


                     "ACTUAL  : " + actual + "\n", expected, actual);
        final MutablePropertyValues attributePropertyValues =
            attributes.getStyles().getPropertyValues();
        final MutablePropertyValues elementPropertyValues =
            element.getStyles().getPropertyValues();
        final StylePropertyDefinitions stylePropertyDefinitions =
            attributePropertyValues.getStylePropertyDefinitions();
        final int count = stylePropertyDefinitions.count();
        for (int i = 0; i < count; i++) {
            final StyleProperty styleProperty =
                stylePropertyDefinitions.getStyleProperty(i);
            if (styleProperty.equals(StylePropertyDetails.DISPLAY)) {
                assertEquals(DisplayKeywords.TABLE_CELL,
                    elementPropertyValues.getComputedValue(styleProperty));
                assertEquals(DisplayKeywords.TABLE_CELL,
                    elementPropertyValues.getSpecifiedValue(styleProperty));
View Full Code Here


     * Create a set of mutable property values.
     *
     * @return A newly created set of mutable property values.
     */
    private MutablePropertyValues createPropertyValues() {
        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        return StylingFactory.getDefaultInstance()
                .createPropertyValues(definitions);
    }
View Full Code Here

     * Create a set of mutable property values.
     *
     * @return A newly created set of mutable property values.
     */
    protected MutablePropertyValues createPropertyValues() {
        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        return StylingFactory.getDefaultInstance()
                .createPropertyValues(definitions);
    }
View Full Code Here

    // Javadoc inherited.
    public void inherit(MutablePropertyValues values,
                        StyleValues inheritableValues) {

        StylePropertyDefinitions definitions
                = values.getStylePropertyDefinitions();

        this.values = values;
        this.inheritableValues = inheritableValues;

        definitions.iterateStyleProperties(this);
    }
View Full Code Here

        if (originalStyles == null) {
            assertNull(resultStyles);
        } else {
            PropertyValues originalValues = originalStyles.getPropertyValues();
            PropertyValues resultValues = resultStyles.getPropertyValues();
            StylePropertyDefinitions definitions =
                    StylePropertyDetails.getDefinitions();
            for(Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
                StyleProperty property = (StyleProperty)i.next();
                assertEquals(originalValues.getComputedValue(property),
                        resultValues.getComputedValue(property));
                assertEquals(originalValues.getSpecifiedValue(property),
                        resultValues.getSpecifiedValue(property));
View Full Code Here

                cssVersion.markImmutable();
                return cssVersion;
            }
        };

        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

     * Create a set of mutable property values.
     *
     * @return A newly created set of mutable property values.
     */
    protected MutablePropertyValues createPropertyValues() {
        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        return StylingFactory.getDefaultInstance()
                .createPropertyValues(definitions);
    }
View Full Code Here

            StyleProperty property, StyleValue value) {

        MutablePropertyValuesMock values =
                new MutablePropertyValuesMock("values", expectations);

        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        for (Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
            StyleProperty prop = (StyleProperty)i.next();
            if (!property.equals(prop) ){
                values.expects.getComputedValue(prop).
                        returns(null).any();
            } else {
View Full Code Here

            PropertyValueArray array) {

        MutablePropertyValuesMock values =
                new MutablePropertyValuesMock("values", expectations);

        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        for (Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
            StyleProperty prop = (StyleProperty)i.next();
            PropertyValue propertyValue = null;
            if (array != null) {
                propertyValue = array.getPropertyValue(prop);
            }
View Full Code Here

        Styles actualStyles = getActualStyles();

        if (actualStyles != null) {
            PropertyValues values = actualStyles.getPropertyValues();

            StylePropertyDefinitions definitions = values
                    .getStylePropertyDefinitions();

            boolean firstProperty = true;

            for (int index = 0; index < definitions.count(); index++) {
                StyleProperty property = definitions.getStyleProperty(index);

                String propertyName = property.getName();

                // Filter out all non-CSS standard properties.
                // At this moment the only solution I can see is to filter out
View Full Code Here

TOP

Related Classes of com.volantis.styling.properties.StylePropertyDefinitions

Copyright © 2018 www.massapicom. 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.