Package wicket.markup.html.basic

Examples of wicket.markup.html.basic.Label


    try {
      App app = viewContext.getApp();

      String conceptKey = entryConceptConfig.getCode();
      String conceptName = getLocalizer().getString(conceptKey, this);
      Label entryConceptName = new Label("entryName", conceptName);
      item.add(entryConceptName);

      ModelContext entryModelContext = new ModelContext(modelContext);
      entryModelContext.setEntities(entry);
View Full Code Here


      ModelContext parentChildModelContext = new ModelContext(
          modelContext, true);
      String sectionTitle = (String) parentChildModelContext
          .getMoreArgs().get("sectionTitle");
      add(new Label("sectionTitle", sectionTitle));

      ViewContext parentChildViewContext = new ViewContext(viewContext,
          true);
      parentChildViewContext.setWicketId("parentChildPropertyList");
      parentChildViewContext.getMoreArgs().add("shortText", Boolean.TRUE);
View Full Code Here

   */
  public KeywordSelectionForm(final String wicketId, final String title,
      final String keywords, final Boolean andKeywords) {
    super(wicketId, new Model());
    try {
      add(new Label("title", title));
      keywordsField = new TextField("keywords", new Model(keywords));
      add(keywordsField);
      andKeywordsBox = new CheckBox("and", new Model(andKeywords));
      add(andKeywordsBox);
    } catch (Exception e) {
View Full Code Here

  protected void populateItem(final ListItem item) {
    try {
      Quote quote = (Quote) item.getModelObject();
      String text = quote.getText();
      String source = quote.getSource();
      Label quoteTextLabel = new Label("quoteText", text);
      item.add(quoteTextLabel);
      Label quoteSourceLabel = new Label("quoteSource", source);
      item.add(quoteSourceLabel);
    } catch (Exception e) {
      log.error("Error in QuoteList: " + e.getMessage());
    }
  }
View Full Code Here

    CheckBox checkBox;
    checkBox = new CheckBox("etat", new PropertyModel(this.afterSaison,
        "active"));
    this.add(checkBox);

    this.add(new Label("nom", this.afterSaison.getNom()));
    this.add(new Label("labelTitre",
        "Changer l'état d'une saison (active ou inactive)"));
    this.add(HomePage.link("Annuler", ActiveSaisonsListPanel.class, null));
  }
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final Club club = (Club) item.getModelObject();

    item.add(new Label("nomComplet", club.getNomComplet()));

    // Lien Modifier
    final Map<Enum, Object> params = new HashMap<Enum, Object>();

    params.put(ClubPanel.TypeParameters.CLUBS, this.clubs);
View Full Code Here

  private void createComponents()
  {
    final CheckBox checkbox = new CheckBox("admin", new PropertyModel(
        this.afterCompte, "admin"));
    this.add(new Label("username", new PropertyModel(this.afterCompte,
        "username")));
    this.add(new Label("nom", new PropertyModel(this.personne, "nom")));
    this
        .add(new Label("prenom", new PropertyModel(this.personne,
            "prenom")));
    this.add(checkbox);

    final Map<Enum, Object> param = new HashMap<Enum, Object>();
    param.put(ViewPersonnePanel.TypeParameters.ADMIN, true);
View Full Code Here

    CheckBox checkBox;
    checkBox = new CheckBox("etat", new PropertyModel(saison, "active"));
    checkBox.setEnabled(false);
    item.add(checkBox);

    item.add(new Label("nom", saison.getNom()));
    item.add(new Label("annee", saison.getAnnee().toString()));

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

  {

    //L'usager est en train de gérer les admins.
    if (this.admin)
    {
      this.add(new Label("labelTitre","Gestion des administrateurs"));
      this.add(new Label("labelDescription","Veuillez choisir un membre afin de les assigner des droits."));
      this.add(HomePage.link("listeAdmins", LisAdminPanel.class, null));
      this.add(new Label("creerMembre").setVisible(false));
      this.add(new Label("retour").setVisible(false));
    }
    //L'usager est en train de gérer les plaques
    else if (this.saison != null)
    {
      this.add(new Label("labelTitre","Gestion des plaques"));
      this.add(new Label("labelDescription","Veuillez choisir un membre afin de gérer les plaques qu'il possède."));
      this.add(new Label("listeAdmins").setVisible(false));
      this.add(new Label("creerMembre").setVisible(false));
      final Map<Enum, Object> params = new HashMap<Enum, Object>();
      params.put(ListeMembres.TypeParameters.SAISON, this.saison);
      this.add(HomePage.link("retour", ListeMembres.class, params));
    }
    //L'usager est en train de gérer les membres
    else
    {
      this.add(new Label("labelTitre","Gestion des membres"));
      this.add(new Label("labelDescription","Veuillez choisir un membre afin de changer ses informations."));
      this.add(HomePage.link("creerMembre", CreationPersonnePanel.class,
          null));
      this.add(new Label("listeAdmins").setVisible(false));
      this.add(new Label("retour").setVisible(false));
    }

    //Gestion de la liste des membres
    final SortablePersonneDataProvider sortablePersonneDataProvider = new SortablePersonneDataProvider(
        (InscriptionsApp) this.getApplication());
View Full Code Here

    this.add(HomePage.link("cancel", ListClubsPanel.class, null));

    if (this.beforeClub == null)
    {
      this.add(new Label("labelTitre", "Créer un club"));
    }
    else
    {
      this.add(new Label("labelTitre", "Modifier un club"));
    }
  }
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.