當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。