Package com.google.livingstories.client.lsp

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


    if (player.hasPhoto()) {
      Image photoWidget = new Image(player.getPhotoContentItem().getContent());
      photoWidget.addStyleName("playerPhoto");
      photo.add(photoWidget);
    }
    content.add(new ContentRenderer(player.getFullContentToRender(), false));

    // For now, we don't attribute contributors to player content items, though in principle we
    // could (using them to describe the authorship of the bio.)
   
    loadMore();
View Full Code Here


    initWidget(uiBinder.createAndBindUi(this));

    title.setText(LivingStoryData.getLivingStoryTitle());
    updateCount.load(LivingStoryData.getLivingStoryId(), LivingStoryData.getLastVisitDate());
   
    summary.add(new ContentRenderer(LivingStoryData.getSummary(), true, true));
   
    recentEvents.load();
   
    livingStoryService.getThemeInfoForLivingStory(LivingStoryData.getLivingStoryId(),
        new AsyncCallback<Map<Long, ContentItemTypesBundle>>() {
View Full Code Here

  }

 
  @UiHandler("updatePreviewButton")
  void updatePreview(ClickEvent event) {
    previewPanel.setWidget(new ContentRenderer(summaryEditor.getContent(), true));
  }
View Full Code Here

  public boolean renderable() {
    return true;
  }
 
  public Widget renderTiny() {
    return new ContentRenderer(content, false);
  }
View Full Code Here

 
  private Widget createSummaryWidget(String summary) {
    if (GlobalUtil.isContentEmpty(summary)) {
      return null;
    } else {
      return new ContentRenderer(summary, false);
    }
  }
View Full Code Here

  public String getEventSummary() {
    return summary;
  }
 
  public Widget renderUpdate() {
    return new ContentRenderer(update, false);
  }
View Full Code Here

  public Widget renderUpdate() {
    return new ContentRenderer(update, false);
  }
 
  public Widget renderSummary() {
    return new ContentRenderer(summary, false);
  }
View Full Code Here

      @Override
      protected Widget createSummary() {
        if (GlobalUtil.isContentEmpty(contentItem.getNarrativeSummary())) {
          return null;
        } else {
          return new ContentRenderer(contentItem.getNarrativeSummary(), false);
        }
      }
     
      @Override
      protected Widget createDetails() {
View Full Code Here

      @Override
      protected Widget createSummary() {
        if (GlobalUtil.isContentEmpty(contentItem.getEventSummary())) {
          return null;
        } else {
          return new ContentRenderer(contentItem.getEventSummary(), false);
        }
      }
     
      @Override
      protected Widget createDetails() {
View Full Code Here

      image.add(photoWidget);
    }

    name.setText(contentItem.getName());
    description.add(
        new ContentRenderer(contentItem.getContent().split(Constants.BREAK_TAG)[0], false));
  }
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.