Package org.apache.wicket.markup.html

Examples of org.apache.wicket.markup.html.IHeaderContributor


     * @param executeJS
     * @return
     */
    public static final HeaderContributor forModule(final String module, final String executeJS)
  {
    return new HeaderContributor(new IHeaderContributor()
    {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response)
      {
View Full Code Here


   * The link title is is based upon the feed's title.
   *
   * @see http://blogs.msdn.com/rssteam/articles/PublishersGuide.aspx
   */
  public static HeaderContributor autodiscoveryLink(final ResourceReference reference, final ValueMap params) {
    return new HeaderContributor(new IHeaderContributor() {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response) {
        CharSequence url = RequestCycle.get().urlFor(reference, params);

View Full Code Here

   * @param target ajax target
   * @param type
   */
  public void publishMessage(AjaxRequestTarget target, final ToasterMessageType type){
    if (target == null) {
          add(new HeaderContributor(new IHeaderContributor() {
        public void renderHead(IHeaderResponse response) {
          response.renderOnDomReadyJavascript(getPublishMessageJavaScript(type));
        }
          }));
    } else {
View Full Code Here

  }

  public MergedHeaderContributor(List<ResourceReference> refs, String cssMediaType) {
    _refs = new ArrayList<ResourceReference>(refs);
    _cssMediaType = cssMediaType;
    _contributor = new IHeaderContributor() {

      private static final long serialVersionUID = 1L;

      public void renderHead(final IHeaderResponse response) {
        for (final ResourceReference ref : _refs) {
View Full Code Here

        super(id);
        // Add JQuery JS libraries
        add(new JQueryLavaLampBehavior());
        add(JavascriptPackageResource.getHeaderContribution(LavaLampMenuPanel.class,
                "headlamp.js"));
        add(new HeaderContributor(new IHeaderContributor() {

            public void renderHead(IHeaderResponse response) {
                response.renderCSSReference(getCssResourceReference());
            }
        }));
View Full Code Here

 
  private void addJavascriptInitializers() {
    setOutputMarkupId(true);
    add(JavascriptPackageResource.getHeaderContribution(JSReference.getReference(JS_LIB_VERSION_DESCRIPTOR)));
    add(JavascriptPackageResource.getHeaderContribution(LargeView.class, "LargeView.js"));
    add(new HeaderContributor(new IHeaderContributor() {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response) {
        String calID = LargeView.this.getMarkupId();
        response.renderOnDomReadyJavascript("LargeViewCalendar.initialize('" + calID + "');");
View Full Code Here

  public static void configure(WebApplication application)
  {
    application.getRequestCycleListeners().add(new PageRequestHandlerTracker());
    application.mountResource("/" + JEEWebGlobalAjaxHandler.class.getSimpleName(),
      new JEEWebGlobalAjaxHandler());
    application.getHeaderContributorListeners().add(new IHeaderContributor()
    {

      private static final long serialVersionUID = 1644041155625458328L;

      @Override
View Full Code Here

     * @param module
     * @param executeJS
     * @return
     */
    public static final IHeaderContributor forModule(final String module, final String executeJS) {
        return new IHeaderContributor() {
            private static final long serialVersionUID = 1L;

            public void renderHead(IHeaderResponse response) {

                //Render the YuiLoader min JS
View Full Code Here

   *            The path
   * @return the new header contributor instance
   */
  public static final HeaderContributor forCss(final Class scope, final String path)
  {
    return new HeaderContributor(new IHeaderContributor()
    {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response)
      {
View Full Code Here

   * @return the new header contributor instance
   */
  public static final HeaderContributor forCss(final Class scope, final String path,
      final String media)
  {
    return new HeaderContributor(new IHeaderContributor()
    {
      private static final long serialVersionUID = 1L;

      public void renderHead(IHeaderResponse response)
      {
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.IHeaderContributor

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.