Package org.apache.wicket

Examples of org.apache.wicket.ResourceReference


   * @param response
   */
  public void renderHead(IHeaderResponse response)
  {
    response.renderJavascriptReference(JAVASCRIPT);
    ResourceReference css = getCSS();
    if (css != null)
    {
      response.renderCSSReference(css);
    }
  }
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

   *
   * @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

    if (parent instanceof Border)
    {
      parent = parent.getParent();
    }
    final Class scope = parent.getClass();
    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
        resourceReference = new ResourceReference(Application.class, imageReferenceName);
        resourceReference.setLocale(locale);
        resourceReference.setStyle(style);
      }
      else
      {
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

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

        return new DecoratingHeaderResponse(response)
        {
          @Override
          public void renderJavascriptReference(ResourceReference reference, String id)
          {
            super.renderJavascriptReference(new ResourceReference("DECORATED-" +
              reference.getName()), id);
          }
        };
      }
    });
View Full Code Here

    public void renderHead(IHeaderResponse response)
    {
      for (int i = 0; i < 10; i++)
      {
        response.renderJavascriptReference(new ResourceReference("res" + i),
          Integer.toString(i));
      }
    }
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

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.