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

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


            .equals("YuiImage")) {
          final YuiImage aImage = (YuiImage) listItem
              .getModelObject();
          SelectionBox sBox = new SelectionBox("box", count++);
          listItem.add(sBox);
          MultiLineLabel aLabel = new MultiLineLabel("caption",
              aImage.getDesc());
          sBox.add(aLabel);
        } else {
          final YuiTextBox aTextBox = (YuiTextBox) listItem
              .getModelObject();
          SelectionBox sBox = new SelectionBox("box", count++);
          listItem.add(sBox);
          MultiLineLabel aLabel = new MultiLineLabel("caption",
              aTextBox.getDesc());
          sBox.add(aLabel);
        }
      }
    });
View Full Code Here


   * not just add.
   */
  @Override
  public void addFormComponents()
  {
    MultiLineLabel body = new MultiLineLabel("message", message);
    body.setEscapeModelStrings(false);
    form.add(body);
  }
View Full Code Here

    add(new FacebookSdk("fb-root", "149850315074596"));
    add(new LoginButton("loginButton", FacebookPermission.user_about_me,
      FacebookPermission.friends_about_me));

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


    add(new AuthStatusChangeEventBehavior()
    {
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;

            @Override
            public IConverter getConverter(@SuppressWarnings( "rawtypes") Class type)
View Full Code Here

            }
        };

        final WebMarkupContainer wmcResult = new WebMarkupContainer("wmcResult");
        wmcResult.setOutputMarkupId(true);
        MultiLineLabel lbResult = new MultiLineLabel("result", resultModel);

        wmcResult.add(lbResult);
        add(wmcResult);

View Full Code Here

    public static class WKTPanel extends Panel {

        public WKTPanel(String id, CoordinateReferenceSystem crs) {
            super(id);
           
            MultiLineLabel wktLabel = new MultiLineLabel("wkt");
           
            add( wktLabel );
           
            if ( crs != null ) {
                wktLabel.setDefaultModel( new Model( crs.toString() ) );
            }
        }
View Full Code Here

   * @see org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel#newLabel(org.apache.wicket.MarkupContainer,
   *      java.lang.String, org.apache.wicket.model.IModel)
   */
  protected Component newLabel(MarkupContainer parent, String componentId, IModel model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model);
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior("onclick"));
    return label;
  }
View Full Code Here

   * @see org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel#newLabel(org.apache.wicket.MarkupContainer,
   *      java.lang.String, org.apache.wicket.model.IModel)
   */
  protected Component newLabel(MarkupContainer parent, String componentId, IModel model)
  {
    MultiLineLabel label = new MultiLineLabel(componentId, model)
    {
      private static final long serialVersionUID = 1L;

      protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
      {
        if (getModelObject() == null)
        {
          replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
        }
        else
        {
          super.onComponentTagBody(markupStream, openTag);
        }
      }
    };
    label.setOutputMarkupId(true);
    label.add(new LabelAjaxBehavior("onclick"));
    return label;
  }
View Full Code Here

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

    final MultiLineLabel result = new MultiLineLabel("result", new Model<>());
    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

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.