Examples of StylesheetLink


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

            javascriptSupport.addInitializerCall("activate", focusFieldId);
    }

    public void addStylesheetLink(Asset stylesheet, String media)
    {
        javascriptSupport.importStylesheet(new StylesheetLink(stylesheet, new StylesheetOptions(media)));
    }
View Full Code Here

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

        javascriptSupport.importStylesheet(new StylesheetLink(stylesheet, new StylesheetOptions(media)));
    }

    public void addStylesheetLink(String stylesheetURL, String media)
    {
        javascriptSupport.importStylesheet(new StylesheetLink(stylesheetURL, new StylesheetOptions(media)));
    }
View Full Code Here

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

        jsStack.add(assetSource.getClasspathAsset("classpath:/META-INF/resources/webjars/bootstrap/3.0.2/js/bootstrap.min.js"));
        jsStack.add(assetSource.getContextAsset("scripts/lib/plugins/jquery.cookie.js", null));
        jsStack.add(assetSource.getContextAsset("scripts/script.js", null));

        this.cssStack = CollectionFactory.newList();
        cssStack.add(new StylesheetLink(assetSource.getClasspathAsset("classpath:/META-INF/resources/webjars/bootswatch/3.0.0/spacelab/bootstrap.min.css")));
        cssStack.add(new StylesheetLink(assetSource.getContextAsset("styles/style.css", null)));
        cssStack.add(new StylesheetLink(assetSource.getContextAsset("styles/t5-override.css", null)));
    }
View Full Code Here

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

        {
            public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer)
            {
                DocumentLinker linker = environment.peekRequired(DocumentLinker.class);

                linker.addStylesheetLink(new StylesheetLink(defaultStylesheet.toClientURL()));

                renderer.renderMarkup(writer);
            }
        };
View Full Code Here

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

    {
        String media = "print";
        JavaScriptSupport javascriptSupport = mockJavaScriptSupport();
        Asset asset = mockAsset("foo.css");

        javascriptSupport.importStylesheet(new StylesheetLink("foo.css", new StylesheetOptions(media)));

        replay();

        RenderSupport support = new RenderSupportImpl(null, null, javascriptSupport);
View Full Code Here

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

    public void add_stylesheet_link_by_url()
    {
        String media = "print";
        JavaScriptSupport javascriptSupport = mockJavaScriptSupport();

        javascriptSupport.importStylesheet(new StylesheetLink(ASSET_URL, new StylesheetOptions(media)));

        replay();

        RenderSupport support = new RenderSupportImpl(null, null, javascriptSupport);
View Full Code Here

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

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

        // Only checked if there's something to link.

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

        replay();

        linker.updateDocument(document);
View Full Code Here

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

        document.newRootElement("html");

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

        linker.addStylesheetLink(new StylesheetLink("style.css", new StylesheetOptions("print")));
        linker.addScriptLink("foo.js");
        linker.addScriptLink("bar/baz.js");
        linker.addScript(InitializationPriority.IMMEDIATE, "pageInitialization();");

        linker.updateDocument(document);
View Full Code Here

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

        document.newRootElement("html").element("body").element("p").text("Ready to be updated with styles.");

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

        linker.addStylesheetLink(new StylesheetLink("foo.css"));
        linker.addStylesheetLink(new StylesheetLink("bar/baz.css", new StylesheetOptions("print")));

        linker.updateDocument(document);

        check(document, "add_style_links.txt");
    }
View Full Code Here

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

        document.newRootElement("html").element("head").comment(" existing head ").getContainer().element("body").text(
                "body content");

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

        linker.addStylesheetLink(new StylesheetLink("foo.css"));

        linker.updateDocument(document);

        check(document, "existing_head_used_if_present.txt");
    }
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.