Package org.apache.wicket.markup.html

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


   *
   * @return The resource
   */
  protected Resource newResource()
  {
    PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),
      getStyle());
    if (packageResource != null)
    {
      locale = packageResource.getLocale();
    }
    else
    {
      throw new IllegalArgumentException("package resource [scope=" + getScope() + ",name=" +
        getName() + ",locale=" + getLocale() + "style=" + getStyle() + "] not found");
View Full Code Here


          if (resource == null)
          {
            // still null? try to see whether it is a package
            // resource that should
            // be lazily loaded
            PackageResource packageResource = PackageResource.get(getScope(), name);
            // will throw an exception if not found, so if we come
            // here, it was found
            sharedResources.add(name, packageResource);
          }
        }
View Full Code Here

   *
   * @return The resource
   */
  protected Resource newResource()
  {
    PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),
      getStyle());
    if (packageResource != null)
    {
      locale = packageResource.getLocale();
    }
    else
    {
      throw new IllegalArgumentException("package resource [scope=" + getScope() + ",name=" +
        getName() + ",locale=" + getLocale() + "style=" + getStyle() + "] not found");
View Full Code Here

          String path = resourceKey.substring(ix + 1);
          path = Strings.replaceAll(path, escapeString, "..").toString();

          if (PackageResource.exists(scope, path, null, null))
          {
            PackageResource packageResource = PackageResource.get(scope, path);
            if (sharedResources.get(resourceKey) == null)
            {
              sharedResources.add(scope, path, null, null, packageResource);
            }
            resource = packageResource;
View Full Code Here

      /**
       * @see org.apache.wicket.ResourceReference#newResource()
       */
      protected Resource newResource()
      {
        PackageResource pr = PackageResource.get(getScope(), getName(),
          LocalizedImageResource.this.locale, style);
        locale = pr.getLocale();
        return pr;
      }
    };
    resourceReference.setLocale(locale);
    resourceReference.setStyle(style);
View Full Code Here

       * @see org.apache.wicket.ResourceReference#newResource()
       */
      @Override
      protected Resource newResource()
      {
        PackageResource pr = PackageResource.get(getScope(), getName(),
          LocalizedImageResource.this.locale, style);
        locale = pr.getLocale();
        return pr;
      }
    };
    resourceReference.setLocale(locale);
    resourceReference.setStyle(style);
View Full Code Here

      /**
       * @see org.apache.wicket.ResourceReference#newResource()
       */
      protected Resource newResource()
      {
        PackageResource pr = PackageResource.get(getScope(), getName(),
            LocalizedImageResource.this.locale, style);
        locale = pr.getLocale();
        return pr;
      }
    };
    resourceReference.setLocale(locale);
    resourceReference.setStyle(style);
View Full Code Here

          if (resource == null)
          {
            // still null? try to see whether it is a package
            // resource that should
            // be lazily loaded
            PackageResource packageResource = PackageResource.get(getScope(), name);
            // will throw an exception if not found, so if we come
            // here, it was found
            sharedResources.add(name, packageResource);
          }
        }
View Full Code Here

   *
   * @return The resource
   */
  protected Resource newResource()
  {
    PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),
      getStyle());
    if (packageResource != null)
    {
      locale = packageResource.getLocale();
    }
    else
    {
      throw new IllegalArgumentException("package resource [scope=" + getScope() + ",name=" +
        getName() + ",locale=" + getLocale() + "style=" + getStyle() + "] not found");
View Full Code Here

          // prevent crippled urls in browser
          String path = resourceKey.substring(ix + 1).replace(escapeString, "..");

          if (PackageResource.exists(scope, path, null, null))
          {
            PackageResource packageResource = PackageResource.get(scope, path);
            if (sharedResources.get(resourceKey) == null)
            {
              sharedResources.add(scope, path, null, null, packageResource);
            }
            resource = packageResource;
View Full Code Here

TOP

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

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.