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


   * @throws Exception
   */
  public void testRenderHomePage_12() throws Exception
  {
    executeTest(HeaderSectionPage_12.class, "HeaderSectionPageExpectedResult_12.html");
    PackageResource res = (PackageResource)tester.getApplication().getSharedResources().get(
        "org.apache.wicket.markup.parser.filter.sub.HeaderSectionBorder/cborder.css");
    assertNotNull(res);
    String absPath = res.getAbsolutePath();
    assertNotNull(absPath);
    IResourceStream stream = res.getResourceStream();
    assertNotNull(stream);
  }
View Full Code Here

  }

  @Override
  protected Resource newResource()
  {
    PackageResource packageResource = JavascriptPackageResource.newPackageResource(getScope(),
      getName(), getLocale(), getStyle(), getVariation());
    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

   * @see org.apache.wicket.ResourceReference#newResource()
   */
  @Override
  protected Resource newResource()
  {
    PackageResource packageResource = CompressedPackageResource.newPackageResource(getScope(),
      getName(), getLocale(), getStyle(), getVariation());
    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

   *
   * @return The resource
   */
  protected Resource newResource()
  {
    PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),
      getStyle(), getVariation());
    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

  }

  @Override
  protected Resource newResource()
  {
    PackageResource packageResource = JavascriptPackageResource.newPackageResource(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

   * @see org.apache.wicket.markup.html.PackageResourceReference#newResource()
   */
  @Override
  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

   * @see org.apache.wicket.ResourceReference#newResource()
   */
  @Override
  protected Resource newResource()
  {
    PackageResource packageResource = CompressedPackageResource.newPackageResource(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

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

    }

    private void addOrReplaceImage() {
        final ObjectAdapter adapter = getModel().getObject();
        ObjectSpecification typeOfSpec;
        PackageResource imageResource = null;
        if (adapter != null) {
            typeOfSpec = adapter.getSpecification();
            final IconFacet iconFacet = typeOfSpec.getFacet(IconFacet.class);
            if (iconFacet != null) {
                final String iconName = iconFacet.iconName(adapter);
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.