Package fiftyfive.wicket.js.locator

Examples of fiftyfive.wicket.js.locator.DependencyCollection


     */
    @Override
    public void renderHead(Component comp, IHeaderResponse response)
    {
        JavaScriptDependencyLocator locator = settings().getLocator();
        DependencyCollection scripts = new DependencyCollection();
       
        if(this.libraryName != null)
        {
            locator.findLibraryScripts(this.libraryName, scripts);
        }
View Full Code Here


     * detach() is called.
     */
    private void load(Component comp)
    {
        JavaScriptDependencyLocator locator = settings().getLocator();
        this.dependencies = new DependencyCollection();
        locator.findAssociatedScripts(this.templateLocation, this.dependencies);
       
        this.template = this.dependencies.getRootReference();
        if(null == this.template)
        {
View Full Code Here

    @Test
    public void testRenderHead_library() throws Exception
    {
        JavaScriptDependency dep = new MockedJavaScriptDependency("library");
       
        DependencyCollection expected = new DependencyCollection();
        expected.setCss(this.css);
        expected.add(this.script1);
        expected.add(this.script2);
        expected.add(this.script3);
        this.locator.setLibraryScripts(expected);
       
        dep.renderHead(null, this.response);

        verify(this.response).renderCSSReference(this.css);
View Full Code Here

    @Test
    public void testRenderHead_associated() throws Exception
    {
        JavaScriptDependency dep = new MockedJavaScriptDependency(getClass());
       
        DependencyCollection expected = new DependencyCollection();
        expected.add(this.script1);
        this.locator.setAssociatedScripts(expected);
       
        dep.renderHead(null, this.response);

        verify(this.response).renderJavaScriptReference(this.script1);
View Full Code Here

    {
        JavaScriptDependency dep = new MockedJavaScriptDependency(
            getClass(), "file.js"
        );
       
        DependencyCollection expected = new DependencyCollection();
        expected.add(this.script1);
        this.locator.setResourceScripts(expected);
       
        dep.renderHead(null, this.response);

        verify(this.response).renderJavaScriptReference(this.script1);
View Full Code Here

     * example usage.
     */
    public MergedJavaScriptBuilder()
    {
        super();
        this.deps = new DependencyCollection();
    }
View Full Code Here

TOP

Related Classes of fiftyfive.wicket.js.locator.DependencyCollection

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.