Examples of ParTextPanel


Examples of org.projectforge.web.wicket.flowlayout.ParTextPanel

    if (StringUtils.isNotBlank(address.getComment()) == true) {
      gridBuilder.newGridPanel();
      section = gridBuilder.getPanel();
      section.add(new Heading3Panel(section.newChildId(), getString("comment")));
      final ParTextPanel textPanel = new ParTextPanel(section.newChildId(), HtmlHelper.escapeHtml(address.getComment(), true));
      textPanel.getLabel().setEscapeModelStrings(false);
      section.add(textPanel);
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.ParTextPanel

    }
    final DivPanel section = gridBuilder.getPanel();
    if (firstRow == true) {
      section.add(new Heading1Panel(section.newChildId(), getString("address.addresses")));
    }
    section.add(new ParTextPanel(section.newChildId(), getString(type) + ":"));
    final StringBuffer buf = new StringBuffer();
    boolean first = true;
    if (organization != null) {
      section.add(new Heading3Panel(section.newChildId(), organization));
      first = appendRow(buf, first, name);
    } else {
      section.add(new Heading3Panel(section.newChildId(), name));
    }
    if (StringUtils.isNotBlank(addressText) == true) {
      first = appendRow(buf, first, addressText);
    }
    if (StringUtils.isNotBlank(zipCode) == true || StringUtils.isNotBlank(city) == true) {
      final StringBuffer buf2 = new StringBuffer();
      if (zipCode != null) {
        buf2.append(zipCode).append(" ");
      }
      if (city != null) {
        buf2.append(city);
      }
      first = appendRow(buf, first, buf2.toString());
    }
    if (StringUtils.isNotBlank(country) == true) {
      first = appendRow(buf, first, country);
    }
    if (StringUtils.isNotBlank(state) == true) {
      first = appendRow(buf, first, state);
    }
    if (StringUtils.isNotBlank(phone) == true) {
      first = appendRow(buf, first, getString("address.phone") + ": " + phone);
    }
    if (StringUtils.isNotBlank(fax) == true) {
      first = appendRow(buf, first, getString("address.phoneType.fax") + ": " + fax);
    }
    if (StringUtils.isNotBlank(mobile) == true) {
      first = appendRow(buf, first, getString("address.phoneType.mobile") + ": " + mobile);
    }
    final ParTextPanel text = new ParTextPanel(section.newChildId(), buf.toString());
    text.getLabel().setEscapeModelStrings(false);
    section.add(text);
    return false;
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.ParTextPanel

  {
    add(createFeedbackPanel());
    final GridBuilder gridBuilder = newGridBuilder(this, "flowform");
    gridBuilder.newFormHeading(getString("administration.setup.heading"));
    final DivPanel panel = gridBuilder.getPanel();
    panel.add(new ParTextPanel(panel.newChildId(), getString("administration.setup.heading.subtitle")));
    {
      // RadioChoice mode
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("administration.setup.target"));
      final DivPanel radioPanel = fs.addNewRadioBoxButtonDiv();
      fs.add(radioPanel);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.