Examples of StyleSheetConfiguration


Examples of com.volantis.mcs.runtime.StyleSheetConfiguration

            boolean enableExternalCaching) throws Exception {

        Volantis bean = new TestableVolantis() {
            // JavaDoc inherited
            public StyleSheetConfiguration getStyleSheetConfiguration() {
                StyleSheetConfiguration config;
                if (configuration == null) {
                    // No config specified so create a default one
                    config = new StyleSheetConfiguration();
                } else {
                    // Allow embedding of specified config
                    config = configuration;
                }
                return config;
View Full Code Here

Examples of com.volantis.mcs.runtime.StyleSheetConfiguration

     * Test the external css generation when the configuration has 'session' type
     * set.
     */
    public void testMarkupWithSessionTypeSet() throws Exception {

        cfg = new StyleSheetConfiguration();
        cfg.setCssSessionType("include-id-in-url");
        contextPathURL = new MarinerURL("/mariner/url");

        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
View Full Code Here

Examples of com.volantis.mcs.runtime.StyleSheetConfiguration

                logger.debug("Cannot write style sheets as there " +
                             "is no renderer");
            }
        } else {
            // Determine the rendering styles that are allowed
            StyleSheetConfiguration configuration =
                context.getVolantisBean().getStyleSheetConfiguration();

            final boolean externalable =
                (configuration.getSupportsExternal() &&
                supportsExternalStyleSheets);

            final boolean internalable = supportsInlineStyles;

            // Only proceed if it is actually possible to render stylesheets
            // in one or other way.
            if (externalable || internalable) {

                // Determine the specified stylesheet render mode.
                StylesheetRenderMode specifiedMode = getSpecifiedRenderMode(
                        preferredLocationForThemeStylesheets,
                        protocolThemeStylesheetPreference,
                        configuration.getPreferredLocation());

                // Determine the stylesheet renderMode mode
                StylesheetRenderMode renderMode = determineActualRenderMode(
                        specifiedMode, externalable, internalable);
View Full Code Here

Examples of com.volantis.mcs.runtime.StyleSheetConfiguration

        // optional for XDIME2.
        paneInstance.expects.setStyleClass(null).any();
        paneInstance.expects.getAttributes().returns(protocolPaneAttributes).any();
        paneInstance.expects.getFormat().returns(pane).any();

        StyleSheetConfiguration styleSheetConfig = new StyleSheetConfiguration();
        volantisMock.expects.getPageHeadingMsg().returns(PAGE_HEADER_COMMENT);
        volantisMock.expects.getStyleSheetConfiguration().returns(
            styleSheetConfig);
       
        volantisMock.expects.getPageTrackerFactory().returns(null).any();
View Full Code Here

Examples of com.volantis.mcs.runtime.StyleSheetConfiguration

    // Javadoc inherited.
    protected CssReference createExternalCSSReference() {
        Volantis volantis = context.getVolantisBean();
        Cache cssCache = volantis.getCSSCache();
        StyleSheetConfiguration configuration =
            volantis.getStyleSheetConfiguration();
        MarinerURL contextPathUrl = context.getEnvironmentContext()
            .getContextPathURL();

        return new ExternalCSSReference(getCSSModule(), cssCache,
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.