Package com.volantis.styling.compiler

Examples of com.volantis.styling.compiler.CompilerConfiguration


        StyleSheet styleSheet = parser.parseStyleSheet(new StringReader(css),
                null);

        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();
View Full Code Here


        CSSParserFactory factory = CSSParserFactory.getDefaultInstance();
        CSSParser parser = factory.createStrictParser();
        StyleSheet styleSheet = parser.parseStyleSheet(reader, null);

        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);
View Full Code Here

        protocol.initialiseCanvas();
        protocol.initialisePageHead();
        protocol.setWriteHead(false);

        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 =
View Full Code Here

     * Create a configuration.
     *
     * @return The newly created configuration.
     */
    private static CompilerConfiguration createConfiguration() {
        CompilerConfiguration configuration = new CompilerConfigurationImpl();

        configuration.setSource(StyleSheetSource.DEVICE);
        configuration.setSupportedPseudoEntities(
                new DevicePseudoStyleEntities());
        configuration.setSpecificityCalculator(
                new SpecificityCalculatorImpl());
        return configuration;
    }
View Full Code Here

//        String css = StyleSheetTester.renderStyleSheet(styleSheet);
//        System.out.println("CSS\n" + css);

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();

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

        StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
                configuration);
        CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(
                styleSheet);
View Full Code Here

TOP

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

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.