Package org.apache.wicket.request.resource

Examples of org.apache.wicket.request.resource.PackageResourceReference


   * Relative ResourceReferences, WICKET-3514
   */
  @Test
  public void resourceReferenceWithLessSegments()
  {
    PackageResourceReference resource = new PackageResourceReference(getClass(),
      "crypt/crypt.txt");
    Url url = mapper.mapHandler(new ResourceReferenceRequestHandler(resource));
    url.getSegments().remove(url.getSegments().size() - 1);
    url.getSegments().remove(url.getSegments().size() - 1);
    url.getSegments().add("less-crypt.txt");
View Full Code Here


  public void renderHead(IHeaderResponse response)
  {
    super.renderHead(response);
    if (addDefaultCssStyle)
    {
      response.renderCSSReference(new PackageResourceReference(RatingPanel.class,
        "RatingPanel.css"));
    }

  }
View Full Code Here

    catch (NullPointerException e)
    {
            // Ignore
    }
    add(new PageView("page", (Page) page));
    add(new Image("bug", new PackageResourceReference(InspectorPage.class, "bug.png")));
    add(new BookmarkablePageLink<Void>("allsessions", LiveSessionsPage.class));
    add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion()));
  }
View Full Code Here

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

  /**
   * add header contributions for packaged resources.
   */
  private void contributeDependencies(IHeaderResponse response)
  {
    response.renderJavascriptReference(new PackageResourceReference(YuiLib.class,
        "yahoodomevent/yahoo-dom-event.js"));
    response.renderJavascriptReference(new PackageResourceReference(AbstractCalendar.class,
        "calendar-min.js"));
    response.renderCSSReference(new PackageResourceReference(AbstractCalendar.class,
        "assets/skins/sam/calendar.css"));
  }
View Full Code Here

   * Will let the wizard contribute a CSS include to the page's header. It will add Wizard.css
   * from this package. This method is typically called by the class that creates the wizard.
   */
  public void addDefaultCssStyle(IHeaderResponse response)
  {
    response.renderCSSReference(new PackageResourceReference(Wizard.class, "Wizard.css"));
  }
View Full Code Here

  @Override
  public void renderHead(IHeaderResponse response)
  {
    super.renderHead(response);

    response.renderCSSReference(new PackageResourceReference(
      DefaultCssAutoCompleteTextField.class, "DefaultCssAutoCompleteTextField.css"));
  }
View Full Code Here

                return "wicketDebugBar" + (DebugBar.this.hasErrorMessage() ? "Error" : "");
            }

        }));

        add(new Image("logo", new PackageResourceReference(DebugBar.class, "wicket.png")));
        add(new Image("removeImg", new PackageResourceReference(DebugBar.class, "remove.png")));
        List<IDebugBarContributor> contributors = getContributors();
       
        // no longer necessary, registered from DebugBarInitializer
        // if (contributors.isEmpty())
        // {
View Full Code Here

    return InspectorPage.class;
  }

  @Override
  protected ResourceReference getImageResourceReference() {
    return new PackageResourceReference(InspectorPage.class, "bug.png");
  }
View Full Code Here

      {
        return "wicketDebugBar" + (DebugBar.this.hasErrorMessage() ? "Error" : "");
      }
    }));

    add(new Image("logo", new PackageResourceReference(DebugBar.class, "wicket.png")));
   
    add(contentSection("content", initiallyExpanded));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.resource.PackageResourceReference

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.