Package com.google.livingstories.client.lsp

Examples of com.google.livingstories.client.lsp.ContentRenderer


  @UiField SimplePanel content;

  public BaseContentItemPreview(BaseContentItem contentItem) {
    bind();
    content.add(new ContentRenderer(contentItem.getContent(), false));
  }
View Full Code Here


    initWidget(uiBinder.createAndBindUi(this));
   
    // Set the caption if there is one
    String captionText = contentItem.getCaption();
    if (!GlobalUtil.isContentEmpty(captionText)) {
      caption.appendChild(new ContentRenderer(captionText, false).getElement());
    }

    content.add(getContent(contentItem));
   
    // Add a byline if available
View Full Code Here

      String replacedText = firstText.replaceFirst("^\\s*[\"\u201C]", "\u00A0\u00A0");
      if (!replacedText.equals(firstText)) {
        firstTextNode.setNodeValue(replacedText);
      }
    }
    content.add(new ContentRenderer(detachedHTML.getElement().getInnerHTML(), false));
  }
View Full Code Here

      byline.add(bylineWidget);
    }

    String summaryText = contentItem.getNarrativeSummary();
    if (!GlobalUtil.isContentEmpty(summaryText)) {
      summary.add(new ContentRenderer(summaryText, false));
      summary.add(new Label("--"));
    }
  }
View Full Code Here

TOP

Related Classes of com.google.livingstories.client.lsp.ContentRenderer

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.