Examples of StylesheetOptions


Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

        document.newRootElement("html");

        DocumentLinkerImpl linker = new DocumentLinkerImpl(true, "1.2.3", true);

        linker.addStylesheetLink(new StylesheetLink("everybody.css"));
        linker.addStylesheetLink(new StylesheetLink("just_ie.css", new StylesheetOptions(null, "IE")));

        linker.updateDocument(document);

        assertEquals(document.toString(), readFile("ie_conditional_stylesheet.txt"));
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

    private JavaScriptSupport javascriptSupport;

    @Import(stylesheet = "context:css/via-import.css")
    void afterRender()
    {
        javascriptSupport.importStylesheet(new StylesheetLink(ieOnly, new StylesheetOptions(null, "IE")));
    }
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

        return zoneWithEmptyBody.getBody();
    }
   
    void afterRender()
    {
        jss.importStylesheet(new StylesheetLink(overridesCSS, new StylesheetOptions().asAjaxInsertionPoint()));
    }
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

    private Asset logo;

    @Import(stylesheet = "context:css/via-import.css")
    void afterRender()
    {
        javascriptSupport.importStylesheet(new StylesheetLink(ieOnly, new StylesheetOptions(null, "IE")));
    }
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

    @Test
    public void duplicate_stylesheet_ignored_first_media_wins()
    {
        DocumentLinker linker = mockDocumentLinker();
        StylesheetOptions options = new StylesheetOptions("print");

        linker.addStylesheetLink(new StylesheetLink("style.css", options));

        replay();

        JavaScriptSupportImpl jss = new JavaScriptSupportImpl(linker, null, null);

        jss.importStylesheet(new StylesheetLink("style.css", options));
        jss.importStylesheet(new StylesheetLink("style.css", new StylesheetOptions("hologram")));

        jss.commit();

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

        return zoneWithEmptyBody.getBody();
    }

    void afterRender()
    {
        jss.importStylesheet(new StylesheetLink(overridesCSS, new StylesheetOptions().asAjaxInsertionPoint()));

        jss.addScript(
                "$('%s').observe(Tapestry.ZONE_UPDATED_EVENT, function() { $('zone-update-message').update('Zone updated.'); });",
                output.getClientId());
    }
View Full Code Here

Examples of org.apache.tapestry5.services.javascript.StylesheetOptions

        return zoneWithEmptyBody.getBody();
    }
   
    void afterRender()
    {
        jss.importStylesheet(new StylesheetLink(overridesCSS, new StylesheetOptions().asAjaxInsertionPoint()));

        jss.addScript(
                "$('%s').observe(Tapestry.ZONE_UPDATED_EVENT, function() { $('zone-update-message').update('Zone updated.'); });",
                output.getClientId());
    }
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.