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

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


  {
    final List list = rabaisEvenementService.findByEvenement(evenement);

    add(new RabaisListView("rabaisListView", list));

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

      public Page getPage()
      {
        final RabaisEvenement rabaisEvenement = rabaisEvenementService
            .createRabaisEvenement(evenement);
        return new RabaisUpdatePage(rabaisEvenement);
      }

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

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

      public Page getPage()
      {
        return new SaisieRapidePage(evenement);
      }

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

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

      public Page getPage()
      {
View Full Code Here


    item.add(new Label("nbCourses"));
    item.add(new Label("montant"));
    item.add(new Label("categorie.nomComplet"));

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

      public Page getPage()
      {
View Full Code Here

              + "elle contient des inscriptions. ");
        }
      }
    }.setDefaultFormProcessing(false).setVisible(!isNew));

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

      public Page getPage()
      {
        return new TarificationPage(course);
      }

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

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

      public Page getPage()
      {
        return new ChoixSaisonPage(course);
      }

      public Class getPageIdentity()
      {
        return ChoixSaisonPage.class;
      }
    }).setVisible(!isNew));

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

      public Page getPage()
      {
        return new ManualRegistrationModePage(course);
      }

      public Class getPageIdentity()
      {
        return ManualRegistrationModePage.class;
      }
    }).setVisible(!isNew));

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

      public Page getPage()
      {
        return new CoursePucesPage(course);
      }

      public Class getPageIdentity()
      {
        return CoursePucesPage.class;
      }
    }).setVisible(!isNew));

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

      public Page getPage()
      {
        return new InscriptionsListPage(course);
      }

      public Class getPageIdentity()
      {
        return InscriptionsListPage.class;
      }
    }).setVisible(!isNew));

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

      public Page getPage()
      {
View Full Code Here

    add(new ImportationDonneesTerrainLineDataViewPanel("linesDataView",
        importationDonneesTerrain.getLines()));
    add(new ResourceLink("download", new ExcelResource(
        new ImportationResultReport(importationDonneesTerrain))
        .setCacheable(false)));
    add(new PageLink("merge", MergeTypeChoicePage.class));

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

      public Page getPage()
      {
        return new PlaquesAttribueesListPage(importationDonneesTerrain
            .getSaison());
      }

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

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

      public Page getPage()
      {
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<? 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"));
      }
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 TestPage()
  {
    this.current = panel1;
    add(current);

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

      public Page getPage()
      {
View Full Code Here

{
  private static final long serialVersionUID = 1L;

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

      private static final long serialVersionUID = 1L;

      public Page getPage()
View Full Code Here

{
  private static final long serialVersionUID = 1L;

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

      private static final long serialVersionUID = 1L;

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

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