Examples of StyleValue


Examples of com.volantis.mcs.themes.StyleValue

                                    MutablePropertyValues winner,
                                    MutablePropertyValues luser) {

        for (Iterator i = result.stylePropertyIterator(); i.hasNext();) {
            StyleProperty property = (StyleProperty) i.next();
            StyleValue initial = property.getStandardDetails().getInitialValue();

            boolean specified = false;
            StyleValue mergedValue = winner.getComputedValue(property);
            boolean ignored = winner.shouldExcludeFromCSS(property);

            StyleValue winnerComputed = winner.getComputedValue(property);
            StyleValue winnerSpecified = winner.getSpecifiedValue(property);
            StyleValue luserComputed = luser.getComputedValue(property);
            StyleValue luserSpecified = luser.getSpecifiedValue(property);

            if (winnerComputed != null && initial != null) {
                if (initial.equals(winnerComputed)
                        && winnerSpecified == null) {
                    winnerComputed = null;
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

            StatusUsage usage,
            PropertyValues inputValues,
            StyleValue deviceValue) {

        final PropertyDetails details = property.getStandardDetails();
        StyleValue initialValue = finder.getInitialValue(this.inputValues, details);
        if (inputValue == OptimizerHelper.ANY ||
                inputValue.equals(initialValue)) {
            return PropertyStatus.CLEARABLE;
        }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

            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.mcs.themes.StyleValue

        for (Iterator i = StylePropertyDetails.getDefinitions().stylePropertyIterator();
             i.hasNext();) {
           
            StyleProperty prop = (StyleProperty) i.next();
            StyleValue value = properties.getStyleValue(prop);
            values.expects.getComputedValue(prop).returns(value).any();
//            values.expects.getSpecifiedValue(prop).returns(value).any();
            values.expects.getComputedValue(prop).returns(value).any();
        }
        return values;
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        this.property = property;
    }

    // Javadoc inherited
    public StyleValue postProcess(StyleValue value) {
        StyleValue processedValue = value;
        if (value instanceof StyleInvalid) {
            String componentised = "mcs-component-url(\"" +
                    ((StyleInvalid) value).getValue() + "\")";
            StyleValue newValue = parseStyleValue(property, componentised);
            if (!(newValue instanceof StyleInvalid)) {
                processedValue = newValue;
            }
        }
        return processedValue;
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // An empty string is no value.
        if (textValue.trim().equals("")) {
            return null;
        }

        StyleValue value;
        try {
            CSSParser parser =
                    CSSParserFactory.getDefaultInstance().createStrictParser();
            value = parser.parseStyleValue(styleProperty, textValue);
        } catch (IllegalStateException ise) {
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        //   Test Expectations
        // =====================================================================

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("cow"));
        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", functionArgs);

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

Examples of com.volantis.mcs.themes.StyleValue

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("hippopotamus"));
        functionArgs.add(ListStyleTypeKeywords.LOWER_ALPHA);

        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", 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("hippopotamus"));
        functionArgs.add(ListStyleTypeKeywords.LOWER_ALPHA);

        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", functionArgs);
        assertSame(result, functionValue);
    }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

        // An empty string is no value.
        if (textValue.trim().equals("")) {
            return null;
        }

        StyleValue value;
        try {
            CSSParser parser = CSSParserFactory.getDefaultInstance().
                    createStrictParser();
            value = parser.parseStyleValue(styleProperty, textValue);
        } catch (IllegalStateException ise) {
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.