当前位置: 首页>>代码示例>>Java>>正文


Java DomRenderer类代码示例

本文整理汇总了Java中org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer的典型用法代码示例。如果您正苦于以下问题:Java DomRenderer类的具体用法?Java DomRenderer怎么用?Java DomRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DomRenderer类属于org.waveprotocol.wave.client.wavepanel.view.dom.full包,在下文中一共展示了DomRenderer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
protected DomRenderer createRenderer() {
  final BlipQueueRenderer pager = getBlipQueue();
  DocRefRenderer docRenderer = new DocRefRenderer() {
    @Override
    public UiBuilder render(
        ConversationBlip blip, IdentityMap<ConversationThread, UiBuilder> replies) {
      // Documents are rendered blank, and filled in later when
      // they get paged in.
      pager.add(blip);
      return DocRefRenderer.EMPTY.render(blip, replies);
    }
  };

  RenderingRules<UiBuilder> rules = new FullDomRenderer(
      getBlipDetailer(), docRenderer, getProfileManager(),
      getViewIdMapper(), createViewFactories(), getThreadReadStateMonitor());
  return new HtmlDomRenderer(ReductionBasedRenderer.of(rules, getConversations()));
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:19,代码来源:StageTwo.java

示例2: getDomRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
private DomRenderer getDomRenderer() {
  if (domRenderer == null) {
    domRenderer = createDomRenderer();
  }
  return domRenderer;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:7,代码来源:StageOneProvider.java

示例3: createDomRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
private DomRenderer createDomRenderer() {
  ReductionBasedRenderer reductionBasedRenderer = ReductionBasedRenderer.of(getRenderingRules(),
      getQuasiConversationView());
  return HtmlDomRenderer.create(reductionBasedRenderer);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:StageOneProvider.java

示例4: setRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
@Override
public void setRenderer(DomRenderer renderer) {
  Preconditions.checkArgument(renderer != null);
  Preconditions.checkState(this.domRenderer == null);
  this.domRenderer = renderer;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:7,代码来源:FullStructure.java

示例5: getRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/** @return the domRenderer for creating new sections of the DOM. */
private DomRenderer getRenderer() {
  Preconditions.checkState(domRenderer != null, "Renderer not ready");
  return domRenderer;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:FullStructure.java

示例6: getRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
protected final DomRenderer getRenderer() {
  return renderer == null ? renderer = createRenderer() : renderer;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:4,代码来源:StageTwo.java

示例7: setRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
@Override
public void setRenderer(DomRenderer renderer) {
  Preconditions.checkArgument(renderer != null);
  Preconditions.checkState(this.renderer == null);
  this.renderer = renderer;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:7,代码来源:FullStructure.java

示例8: getRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/** @return the renderer for creating new sections of the DOM. */
private DomRenderer getRenderer() {
  Preconditions.checkState(renderer != null, "Renderer not ready");
  return renderer;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:6,代码来源:FullStructure.java

示例9: setRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/**
 * Upgrades the views managed by this handler with the capability to add new
 * views by rendering model objects. The renderer can only be set once.
 *
 * @param renderer renderer to use for rendering model objects
 */
void setRenderer(DomRenderer renderer);
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:8,代码来源:UpgradeableDomAsViewProvider.java


注:本文中的org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。