Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleValues


        if (nestedStyles.hasNestedStyles()) {

            // Save away the existing inheritable values so they can be
            // restored later.
            StyleValues oldInheritableValues = inheritableValues;

            // Create an immutable set of properties from which any nested
            // pseudo elements will inherit.
            inheritableValues = values.createImmutablePropertyValues();
View Full Code Here


        StyleValue bgColor = cellValues.getStyleValue(
                StylePropertyDetails.BACKGROUND_COLOR);
        if (bgColor == BackgroundColorKeywords.TRANSPARENT) {

            for (int i = 0; i < layers.length; i++) {
                StyleValues layer = layers[i];

                StyleValue layerBgColor = layer.getStyleValue(
                        StylePropertyDetails.BACKGROUND_COLOR);
                StyleValue layerBgImage = layer.getStyleValue(
                        StylePropertyDetails.BACKGROUND_IMAGE);
                if (layerBgImage != BackgroundImageKeywords.NONE) {
                    // Don't set background color if the layer has an image
                    // otherwise it couldn't be seen.
                    break;
View Full Code Here

            StyleValue cellWidth = cellValues.getStyleValue(
                    StylePropertyDetails.WIDTH);
            if (cellWidth == WidthKeywords.AUTO) {

                StyleValues columnValues = getLayer(COLUMN);
                StyleValue columnWidth = columnValues.getStyleValue(
                        StylePropertyDetails.WIDTH);

                // The minimum width of the cell will be the largest of the
                // specified width and the MCW (the minimum content width
                // determined by the content). So setting the width of the cell to
View Full Code Here

        // we support columns in the output markup we cannot support this.
    }

    private void setBackgroundFromLayer(
            MutablePropertyValues values, int layer) {
        StyleValues fromValues = getLayer(layer);
        StyleValue bgColor = fromValues.getStyleValue(BACKGROUND_COLOR);
        if (bgColor != BackgroundColorKeywords.TRANSPARENT) {
            values.setComputedValue(BACKGROUND_COLOR, bgColor);
        }
    }
View Full Code Here

            values.setComputedValue(BACKGROUND_COLOR, bgColor);
        }
    }

    private boolean layerIsTransparent(int layer) {
        StyleValues values = getLayer(layer);
        StyleValue bgColor = values.getStyleValue(BACKGROUND_COLOR);
        StyleValue bgImage = values.getStyleValue(
                StylePropertyDetails.BACKGROUND_IMAGE);
        return (bgColor == BackgroundColorKeywords.TRANSPARENT
                && bgImage == BackgroundImageKeywords.NONE);
    }
View Full Code Here

TOP

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

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.