Package org.apache.wicket.request.resource

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


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


   * @param parameters
   *            Page parameters (ignored since this is the home page)
   */
  public Home(final PageParameters parameters)
  {
    add(new Image("beer", new PackageResourceReference(Home.class, "Beer.gif")));

    // create a dummy object to serve as our substitution model
    ValueMap map = new ValueMap();
    map.put("user", "Jonathan");

View Full Code Here

    if (parent instanceof Border)
    {
      parent = parent.getParent();
    }
    final Class<?> scope = parent.getClass();
    resourceReference = new PackageResourceReference(scope, path, locale, style, variation);
    bind();
  }
View Full Code Here

          application.getResourceReferenceRegistry().registerResourceReference(ref);
        }

        // Create resource reference
        resourceReference = new PackageResourceReference(Application.class,
          imageReferenceName, locale, style, variation);
      }
      else
      {
        resource = getResourceFactory(application, factoryName).newResource(specification,
View Full Code Here

    if (parent instanceof Border)
    {
      parent = parent.getParent();
    }
    final Class<?> scope = parent.getClass();
    resourceReference = new PackageResourceReference(scope, path, locale, style, variation);
    bind();
  }
View Full Code Here

          application.getResourceReferenceRegistry().registerResourceReference(ref);
        }

        // Create resource reference
        resourceReference = new PackageResourceReference(Application.class,
          imageReferenceName, locale, style, variation);
      }
      else
      {
        resource = getResourceFactory(application, factoryName).newResource(specification,
View Full Code Here

   *
   * @throws Exception
   */
  public void testLenientPackageResourceMatching() throws Exception
  {
    ResourceReference invalidResource = new PackageResourceReference(PackageResourceTest.class,
      "i_do_not_exist.txt", Locale.ENGLISH, null, null);
    assertNotNull(
      "resource packaged3.txt SHOULD be available as a packaged resource even if it doesn't exist",
      invalidResource.getResource());

    assertTrue(PackageResource.exists(PackageResourceTest.class, "packaged1.txt", null, null,
      null));
    assertTrue(PackageResource.exists(PackageResourceTest.class, "packaged1.txt", Locale.CHINA,
      null, null));
View Full Code Here

  {
    BoxBorder border = new BoxBorder("box");
    add(border);

    border.addToBorderBody(new TextField<String>("text"));
    border.addToBorderBody(new Image("img", new PackageResourceReference(BoxBorder.class,
      "test.png")));
  }
View Full Code Here

   * @param parameters
   *            Page parameters (ignored since this is the home page)
   */
  public Home(final PageParameters parameters)
  {
    add(new ImageButton("beer", new PackageResourceReference(Home.class, "Beer.gif")));

    // Add a couple of links to be able to play around with the session
    // locale
    add(new Link("goCanadian")
    {
View Full Code Here

*/
public class ClientSideImageMapPage_1 extends WebPage
{
  public ClientSideImageMapPage_1()
  {
    final Image image = new Image("image", new PackageResourceReference(ImageTest.class,
      "Beer.gif"));
    add(image);
    final ClientSideImageMap map = new ClientSideImageMap("map", image);
    map.addCircleArea(new ExternalLink("wicketHomePage1", "http://wicket.apache.org"), 0, 0, 10);
    map.addRectangleArea(new ExternalLink("wicketHomePage2", "http://wicket.apache.org"), 0, 0,
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.