Package com.volantis.mcs.policies.variants.theme

Examples of com.volantis.mcs.policies.variants.theme.InternalThemeContentBuilder


                for (Object builderObject : builders) {
                    VariantBuilder builder = (VariantBuilder) builderObject;
                    if (builder.getVariantType() == VariantType.THEME) {
                        ContentBuilder variantContent =
                                builder.getContentBuilder();
                        InternalThemeContentBuilder themeContent =
                                (InternalThemeContentBuilder) variantContent;
                        if (themeContent.getStyleSheet() instanceof CSSStyleSheet) {
                            StyleSheet parsedStyleSheet =
                                    STYLE_SHEET_FACTORY.createStyleSheet(
                                            (CSSStyleSheet)
                                                  themeContent.getStyleSheet());
                            parsedStyleSheet.setSourceFormat(
                                    StyleSheetSourceFormat.CSS);
                            themeContent.setStyleSheet(parsedStyleSheet);
                            containsCSS = true;
                        }
                    }
                }
                if (containsCSS) {
View Full Code Here


        return activatedVariant.getContent();
    }

    public static RuntimeDeviceTheme activate(StyleSheet styleSheet) {

        InternalThemeContentBuilder themeContent =
                policyFactory.createThemeContentBuilder();
        themeContent.setStyleSheet(styleSheet);

        PolicyReferenceFactory referenceFactory = createReferenceFactory();

        ThemeActivator themeActivator = new ThemeActivator(referenceFactory);
View Full Code Here

        List variantBuilders = variablePolicyBuilder.getVariantBuilders();
        for (int i = 0; i < variantBuilders.size(); i++) {
            VariantBuilder variantBuilder = (VariantBuilder)
                    variantBuilders.get(i);

            InternalThemeContentBuilder themeContentBuilder =
                    (InternalThemeContentBuilder)
                    variantBuilder.getContentBuilder();
            InternalThemeContent theme =
                    themeContentBuilder.getInternalThemeContent();

            ActivatedThemeContent activated = activateThemeContent(
                    styleSheetActivator, theme);
            variantBuilder.setContentBuilder(
                    new FixedContentBuilder(activated));
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.theme.InternalThemeContentBuilder

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.