Package org.apache.wicket

Examples of org.apache.wicket.ResourceReference


   *
   * @return the url to use for the popup button/ icon
   */
  protected CharSequence getIconUrl() {
    return RequestCycle.get().urlFor(
        new ResourceReference(DatePicker.class, "icon1.gif"));
  }
View Full Code Here


          };
        }
      };
      sharedResources.add(uniqueName, newResource);
    }
    return new ResourceReference(scopeRef.get(), uniqueName);
  }
View Full Code Here

   * @param response
   */
  public void renderHead(IHeaderResponse response)
  {
    response.renderJavascriptReference(JAVASCRIPT);
    ResourceReference css = getCSS();
    if (css != null)
    {
      response.renderCSSReference(css);
    }
  }
View Full Code Here

  /**
   * Performs the tree initialization. Adds header contribution for the stylesheet.
   */
  private void init()
  {
    ResourceReference css = getCSS();
    if (css != null)
    {
      add(HeaderContributor.forCss(css.getScope(), css.getName()));
    }
  }
View Full Code Here

    add(newAvailableHeader(AVAILABLE_HEADER_ID));
    add(newSelectedHeader(SELECTED_HEADER_ID));

    add(HeaderContributor.forJavaScript(JAVASCRIPT));
    ResourceReference css = getCSS();
    if (css != null)
    {
      add(HeaderContributor.forCss(css));
    }
  }
View Full Code Here

    final Resource resource = getImageResource();
    if (resource != null)
    {
      localizedImageResource.setResource(resource);
    }
    final ResourceReference resourceReference = getImageResourceReference();
    if (resourceReference != null)
    {
      localizedImageResource.setResourceReference(resourceReference);
    }
    localizedImageResource.setSrcAttribute(tag);
View Full Code Here

      this.attribute = attribute;
      // Check whether it is a valid resource reference
      if (PackageResource.exists(clazz, href, getLocale(), getStyle()))
      {
        // Create the component implementing the link
        resourceReference = new ResourceReference(clazz, href, getLocale(), getStyle());
      }
      else
      {
        // The resource does not exist. Set to null and ignore when
        // rendering.
View Full Code Here

    if (parent instanceof Border)
    {
      parent = parent.getParent();
    }
    final Class scope = parent.getClass();
    this.resourceReference = new ResourceReference(scope, path)
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.ResourceReference#newResource()
View Full Code Here

          application.getSharedResources().add(Application.class, imageReferenceName,
              locale, style, imageResource);
        }

        // Create resource reference
        this.resourceReference = new ResourceReference(Application.class,
            imageReferenceName);
        resourceReference.setLocale(locale);
        resourceReference.setStyle(style);
      }
      else
View Full Code Here

   */
  public BaseTree(String id, IModel model)
  {
    super(id, model);

    ResourceReference css = getCSS();
    if (css != null)
    {
      add(HeaderContributor.forCss(css));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.ResourceReference

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.