Package org.apache.wicket.markup.html.basic

Examples of org.apache.wicket.markup.html.basic.MultiLineLabel


    // don't use a property model here or anything else that is resolved
    // during rendering, as changing the request target during rendering
    // is not allowed.
    final ClientProperties properties = ((WebClientInfo)Session.get().getClientInfo()).getProperties();

    add(new MultiLineLabel("clientinfo", properties.toString()));

    IModel<String> clientTimeModel = new AbstractReadOnlyModel<String>()
    {
      /**
       * @see org.apache.wicket.model.AbstractReadOnlyModel#getObject()
View Full Code Here


    TextField<String> nameTextField = new TextField<String>("name", new PropertyModel<String>(
      MailTemplate.this, "name"));
    nameTextField.setOutputMarkupId(true);
    form.add(nameTextField);

    final MultiLineLabel result = new MultiLineLabel("result", new Model<String>());
    result.setOutputMarkupId(true);
    add(result);

    AjaxSubmitLink basedOnPageLink = new AjaxSubmitLink("pageBasedLink", form)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

   */
  @Override
  protected MultiLineLabel newLabel(final MarkupContainer parent, final String componentId,
    final IModel<T> model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
       */
      @Override
      public void onComponentTagBody(final MarkupStream markupStream,
        final ComponentTag openTag)
      {
        Object modelObject = getDefaultModelObject();
        if ((modelObject == null) || "".equals(modelObject))
        {
          replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
        }
        else
        {
          super.onComponentTagBody(markupStream, openTag);
        }
      }
    };
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior(getLabelAjaxEvent()));
    return label;
  }
View Full Code Here

    add(new PropertyListView("comments", commentList)
    {
      public void populateItem(final ListItem listItem)
      {
        listItem.add(new Label("date"));
        listItem.add(new MultiLineLabel("text"));
      }
    }).setVersioned(false);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  protected MultiLineLabel newLabel(MarkupContainer parent, String componentId, IModel<T> model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
       */
      @Override
      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
      {
        Object modelObject = getDefaultModelObject();
        if (modelObject == null || "".equals(modelObject))
        {
          replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
        }
        else
        {
          super.onComponentTagBody(markupStream, openTag);
        }
      }
    };
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior(getLabelAjaxEvent()));
    return label;
  }
View Full Code Here

        super.onConfigure();
        setVisible(userGroupModel.getObject().isLocked());
      }
    });
   
    add(new MultiLineLabel("description", BindingModel.of(userGroupModel, Binding.userGroup().description())));
   
    add(new ListView<Authority>("authorities", Model.ofList(authorityUtils.getPublicAuthorities())) {
      private static final long serialVersionUID = -4307272691513553800L;
     
      @Override
View Full Code Here

                            this.setResponsePage(new EdbHistoryPanel(getModel().getObject()));
                        }
                    };
                historyLink.add(new Label("text", new PropertyModel<String>(item.getModelObject(), idProperty)));
                item.add(historyLink);
                MultiLineLabel multiLineLabel =
                    new MultiLineLabel("entries", item.getModelObject().toOpenEngSBModelEntries().toString());
                item.add(multiLineLabel);
            }
        });
        feedback = new FeedbackPanel("feedback");
        feedback.setOutputMarkupId(true);
View Full Code Here

   */
  public BeerPanel(String id)
  {
    super(id);
    add(new Label("name", getName()));
    add(new MultiLineLabel("description", getDescription()).setEscapeModelStrings(false));
    add(new ExternalLink("link", getUrl()));
  }
View Full Code Here

  public OperationPanel(String id, JmxMBeanWrapper bean, final MBeanOperationInfo operation)
  {
    super(id, bean, operation);
    setOutputMarkupId(true);

    resultLabel = new MultiLineLabel("result");
    resultLabel.setOutputMarkupPlaceholderTag(true).setEscapeModelStrings(false);
    add(resultLabel.setVisible(false));
  }
View Full Code Here

    zoomLabel = new Label("zoom", new PropertyModel<Integer>(map, "zoom"));
    zoomLabel.setOutputMarkupId(true);
    add(zoomLabel);

    boundsLabel = new MultiLineLabel("bounds", new PropertyModel<GLatLngBounds>(map, "bounds"))
    {
      private static final long serialVersionUID = 1L;

      @SuppressWarnings("unchecked")
      @Override
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.basic.MultiLineLabel

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.