Package com.volantis.styling.sheet

Examples of com.volantis.styling.sheet.CompiledStyleSheet


        StyleSheetCompilerFactory compilerFactory =
                getStyleSheetCompilerFactory();
        compilerBuilder.setStyleSheetCompilerFactory(compilerFactory);
        CSSCompiler cssCompiler = compilerBuilder.getCSSCompiler();

        CompiledStyleSheet defaultCompiledStyleSheet;
        try {
            URL url = getClass().getResource("/com/volantis/mcs/runtime/default.css");
            InputStream stream = url.openStream();
            defaultCompiledStyleSheet = cssCompiler.compile(
                    new InputStreamReader(stream), null);
View Full Code Here


        }
       
        String sourceLocation = device.getName() + "/" +
                DevicePolicyConstants.DEFAULT_CSS;

        CompiledStyleSheet compiledStyleSheet = compileDeviceStyleSheet(
                defaultCSS, sourceLocation);

        configurationBuilder.setDeviceStyleSheet(compiledStyleSheet);

        configurationBuilder.setDetailsSet(detailsSet);
View Full Code Here

                String projectThemeLocation = (String) themeLocations.next();
                if (projectThemeLocation != null) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Project theme: " + projectThemeLocation);
                    }
                    CompiledStyleSheet projectStyleSheet =
                            pageContext.retrieveThemeStyleSheet(
                                    projectThemeLocation);
                    if (projectStyleSheet != null) {
                        themeStyleSheets.addStyleSheet(projectStyleSheet);
                    }
View Full Code Here

                stylingFactory.createCompilerConfiguration();
        configuration.setSource(StyleSheetSource.LAYOUT);

        StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
                configuration);
        CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(
                styleSheet);

        StylingEngine stylingEngine = stylingFactory.createStylingEngine();

        stylingEngine.pushStyleSheet(compiledStyleSheet);
View Full Code Here

        }

        StyleSheetCompiler styleSheetCompiler =
                styleSheetCompilerFactory.createStyleSheetCompiler();

        CompiledStyleSheet compiledStyleSheet =
                styleSheetCompiler.compileStyleSheet(compositeStyleSheet);

        return new RuntimeThemeAdapter(policy.getName(), compiledStyleSheet);
    }
View Full Code Here

        //   Test Expectations
        // =====================================================================
        StyleSheet styleSheet = parseStyleSheet(
                "p {mcs-container: mcs-container-instance('alpha', 1)}");

        CompiledStyleSheet compiledStyleSheet =
                compiler.compileStyleSheet(styleSheet);

        engine.pushStyleSheet(compiledStyleSheet);

        engine.startElement(XDIMESchemata.XHTML2_NAMESPACE, "p", attributes);
View Full Code Here

        // =====================================================================
        StyleSheet styleSheet = parseStyleSheet(
                "p {counter-reset: alpha 1}\n" +
                "p {mcs-container: mcs-container-instance('alpha', counter(alpha))}");

        CompiledStyleSheet compiledStyleSheet =
                compiler.compileStyleSheet(styleSheet);

        engine.pushStyleSheet(compiledStyleSheet);

        engine.startElement(XDIMESchemata.XHTML2_NAMESPACE, "p", attributes);
View Full Code Here

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

        CSSCompiler compiler = factory.createDeviceCSSCompiler(DeviceOutlook.REALISTIC);
        CompiledStyleSheet compiledSheet = compiler.compile(new StringReader(
                "* {text-align: left}" +
                "a {font-family: <not-set>}" +
                "a:link {font-size: <unknown> !-medium}" +
                "a:link:hover {color: <default>}" +
                "a:first-letter:link {color: green}"),
View Full Code Here

        if (input == null) {
            throw new IllegalArgumentException("input cannot be null");
        }

        CompiledStyleSheet compiledStyleSheet;

        // Parse the CSS into a style sheet.
        StyleSheet styleSheet = parser.parseStyleSheet(input, url);
        if (styleSheet == null) {
            throw new IllegalStateException("No style sheet generated");
View Full Code Here

     * @param stylingEngine
     */
    public void pushAll(StyleSheetContainer stylingEngine) {

        for (int i = 0; i < compiledStyleSheets.size(); i++) {
            CompiledStyleSheet styleSheet = (CompiledStyleSheet)
                    compiledStyleSheets.get(i);
            stylingEngine.pushStyleSheet(styleSheet);
        }

        immutable = true;
View Full Code Here

TOP

Related Classes of com.volantis.styling.sheet.CompiledStyleSheet

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.