Examples of DependencyCollection


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

Examples of fiftyfive.wicket.js.locator.DependencyCollection

     * 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

Examples of fiftyfive.wicket.js.locator.DependencyCollection

    @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

Examples of fiftyfive.wicket.js.locator.DependencyCollection

    @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

Examples of fiftyfive.wicket.js.locator.DependencyCollection

    {
        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

Examples of fiftyfive.wicket.js.locator.DependencyCollection

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

Examples of org.stjs.generator.DependencyCollection

    Timers.start("js-exec");
    List<File> javascriptFiles = new ArrayList<File>();
    try {
      File jsFile = new File(generationPath, stjsClass.getJavascriptFiles().get(0).getPath());
      String content = Files.toString(jsFile, Charset.defaultCharset());
      List<ClassWithJavascript> allDeps = new DependencyCollection(stjsClass).orderAllDependencies(Thread.currentThread()
          .getContextClassLoader());
      for (ClassWithJavascript dep : allDeps) {
        for (URI js : dep.getJavascriptFiles()) {
          if (dep instanceof BridgeClass) {
            javascriptFiles.add(new File(resourcePath, js.getPath()));
View Full Code Here

Examples of org.stjs.generator.DependencyCollection

        appendScriptTag(resp, script);
      }
    }

    Set<URI> jsFiles = new LinkedHashSet<URI>();
    for (ClassWithJavascript dep : new DependencyCollection(stjsClass).orderAllDependencies(getConfig().getClassLoader())) {

      if (addedScripts != null && dep instanceof BridgeClass) {
        // bridge dependencies are not added when using @Scripts
        System.out
            .println("WARNING: You're using @Scripts deprecated annotation that disables the automatic inclusion of the Javascript files of the bridges you're using! "
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.