Package wicket.markup.html.basic

Examples of wicket.markup.html.basic.Label


   */
  protected void populateItem(ListItem item) {
    try {
      PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = (PropertyNameLabelValuePanelPair) item
          .getModelObject();
      Label propertyNameLabel = propertyNameLabelValuePanelPair
          .getPropertyNameLabel();
      item.add(propertyNameLabel);
      Panel propertyValuePanel = propertyNameLabelValuePanelPair
          .getPropertyValuePanel();
      item.add(propertyValuePanel);
View Full Code Here


                      + "."
                      + parentConceptPropertyConfig
                          .getCode();
                  String parentPropertyName = getLocalizer()
                      .getString(parentPropertyKey, this);
                  Label parentPropertyNameLabel = new Label(
                      "propertyName", parentPropertyName);
                  PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
                  propertyNameLabelValuePanelPair
                      .setPropertyNameLabel(parentPropertyNameLabel);

                  ModelContext parentModelContext = new ModelContext(
                      modelContext);
                  parentModelContext.setEntity(parentEntity);
                  parentModelContext
                      .setPropertyConfig(parentConceptPropertyConfig);

                  ViewContext parentViewContext = new ViewContext(
                      viewContext);
                  parentViewContext.setWicketId("valuePanel");
                  Panel parentPropertyPanel;
                  if (parentConceptPropertyConfig
                      .getPropertyClass().equals(
                          "java.net.URL")
                      || parentConceptPropertyConfig
                          .getPropertyClass()
                          .equals(
                              "org.dmlite.type.email.Email")) {
                    parentPropertyPanel = new ExternalLinkPanel(
                        parentModelContext,
                        parentViewContext);
                  } else {
                    parentPropertyPanel = new LabelPanel(
                        parentModelContext,
                        parentViewContext);
                  } // if
                  if (!app.isNeighborDisplayAllowed(
                      getAppSession(), neighborConfig)) {
                    parentPropertyPanel.setVisible(false);
                  } else if (!app.isPropertyDisplayAllowed(
                      getAppSession(),
                      parentConceptPropertyConfig)) {
                    parentPropertyPanel.setVisible(false);
                  }

                  propertyNameLabelValuePanelPair
                      .setPropertyValuePanel(parentPropertyPanel);
                  propertyNameLabelValuePanelPairs
                      .add(propertyNameLabelValuePanelPair);
                } // if
              } // if
            } // for
          } // if
        } // if
      } // for

      PropertiesConfig propertiesConfig = conceptConfig
          .getPropertiesConfig();
      for (IEntity propertyConfigEntity : propertiesConfig) {
        PropertyConfig propertyConfig = (PropertyConfig) propertyConfigEntity;
        if (!propertyConfig.isReference()) {
          String propertyKey = conceptCode + "."
              + propertyConfig.getCode();
          String propertyName = getLocalizer().getString(propertyKey,
              this);
          Label propertyNameLabel = new Label("propertyName",
              propertyName);
          PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
          propertyNameLabelValuePanelPair
              .setPropertyNameLabel(propertyNameLabel);

          entityModelContext.setPropertyConfig(propertyConfig);
          ViewContext propertiesViewContext = new ViewContext(
              viewContext);
          propertiesViewContext.setWicketId("valuePanel");
          Panel propertyValuePanel;
          if (propertyConfig.getPropertyClass()
              .equals("java.net.URL")
              || propertyConfig.getPropertyClass().equals(
                  "org.dmlite.type.email.Email")) {
            propertyValuePanel = new ExternalLinkPanel(
                entityModelContext, propertiesViewContext);
          } else if (propertyConfig.getPropertyClass().equals(
              "java.lang.String")
              && propertyConfig.isValidateType()
              && (propertyConfig.getValidationType().equals(
                  "java.net.URL") || propertyConfig
                  .getValidationType().equals(
                      "org.dmlite.type.email.Email"))) {
            propertyValuePanel = new ExternalLinkPanel(
                entityModelContext, propertiesViewContext);
          } else {
            propertyValuePanel = new LabelPanel(entityModelContext,
                propertiesViewContext);
          }
          if (!app.isPropertyDisplayAllowed(getAppSession(),
              propertyConfig)) {
            propertyNameLabel.setVisible(false);
            propertyValuePanel.setVisible(false);
          }

          propertyNameLabelValuePanelPair
              .setPropertyValuePanel(propertyValuePanel);
View Full Code Here

   * @param item
   *            list item
   */
  protected void populateItem(ListItem item) {
    try {
      Label neighborEmptyNameLabel = new Label("neighborEmptyName", "");
      item.add(neighborEmptyNameLabel);
    } catch (Exception e) {
      log.error("Error in NeighborEmptyNameLabelListView: "
          + e.getMessage());
    }
View Full Code Here

   * @param item
   *            list item
   */
  protected void populateItem(ListItem item) {
    try {
      Label propertyEmptyNameLabel = new Label("propertyEmptyName", "");
      item.add(propertyEmptyNameLabel);
    } catch (Exception e) {
      log.error("Error in PropertyEmptyNameLabelListView: "
          + e.getMessage());
    }
View Full Code Here

      String entityCode = conceptConfig.getCode();
      String propertyCode = modelContext.getPropertyConfig().getCode();
      String entityPropertyKey = entityCode + "." + propertyCode;
      String entityPropertyTitle = getLocalizer().getString(
          entityPropertyKey, this);
      Label entityPropertyTitleLabel = new Label("entityPropertyTitle",
          entityPropertyTitle);
      add(entityPropertyTitleLabel);

      ModelContext entityPropertyListModelContext = new ModelContext(
          modelContext);
View Full Code Here

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

    item.add(new Label("codeCategorie", line.getCodeCategorie()));
    item.add(new Label("sexe", line.getSexe()));
    item.add(new TextField("plaqueMin",
        new PropertyModel(line, "plaqueMin")));
    item.add(new TextField("plaqueMax",
        new PropertyModel(line, "plaqueMax")));
    item.add(new TextField("plaqueGeleMin", new PropertyModel(line,
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final Tarification tarification = (Tarification) item.getModelObject();

    item.add(new Label("evenement",
        new PropertyModel(tarification.getCourse().getEvenement(),
        "nom")));
    item.add(new Label("discipline",
        new PropertyModel(tarification.getCourse()"nom")));
    item.add(new Label("categorie",
        new PropertyModel(tarification.getCategorie(), "nom")));
    item.add(new Label("date",
        new PropertyModel(tarification.getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(tarification, "prix")));
    item.add(new Radio("radio", item.getModel()));

  }
View Full Code Here

  protected void createComponents()
  {

    this.add(new CartListView("cartListView", this.cart.getCart()));

    this.add(new Label("prixTotal", new PropertyModel(this.cart,
        "prixTotal")));

    this.add(new TextField("commenditaire", new PropertyModel(this.cart,
        "commenditaire")));
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final Course course = (Course) item.getModelObject();

    item.add(new Label("evenement", new PropertyModel(course.getEvenement(),
        "nom")));
    item.add(new Label("endroit", new PropertyModel(course.getEvenement(),
        "Endroit")));
    item.add(new Label("discipline", new PropertyModel(course, "nom")));
    item.add(new Label("date", new PropertyModel(course, "date")));

    final Map<String, Course> map = new HashMap<String, Course>();
    map.put("Course", course);

    try
View Full Code Here

  }

  protected void createComponents()
  {

    this.add(new Label("date", new PropertyModel(this, "date")));
    this.add(new Label("noConfirmation", new PropertyModel(this,
        "noConfirmation")));

  }
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.