Package org.apache.wicket.markup.html.link

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink


   *
   * @param parameters
   */
  public Page1(PageParameters parameters)
  {
    add(new BookmarkablePageLink("homeLink", Home.class));
  }
View Full Code Here


    }
    else
    {
      getGame().newGame(5, new WordGenerator(new String[] { word }));
    }
    add(new BookmarkablePageLink("start", Guess.class));
  }
View Full Code Here

    add(actionOnClickLink);
    add(new Label("onClickLinkClickCount", new PropertyModel<Integer>(this,
      "onClickLinkClickCount")));

    // Link to Page1 is a simple external page link
    add(new BookmarkablePageLink("page1Link", Page1.class));

    // Link to Page2 is automaticLink, so no code
    // Link to Page3 is an external link which takes a parameter
    add(new BookmarkablePageLink("page3Link", Page3.class).setParameter("bookmarkparameter",
      "3++2 & 5 � >< space + �"));

    // Link to BookDetails page
    add(new PageLink("bookDetailsLink", new IPageLink()
    {
      public Page getPage()
      {
        return new BookDetails(new Book("The Hobbit"));
      }

      public Class<? extends Page> getPageIdentity()
      {
        return BookDetails.class;
      }
    }));

    // Delayed link to BookDetails page
    add(new PageLink("bookDetailsLink2", new IPageLink()
    {
      public Page getPage()
      {
        return new BookDetails(new Book("Inside The Matrix"));
      }

      public Class<? extends Page> getPageIdentity()
      {
        return BookDetails.class;
      }
    }));

    // Image map link example
    add(new ImageMap("imageMap").addRectangleLink(0, 0, 100, 100,
      new BookmarkablePageLink("page1", Page1.class)).addCircleLink(160, 50, 35,
      new BookmarkablePageLink("page2", Page2.class)).addPolygonLink(
      new int[] { 212, 79, 241, 4, 279, 54, 212, 79 },
      new BookmarkablePageLink("page3", Page3.class)).add(
      RelativePathPrefixHandler.RELATIVE_PATH_BEHAVIOR));

    // Popup example
    PopupSettings popupSettings = new PopupSettings(PageMap.forName("popuppagemap")).setHeight(
      500).setWidth(500);
    add(new BookmarkablePageLink("popupLink", Popup.class).setPopupSettings(popupSettings));

    // Popup example
    add(new BookmarkablePageLink("popupButtonLink", Popup.class).setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
View Full Code Here

    PageParameters params = new PageParameters();
    params.put("param1", newP1);
    params.put("param2", newP2);

    BookmarkablePageLink link = new BookmarkablePageLink("refreshLink", Page5.class, params);
    add(link);
    add(new BookmarkablePageLink("homeLink", Home.class));
  }
View Full Code Here

   *
   * @param parameters
   */
  public Page4(PageParameters parameters)
  {
    add(new BookmarkablePageLink("homeLink", Home.class));
  }
View Full Code Here

   *
   * @param parameters
   */
  public Page3(PageParameters parameters)
  {
    add(new BookmarkablePageLink("homeLink", Home.class));
  }
View Full Code Here

      {
        tree.getTreeState().collapseAll();
      }
    });

    add(new BookmarkablePageLink("ajaxTreeLink", SimpleTreePage.class));
  }
View Full Code Here

  public Index()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    // First a normal bookmarkable link (which is stateless by default)
    add(new BookmarkablePageLink("linkToStatelessPage", StatelessPage.class));
    add(new BookmarkablePageLink("linkToStatelessPage1", StatelessPage1.class));
    add(new BookmarkablePageLink("linkToStatelessPage2", StatelessPage2.class));
    add(new BookmarkablePageLink("linkToStatelessPage3", StatelessPage3.class));
    // The second with a stateless link, so the onclick will be called but
    // on a stateless page.
    add(new StatelessLink("linkToStatefulPage")
    {
      /**
 
View Full Code Here

   */
  public StatelessPage2()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    add(new BookmarkablePageLink("indexLink", Index.class));
    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(NumberValidator.maximum(20));
    field.setRequired(true);

View Full Code Here

   */
  public StatelessPage1()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    add(new BookmarkablePageLink("indexLink", Index.class));
    final TextField<Integer> field = new TextField<Integer>("textfield",
      new PropertyModel<Integer>(this, "number"));
    field.add(NumberValidator.maximum(20));
    field.setRequired(true);

View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.link.BookmarkablePageLink

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.