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

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


    else
    {
      item.add(new Label("traite", "Non"));
    }

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

      public Page getPage()
      {
View Full Code Here


        transaction, "dateCreated"), "yyyy-MM-dd hh:mm:ss"));
    item.add(new Label("txID", new PropertyModel(transaction, "id")));
    item.add(new CurrencyLabel("amount", new PropertyModel(transaction,
        "facture.total")));

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

      public Page getPage()
      {
View Full Code Here

    add(new TextArea("conditionARespecterEn"));
    add(new DropDownChoice("secteur", secteurService.list(),
        new SecteurChoiceRenderer()));
    add(new Label("image.name"));

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

      public Page getPage()
      {
        return new ImageViewPage(saison.getImage());
      }

      public Class getPageIdentity()
      {
        return ImageViewPage.class;
      }
    }).setPopupSettings(new PopupSettings(PopupSettings.SCROLLBARS)));

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

      public Page getPage()
      {
        return new FileUploadPage(fileUploadContext,
            ResourceService.IMAGE_FORMATS, SaisonUpdateForm.this
                .getPage());
      }

      public Class getPageIdentity()
      {
        return FileUploadPage.class;
      }
    }).setEnabled(!isNew));

    add(new Button("ok")
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void onSubmit()
      {
        saisonService.save(saison);

        this.setResponsePage(new SaisonUpdatePage(saison, false));
      }
    });

    add(new Button("delete")
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void onSubmit()
      {
        try
        {
          saisonService.delete(saison);

          this.setResponsePage(new GestionEvenementsPage());
        }
        catch (final DataIntegrityViolationException e)
        {
          this.error("La saison ne peut être supprimée "
              + "car elle contient des inscriptions. ");
        }
      }
    }.setDefaultFormProcessing(false).setVisible(!isNew));

    add(new Button("cancel")
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void onSubmit()
      {
        setResponsePage(new GestionEvenementsPage());
      }
    }.setDefaultFormProcessing(false));

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

      public Page getPage()
      {
        final Evenement evenement = new Evenement();
        evenement.setSaison(saison);
        evenement.setUrlInfoCourse("http://");
        return new EvenementUpdatePage(evenement, true);
      }

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

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

      public Page getPage()
      {
        return new CategoriesParticipantesPage(saison);
      }

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

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

      public Page getPage()
      {
        return new ClubAffiliesPage(saison);
      }

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

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

      public Page getPage()
      {
        return new PlaquesAttribueesListPage(saison);
      }

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

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

      public Page getPage()
      {
        return new ListePlaquePage(saison);
      }

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

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

      public Page getPage()
      {
View Full Code Here

  private void createComponents()
  {
    final List list = publiciteService.findPublicite();

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

      public Page getPage()
      {
View Full Code Here

    else
    {
      item.add(new Label("actif", "Non"));
    }

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

      public Page getPage()
      {
View Full Code Here

    lnkInscrireCoequipier.add(lblInscrireCoequipier.setVisible(inscription
        .getCourse().isCourseParEquipe()));

    add(lnkInscrireCoequipier);

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

          public Page getPage()
          {
            return new ModifierAutresInfosPage(inscription);
          }

          public Class<ModifierAutresInfosPage> getPageIdentity()
          {
            return ModifierAutresInfosPage.class;
          }
        });

    final Label lblModifierAutresInfos = new Label(
        "lblModifierAutresInfos", getLocalizer().getString(
            "lblModifierAutresInfos", this));

    lnkModifierAutresInfos.add(lblModifierAutresInfos);

    add(lnkModifierAutresInfos);
  }
View Full Code Here

    createComponents();
  }

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

      public Page getPage()
      {
View Full Code Here

        return new FileResourceStream(resourceService
            .getFile(importation.getImportFile()));
      }
    }));

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

      public Page getPage()
      {
View Full Code Here

  {
    super();

    this.add(new SecteurListView("listeSecteurs"));

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

      public Page getPage()
      {
View Full Code Here

    final Secteur secteur = (Secteur) item.getModelObject();

    item.add(new Label("code"));
    item.add(new Label("description"));

    item.add(new PageLink("modifier", 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.