Package com.volantis.mcs.runtime.policies.theme

Examples of com.volantis.mcs.runtime.policies.theme.ActivatedThemeContent


        // Get the activated variant.
        Content activatedContent = activateContent(themeContent, themeActivator,
                "policy.mthm", PolicyType.THEME, VariantType.THEME);

        // Get the content.
        ActivatedThemeContent activatedThemeContent =
                (ActivatedThemeContent) activatedContent;

        StyleSheetCompiler styleSheetCompiler = ThemeStyleSheetCompilerFactory.
                getDefaultInstance().createStyleSheetCompiler();

        CompiledStyleSheet compiledStyleSheet =
                styleSheetCompiler.compileStyleSheet(
                        activatedThemeContent.getStyleSheet());

        return new RuntimeThemeAdapter(null, compiledStyleSheet);
    }
View Full Code Here


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

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

                    "Unknown style sheet " + baseStyleSheet);
        }

        styleSheetActivator.activate(styleSheet);

        return new ActivatedThemeContent(styleSheet, theme.getImportParent());
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.policies.theme.ActivatedThemeContent

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.