Examples of PageLink


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

  public TestPage()
  {
    current = panel1;
    add(current);

    add(new PageLink("link", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
View Full Code Here

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

   *            The id of the book that the page will edit
   * @return The page link
   */
  public static PageLink link(final String name, final long id)
  {
    return new PageLink(name, new IPageLink()
    {
      public Page getPage()
      {
        return new EditBook(Book.get(id));
      }
View Full Code Here

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

   *            The id of the book that the page will edit
   * @return The page link
   */
  public static PageLink link(final String name, final long id)
  {
    return new PageLink(name, new IPageLink()
    {
      public Page getPage()
      {
        return new EditBook(Book.get(id));
      }
View Full Code Here

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

    // 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 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"));
      }
View Full Code Here

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

    // will be kept as session data. Instead, we use the more verbose
    // IPageLink
    // anonymous class, which will create the page instance only when
    // needed.

    add(new PageLink("pageLink", new IPageLink()
    {
      public Page getPage()
      {
        return new NonBookmarkablePage(PageLinkPage.this);
      }
View Full Code Here

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

    // Add a link to navigate back to the refering page. We now use the
    // PageLink
    // constructor with the Page instance argument, because we allready have
    // a page instance
    // at our disposal
    add(new PageLink("navigateBackLink", referer));

    // Note that this would have had the same effect
    //
    // add(new Link("navigateBackLink")
    // {
View Full Code Here

Examples of org.gatein.mop.api.workspace.link.PageLink

         Attributes attrs = src.getAttributes();
         String pageReference = null;
         Link link = src.getLink();
         if (link instanceof PageLink)
         {
            PageLink pageLink = (PageLink)link;
            org.gatein.mop.api.workspace.Page target = pageLink.getPage();
            if (target != null)
            {
               Site site = target.getSite();
               ObjectType<? extends Site> siteType = site.getObjectType();
               pageReference = getOwnerType(siteType) + "::" + site.getName() + "::" + target.getName();
View Full Code Here

Examples of org.gatein.mop.api.workspace.link.PageLink

         {
            String[] pageChunks = split("::", reference);
            ObjectType<? extends Site> siteType = parseSiteType(pageChunks[0]);
            Site site = workspace.getSite(siteType, pageChunks[1]);
            org.gatein.mop.api.workspace.Page target = site.getRootPage().getChild("pages").getChild(pageChunks[2]);
            PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
            link.setPage(target);
         }
         else
         {
            PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
            link.setPage(null);
         }

         //
         Described described = dst.adapt(Described.class);
         described.setName(node.getLabel());
View Full Code Here

Examples of org.gatein.mop.api.workspace.link.PageLink

         Attributes attrs = src.getAttributes();
         String pageReference = null;
         Link link = src.getLink();
         if (link instanceof PageLink)
         {
            PageLink pageLink = (PageLink)link;
            org.gatein.mop.api.workspace.Page target = pageLink.getPage();
            if (target != null)
            {
               Site site = target.getSite();
               ObjectType<? extends Site> siteType = site.getObjectType();
               pageReference = getOwnerType(siteType) + "::" + site.getName() + "::" + target.getName();
View Full Code Here

Examples of org.gatein.mop.api.workspace.link.PageLink

         {
            String[] pageChunks = split("::", reference);
            ObjectType<? extends Site> siteType = parseSiteType(pageChunks[0]);
            Site site = workspace.getSite(siteType, pageChunks[1]);
            org.gatein.mop.api.workspace.Page target = site.getRootPage().getChild("pages").getChild(pageChunks[2]);
            PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
            link.setPage(target);
         }

         //
         Described described = dst.adapt(Described.class);
         described.setName(node.getLabel());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.