Examples of StyleSheetCompiler


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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

        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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

        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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

        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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

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

Examples of com.volantis.styling.compiler.StyleSheetCompiler

        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
Copyright © 2018 www.massapi.com. 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.