Examples of StyleValue


Examples of com.volantis.mcs.themes.StyleValue

        PropertyValues expectedValues = sparseStyles.getPropertyValues();
        PropertyValues actualValues = engine.getStyles().getPropertyValues();
        Iterator iterator = expectedValues.stylePropertyIterator();
        while (iterator.hasNext()) {
            StyleProperty property = (StyleProperty) iterator.next();
            StyleValue specified = expectedValues.getSpecifiedValue(property);
            if (specified != null) {
                // Only interested in the specified values.
                StyleValue expected = expectedValues.getComputedValue(property);
                StyleValue actual = actualValues.getComputedValue(property);
                assertEquals(property.getName(), expected, actual);
            }
        }
    }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // The implicitly inherited property.
        final StylePropertyMock propertyMock =
                PropertiesTestHelper.createStylePropertyMock(
                        expectations, "propertyMock", true, false);
        final StyleValue outputValue = StyleKeywords.ACCEPT;

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // The implicitly inherited property.
        final StylePropertyMock propertyMock =
                PropertiesTestHelper.createStylePropertyMock(
                        expectations, "propertyMock", false, true);
        final StyleValue outputValue = StyleKeywords.RIGHT;

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // The explicitly inherited property.
        final StylePropertyMock propertyMock =
                PropertiesTestHelper.createStylePropertyMock(
                        expectations, "propertyMock");
        final StyleValue outputValue = StyleKeywords.ACCEPT;
        final StyleInherit inheritValue = STYLE_VALUE_FACTORY.getInherit();

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        try {
            transmittingEvents = false;

            boolean handled = false;
            if (newPropertyValue != null) {
                StyleValue newValue = newPropertyValue.getValue();
                if (newValue instanceof StylePair) {
                    StylePair pairValue = (StylePair) newValue;
                    updateEditorValue(first, pairValue.getFirst());
                    updateEditorValue(second, pairValue.getSecond());
                    Priority priority = newPropertyValue.getPriority();
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // The initialised property.
        final StylePropertyMock initialisedPropertyMock =
                PropertiesTestHelper.createStylePropertyMock(
                        expectations, "initialisedPropertyMock", false, false);
        final StyleValue initialisedValue = StyleKeywords.ARMENIAN;

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        final StylePropertyMock specifiedPropertyMock =
                PropertiesTestHelper.createStylePropertyMock(
                        expectations, "specifiedPropertyMock", false, false);

        // The value that was specified.
        final StyleValue specifiedValueMock = StyleKeywords.BASELINE;

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        Iterator iterator = values.stylePropertyIterator();
        boolean appended = false;
        while (iterator.hasNext()) {
            StyleProperty property = (StyleProperty) iterator.next();
            if (isOutputtable(values, property)) {
                StyleValue value = values.getComputedValue(property);
                if (value != null) {
                    if (appended) {
                        debug.append("; ");
                    } else {
                        appended = true;
                    }
                    debug.append(property.getName()).append(": ")
                            .append(value.getStandardCSS());
                    if (explicitlySpecifiedMarked &&
                            values.wasExplicitlySpecified(property)) {
                        debug.append("*");
                    }
                }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("horse"));
        functionArgs.add(STYLE_VALUE_FACTORY.getString(null, "."));
        functionArgs.add(ListStyleTypeKeywords.DECIMAL);
        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counters", functionArgs);

        assertNotNull("Function should return a value", functionValue);
        assertTrue("Function should return a StyleString",
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("cow"));
        functionArgs.add(STYLE_VALUE_FACTORY.getString(null, "."));
        functionArgs.add(ListStyleTypeKeywords.DECIMAL);
        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counters", functionArgs);

        assertNotNull("Function should return a value", functionValue);
        assertTrue("Function should return a StyleString",
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.