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

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


   */
  public MockHomePage()
  {
    super();
    add(new Label("label", "this page is secured"));
    add(new PageLink("link", PageA.class));
  }
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

   *            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

    // 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

   *            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

  public WelcomePage()
  {
    super();
    this.add(new LoginPanel("login"));
    this.add(new PageLink("createAccount", CreationAccountPage.class));
    //    Consulter Inscription
    final PageLink linkConsulterInscription = new PageLink(
        "consulterInscriptions", SaisonsPage.class);
    this.add(linkConsulterInscription);

    List<Message> items = messageService
        .findByActivePublic(new java.util.Date());
View Full Code Here

    this.add(new Label("nom", new PropertyModel(session.getCompte()
        .getPersonne(), "nom")));
    this.add(new Label("prenom", new PropertyModel(session.getCompte()
        .getPersonne(), "prenom")));

    this.add(new PageLink("profil", PersonnalInfoPage.class));
    this.add(new PageLink("inscription", SaisonPage.class));
    this.add(new PageLink("inscriptionAutrePersonne", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

      public Class getPageIdentity()
      {
        return DelegateRegistrationModePage.class;
      }

      public Page getPage()
      {
        return new DelegateRegistrationModePage(Etapes.AutrePersonne);
      }
    }));

    this.add(new PageLink("consultationInscription", MesCoursesPage.class));
    this.add(new PageLink("historique", MesTransactionsPage.class));
    this.add(new PageLink("consulterInscriptions", SaisonsPage.class));

    List<ChoixPair> articlesAVendre = gestionVenteArticle
        .RechercherPairArticlesAVendre();
    this.add(new ArticleVenteListViewPanel("articleVenteListViewPanel",
        articlesAVendre).setVisible(articlesAVendre.size() > 0));
View Full Code Here

    MessagesListView messagesListView = new MessagesListView(
        "messagesListView", items);

    this.add(messagesListView);

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

      public Page getPage()
      {
View Full Code Here

  private void createComponents()
  {
    boolean coachmenuVisible = this.coach.getCompte().getCoachOf() != null;

    final PageLink linkGestionMembresClub = new PageLink(
        "linkGestionMembres", PersonsInClubPage.class);

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

          public Class getPageIdentity()
          {
            return DelegateRegistrationModePage.class;
          }

          public Page getPage()
          {
            return new DelegateRegistrationModePage(
                Etapes.AutrePersonne,
                DelegateRegistrationMode.COACH);

          }
        });

    linkGestionMembresClub.add(new Label("lblGestionMembresClub",
        getLocalizer().getString("manageClubMember", this)));

    linkGestionInscriptionsClub.add(new Label("lblInscriptionsClub",
        getLocalizer().getString("registerClubMember", this)));

    this.add(linkGestionMembresClub.setVisible(coachmenuVisible));
    this.add(linkGestionInscriptionsClub.setVisible(coachmenuVisible));

    this.add(new Label("clubName", " '"
        + coach.getCompte().getCoachOf().getNomComplet() + "'"));
  }
View Full Code Here

      item
          .add(new Label("active", getLocalizer().getString("Non",
              this)));
    }

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

      public Page getPage()
      {
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.