Package com.volantis.styling.compiler

Examples of com.volantis.styling.compiler.StyleSheetCompiler


        StylingFactory factory = StylingFactory.getDefaultInstance();

        CompilerConfiguration configuration = factory.createCompilerConfiguration();
        configuration.setSource(StyleSheetSource.THEME);

        StyleSheetCompiler compiler = factory.createStyleSheetCompiler(configuration);
        CompiledStyleSheet sheet = compiler.compileStyleSheet(styleSheet);

        StylingEngine engine = factory.createStylingEngine();
        engine.pushStyleSheet(sheet);
        return engine;
    }
View Full Code Here


        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        CompilerConfiguration configuration =
                stylingFactory.createCompilerConfiguration();
        configuration.setSource(StyleSheetSource.THEME);
        configuration.addFunctionResolver(functionResolverMock);
        StyleSheetCompiler compiler =
                stylingFactory.createStyleSheetCompiler(configuration);

        CompiledStyleSheet compiledStyleSheet =
                compiler.compileStyleSheet(styleSheet);

        StylingEngine engine = stylingFactory.createStylingEngine();

        engine.pushStyleSheet(compiledStyleSheet);
        return engine;
View Full Code Here

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        CompilerConfiguration configuration =
                stylingFactory.createCompilerConfiguration();
        configuration.setSource(StyleSheetSource.THEME);
        configuration.addFunctionResolver(StylingFunctions.getResolver());
        StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
                configuration);
        CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(null);

        DeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext(pageContext);
        deviceLayoutContext.setMarinerPageContext(pageContext);
        RuntimeDeviceLayout runtimeDeviceLayout = new RuntimeLayoutAdapter(
View Full Code Here

        //Using the parser, process the style attribute into a Style Sheet.
        StyleSheet styleSheet =
                inlineStyleAttributeParser.parseInlineStyleAttribute(
                inlineStyleValue, null, styleSelector);

        StyleSheetCompiler styleSheetCompiler =
                styleSheetCompilerFactory.
                        createStyleSheetCompiler();

        return styleSheetCompiler.compileStyleSheet(styleSheet);
    }
View Full Code Here

        CompilerConfiguration configuration =
                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

            // No rules are imported from the parent so just use the
            // existing style sheet.
            compositeStyleSheet = styleSheet;
        }

        StyleSheetCompiler styleSheetCompiler =
                styleSheetCompilerFactory.createStyleSheetCompiler();

        CompiledStyleSheet compiledStyleSheet =
                styleSheetCompiler.compileStyleSheet(compositeStyleSheet);

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

        // Create a style sheet compiler to compile style sheets into compiled
        // style sheets.
        // Each CSS compiler needs it's own style sheet compiler since the
        // style sheet compiler is not thread safe.
        final StyleSheetCompiler styleSheetCompiler =
                styleSheetCompilerFactory.createStyleSheetCompiler();

        // Create the activator which will activate any mcs specific values
        // such as mcs-component-uri(). If project and/or baseURL are null then
        // we can only compile css which can be guaranteed not to contain
View Full Code Here

        // 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

        StyleSheet styleSheet =
                styleSheetBuilder.build(layout);

        styleSheetActivator.activate(styleSheet);

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

        return new ActivatedLayoutContent(layout, compiledStyleSheet,
                containerNameToFragments);
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.compiler.StyleSheetCompiler

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.