Package org.apache.wicket.markup.head

Examples of org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem


        super(ParsleyExtendJsReference.class, "parsley.extend.min.js");
    }

    @Override
    public Iterable<? extends HeaderItem> getDependencies() {
        final JavaScriptReferenceHeaderItem parsleyJsReference = JavaScriptHeaderItem.forReference(new ParsleyJsReference());
        final Iterable<? extends HeaderItem> parentDependencies = super.getDependencies();
        final ArrayList<HeaderItem> headerItems = new ArrayList<HeaderItem>();
        for (HeaderItem parentDependency : parentDependencies) {
            headerItems.add(parentDependency);
        }
View Full Code Here


     */
    @Override
    public void renderHead(IBootstrapSettings settings, IHeaderResponse headerResponse) {
        super.renderHead(settings, headerResponse);

        final JavaScriptReferenceHeaderItem jsReference = JavaScriptHeaderItem.forReference(settings.getJsResourceReference(), new PageParameters(), "bootstrap-js", settings.deferJavascript());
        References.renderWithFilter(settings, headerResponse, jsReference);
    }
View Full Code Here

        super(UploadProgressBarJavaScriptReference.class, "progressbar.js");
    }

    @Override
    public Iterable<? extends HeaderItem> getDependencies() {
        JavaScriptReferenceHeaderItem headerItem = JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
                org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar.class, "progressbar.js"));

        return Dependencies.combine(super.getDependencies(), headerItem);
    }
View Full Code Here

          @Override
          public void render(HeaderItem item)
          {
            if (item instanceof JavaScriptReferenceHeaderItem)
            {
              JavaScriptReferenceHeaderItem original = (JavaScriptReferenceHeaderItem)item;
              item = JavaScriptHeaderItem.forReference(new PackageResourceReference(
                "DECORATED-" + original.getReference().getName()), original.getId());
            }
            super.render(item);
          }
        };
      }
View Full Code Here

        super(ParsleyExtendJsReference.class, WebjarsVersion.useRecent("parsleyjs/current/dist/parsley.extend.min.js"));
    }

    @Override
    public Iterable<? extends HeaderItem> getDependencies() {
        final JavaScriptReferenceHeaderItem parsleyJsReference = JavaScriptHeaderItem.forReference(new ParsleyJsReference());
        final Iterable<? extends HeaderItem> parentDependencies = super.getDependencies();
        final ArrayList<HeaderItem> headerItems = new ArrayList<HeaderItem>();
        for (HeaderItem parentDependency : parentDependencies) {
            headerItems.add(parentDependency);
        }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem

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.