Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleColorName


    public String render(StyleValue value) {

        String result = null;

        if (value instanceof StyleColorName) {
            StyleColorName color = (StyleColorName) value;
            result = renderName(color);
        } else if (value instanceof StyleColorPercentages) {
            // ignore percentages, HTML3.2 doesn't support 'em.
        } else if (value instanceof StyleColorRGB) {
            StyleColorRGB color = (StyleColorRGB) value;
View Full Code Here


        String offColour = attributes.getOffColor();
        String onColour = attributes.getOnColor();

        if (offColour != null) {
            StyleColorName colorStyleValue =
                    StyleColorNames.getColorByName(offColour);

            styles.getPropertyValues().setComputedAndSpecifiedValue(
                    StylePropertyDetails.COLOR, colorStyleValue);
        }

        if (onColour != null) {
            StyleColorName colorStyleValue =
                    StyleColorNames.getColorByName(onColour);

            styles.getNestedStyles(StatefulPseudoClasses.HOVER).
                    getPropertyValues().setComputedAndSpecifiedValue(
                    StylePropertyDetails.COLOR, colorStyleValue);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.StyleColorName

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.