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

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


      }

      public RegisterForm(String id)
      {
         super(id);
         add(new PageLink("cancel", Main.class));
         FormComponent password = new PasswordTextField("password").setRequired(true);
         FormComponent verify = new PasswordTextField("verify").setRequired(true);
         add(new FormInputBorder("passwordBorder", "Password", password , new PropertyModel(user, "password")));
         add(new FormInputBorder("verifyBorder", "Verify Password", verify, new PropertyModel(this, "verify")));
         add(new ComponentFeedbackPanel("messages", this));
View Full Code Here


      }
    
      public RegisterForm(String id)
      {
         super(id);
         add(new PageLink("cancel", Home.class));
         username = new TextField("username");
         username.setRequired(true);
         add(new FormInputBorder("usernameDecorate", "Username", username, new SeamPropertyModel("username")
         {
           
View Full Code Here

public class SecondPage extends WebPage
{

  public SecondPage(final FirstPage page)
  {
    add(new PageLink("link", new IPageLink()
    {

      private static final long serialVersionUID = 1L;

      public Page getPage()
View Full Code Here

public class FirstPage extends WebPage
{

  public FirstPage()
  {
    add(new PageLink("link", new IPageLink()
    {

      private static final long serialVersionUID = 1L;

      SecondPage page = new SecondPage(FirstPage.this);
View Full Code Here

   *            expected page class to link
   * @return a <code>Result</code>
   */
  public Result isPageLink(String path, Class expectedPageClass)
  {
    PageLink pageLink = (PageLink)getComponentFromLastRenderedPage(path);
    try
    {
      Field iPageLinkField = pageLink.getClass().getDeclaredField("pageLink");
      iPageLinkField.setAccessible(true);
      IPageLink iPageLink = (IPageLink)iPageLinkField.get(pageLink);
      return isEqual(expectedPageClass, iPageLink.getPageIdentity());
    }
    catch (SecurityException e)
View Full Code Here

   *            expected page class to link
   * @return a <code>Result</code>
   */
  public <C extends Page> Result isPageLink(String path, Class<C> expectedPageClass)
  {
    PageLink pageLink = (PageLink)getComponentFromLastRenderedPage(path);
    try
    {
      Field iPageLinkField = pageLink.getClass().getDeclaredField("pageLink");
      iPageLinkField.setAccessible(true);
      IPageLink iPageLink = (IPageLink)iPageLinkField.get(pageLink);
      return isEqual(expectedPageClass, iPageLink.getPageIdentity());
    }
    catch (SecurityException e)
View Full Code Here

        item.add(new Label("qxri", qxri));
      }
    });

    this.add(new PageLink("createSubSegmentLink", new IPageLink() {

      private static final long serialVersionUID = 2192286434779574430L;

      public Page getPage() {

        return(new CreateSubSegment(AuthorityDetails.this.authority));
      }

      public Class<?> getPageIdentity() {

        return(CreateSubSegment.class);
      }
    }));

    this.subSegmentsContainer = new WebMarkupContainer("subSegmentsContainer");
    this.childSubSegmentsContainer = new WebMarkupContainer("childSubSegmentsContainer");
   
    this.subSegmentsContainer.add(new ListView("subSegments") {

      private static final long serialVersionUID = 8793019471745319174L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = 4182879013901656829L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.childSubSegmentsContainer.add(new ListView("childSubSegments") {

      private static final long serialVersionUID = 1273612869821409740L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = -1232152334705755201L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.add(this.subSegmentsContainer);
    this.add(this.childSubSegmentsContainer);
    this.add(new XrdForm("xrdForm"));
    this.add(new TemplateForm("templateForm"));
    this.add(new AttributesForm("attributesForm"));
    this.add(new IndexForm("indexForm"));
    this.add(new MountForm("mountForm"));
    this.add(new UnmountForm("unmountForm"));
    this.add(new DeleteForm("deleteForm"));
    this.add(new PageLink("backLink", Index.class));
  }
View Full Code Here

    this.resultFragment = new ResultFragment("resultPanel", "resultFragment", this);
    this.resultFragment.setVisible(false);
    this.add(this.resultFragment);
    this.add(new PathForm("pathForm"));
    this.add(new PageLink("backLink", Index.class));
  }
View Full Code Here

    // create and add components

    this.add(new Label("authoritiesCount"));
    this.add(new Label("subsegmentsCount"));
    this.add(new PageLink("backLink", Index.class));
  }
View Full Code Here

    this.setTitle(this.getString("title"));

    // create and add components

    this.add(new CreateRootNamespaceForm("createRootNamespaceForm"));
    this.add(new PageLink("backLink", Index.class));
  }
View Full Code Here

TOP

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

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.