Package wicket.markup.html.basic

Examples of wicket.markup.html.basic.Label


  @Override
  protected void populateItem(final ListItem item)
  {
    final Categorie categorie = (Categorie) item.getModelObject();

    item.add(new Label("codeCategorie", categorie.getCodeCategorie()));
    item.add(new Label("nom", categorie.getNom()));
    item.add(new Label("ageMin", categorie.getAgeMin().toString()));
    item.add(new Label("ageMax", categorie.getAgeMax().toString()));
    item.add(new Label("niveau", categorie.getNiveau()));
    item.add(new Label("sexe", categorie.getSexe()));

    final Map<TypeParameters, Object> hashMap = new HashMap<TypeParameters, Object>();
    final CategoriePanel.TypeParameters parameters = CategoriePanel.TypeParameters.CATEGORIE;
    hashMap.put(parameters, categorie);
    item.add(HomePage.link("modifier", CategoriePanel.class, hashMap));
View Full Code Here


  @Override
  protected void populateItem(final ListItem item)
  {
    final AdminLine line = (AdminLine) item.getModelObject();

    item.add(new Label("nom", line.getNom()));
    item.add(new Label("prenom", line.getPrenom()));
  }
View Full Code Here

  {
    this.add(new RequiredTextField("nom"));

    if (this.isNew)
    {
      this.add(new Label("labelTitre", "Créer une discipline"));
    }
    else
    {
      this.add(new Label("labelTitre", "Modifier une discipline"));
    }

    this.add(HomePage.link("cancel", ListDisciplinesPanel.class, null));
    this.add(this.deleteButton);
  }
View Full Code Here

    this.add(new DropDownChoice("discipline", this.disciplineController
        .getDisciplines(), new DisciplineChoiceRenderer()));

    if (this.isNew)
    {
      this.add(new Label("labelTitre", "Créer une catégorie"));
    }
    else
    {
      this.add(new Label("labelTitre", "Modifier une catégorie"));
    }

    this.add(HomePage.link("cancel", ListCategoriesPanel.class, null));
    this.add(this.deleteButton);
  }
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final Discipline discipline = (Discipline) item.getModelObject();

    item.add(new Label("nom", discipline.getNom()));

    final Map<TypeParameters, Object> hashMap = new HashMap<TypeParameters, Object>();
    hashMap.put(DisciplinePanel.TypeParameters.DISCIPLINE, discipline);
    item.add(HomePage.link("modifier", DisciplinePanel.class, hashMap));
  }
View Full Code Here

        item.add(HomePage.link("selection", DisplayPersonneAdmin.class,
            map));
      }
      else
      {
        item.add(new Label("selection", "L'usager n'a pas de compte"));
      }
    }
    // l'usager est train de gérer les plaques....
    else if (this.saison != null)
    {
      map = new HashMap();
      map.put( DisplayPlaquePersonne.TypeParameters.ISNEW, true);
      map.put(DisplayPlaquePersonne.TypeParameters.INFOSAISON, null);
      map.put(DisplayPlaquePersonne.TypeParameters.PERSONNE, personne);
      map.put(ViewPersonnePanel.TypeParameters.SAISON, this.saison);
      map.put(DisplayPlaquePersonne.TypeParameters.SAISON, this.saison);
      try
      {
        map.put(DisplayPlaquePersonne.TypeParameters.INFOSSAISONS, personne.getInfosSaison());
      }
      catch (final Exception e)
      {
        throw new SystemeException(e.getMessage());
      }
      item.add(HomePage.link("selection",DisplayPlaquePersonne.class, map))
    }
    // l'usager est en train de gérer les membres.
    else
    {
      map.put("Oid", personne.getOid());
      item.add(HomePage
          .link("selection", DisplayPersonnePanel.class, map));
    }

    item.add(new Label("prenom", new PropertyModel(personne, "prenom")));
    item.add(new Label("nom", new PropertyModel(personne, "nom")));
    item.add(new Label("pays", new PropertyModel(personne, "pays")));
  }
View Full Code Here

      {
        MenuPanel.this.session.invalidate();
        this.setResponsePage(HomePage.class);
      }
    });
    this.add(new Label("creerCompte").setVisible(false));
     
    //Mes courses
    this.add(HomePage.link("monPanier", CartListViewPanel.class, null));
    this.add(HomePage.link("mesCourses", MesCoursesListViewPanel.class, null));
    this.add(new Label("divCourses","Mes courses"));

    //Administration
    if (this.session.EstAdmin())
    {
      this.add(new Label("divAdmin","Administration"));
    }
    else
    {
      this.add(new Label("divAdmin").setVisible(false));
    }

    //acceil
    final Map<String, Object> map = new HashMap<String, Object>();
    map.put("Oid", this.session.getUser().getPersonneOid());
View Full Code Here

  }
 
  private void CreateComponentsUserNonConnected()
  {
    //Mon compte
    this.add(new Label("mesCoordonnees").setVisible(false));
    this.add(new Label("logout").setVisible(false));       
    this.add(HomePage.link("creerCompte", CreationComptePersonnePanel.class, null));
       
    //Mes courses
    this.add(new Label("divCourses").setVisible(false));
    this.add(new Label("mesCourses").setVisible(false));
    this.add(HomePage.link("monPanier", PrincipalContentContainer.ContentType.WELCOME).setVisible(false));
   
    //Administrateur
    this.add(new Label("divAdmin").setVisible(false));
   
    //acceil
    this.add(HomePage.link("acceuil", PrincipalContentContainer.ContentType.WELCOME));
  }
View Full Code Here

  protected void populateItem(final ListItem item)
  {
    final CourseCategorieParticipanteLine line = (CourseCategorieParticipanteLine) item
        .getModelObject();

    item.add(new Label("codeCategorie", line.getCodeCategorie()));
    item.add(new Label("sexe", line.getSexe()));
    item.add(new TextField("prix", new PropertyModel(line, "prix")));
    item.add(new CheckBox("participante", new PropertyModel(line,
        "participante")));
  }
View Full Code Here

    }
   
    item.add(HomePage.link("selection", DisplayPlaquePersonne.class, map));
   
    //plaque
    item.add(new Label("plaque", new PropertyModel(infoSaison, "plaqueUnique")));
    item.add(new Label("categorie", new PropertyModel(categorie, "nom")));
    item.add(new Label("prenom", new PropertyModel(personne, "prenom")));
    item.add(new Label("nom", new PropertyModel(personne, "nom")));
    item.add(new Label("dateNaissance", new PropertyModel(personne, "dateNaissance")));
    item.add(new Label("pays", new PropertyModel(personne, "pays")));
   }
View Full Code Here

TOP

Related Classes of wicket.markup.html.basic.Label

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.